摘要:
```C++ inline long long multi(long long x,long long y,long long mod) { long long tmp=(x y (long long)((long double)x/mod y+1.0e 8) mod); return tmp 阅读全文
摘要:
欧拉函数 欧拉函数求的是小于n且与n互质的数的个数。 以下给出一些欧拉函数的性质: ① 当m,n互质时,有phi(m\ n)= phi(m)\ phi(n); ② 若i%p==0,有phi(i\ p) = p \ phi(i); ③ 对于互质x与p,有x^phi(p)≡1(mod p),因此x的逆元 阅读全文
摘要:
Problem G. Colors Overflow Input file: standard input Output file: standard output Balloon Color: Dark Green If there is one thing Ziad is good at, it 阅读全文