摘要:
Problem Description A cubic number is the result of using a whole number in a multiplication three times. For example, 3×3×3=27 so 27 is a cubic numbe 阅读全文
摘要:
Problem Description The Chinese Zodiac, known as Sheng Xiao, is based on a twelve-year cycle, each year in the cycle related to an animal sign. These 阅读全文
摘要:
#include<iostream> #include<cstdio> #include<cmath> #include<cstring> #include<algorithm> #include<set> #include<bitset> #include<map> #include<queue> 阅读全文
摘要:
#include<cmath> #include<set> #include<list> #include<deque> #include<map> #include<queue> #include<cstdio> #include<cstring> #include<algorithm> #inc 阅读全文
摘要:
Problem Description Here you have a set of strings. A dominator is a string of the set dominating all strings else. The string S is dominated by T if 阅读全文
摘要:
Problem Description Apple is Taotao's favourite fruit. In his backyard, there are three apple trees with coordinates (x1,y1) , (x2,y2) , and (x3,y3) . 阅读全文
摘要:
乘法逆元及其求法 1.乘法逆元定义:在wiki中也叫倒数,当然是% p 后的,其实就是倒数。如果ax≡1(mod p),且gcd(a,p)=1(a与p互质),则称a关于模p的乘法逆元为x。 在求解除法取模问题(a/b)%m时,我们可以转化为(a%(b∗m))/b, 但是如果b很大,则会出现爆精度问题 阅读全文