割り算の余りの性質
合同
≡は合同を表す記号
a ≡ b (mod m)
は、aをmで割った余りとbをmで割った余りが等しいことを表す
(mod m)
a ≡ b, c ≡ d
のとき、以下成り立つ
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
typedef long long ll; | |
int main() { | |
ll n; | |
cin >> n; |
割り算の余りの性質
合同
≡は合同を表す記号
a ≡ b (mod m)
は、aをmで割った余りとbをmで割った余りが等しいことを表す
(mod m)
a ≡ b, c ≡ d
のとき、以下成り立つ
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"github.com/dgrijalva/jwt-go" |
{ | |
"aaa": "one", | |
"bbb": "two", | |
"ccc": "three" | |
} |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func doPanic() { | |
defer fmt.Println("--- print ---") | |
panic("ʕ◔ϖ◔ʔ") |
package bench | |
import ( | |
"bytes" | |
"encoding/base64" | |
"io" | |
"io/ioutil" | |
) | |
func read1(body io.Reader) []byte { |
package log_test | |
import ( | |
"io/ioutil" | |
"testing" | |
"github.com/labstack/gommon/log" | |
) | |
func withBenchedLogger(b *testing.B, f func(*log.Logger)) { |
package main | |
import ( | |
"encoding/base64" | |
"io/ioutil" | |
"log" | |
"net/url" | |
"github.com/ChimeraCoder/anaconda" | |
) |