摘要: 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 阅读全文
posted @ 2017-09-17 23:41 Roni_i 阅读(724) 评论(0) 推荐(1) 编辑
摘要: 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 阅读全文
posted @ 2017-09-17 22:43 Roni_i 阅读(329) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstdio> #include<cmath> #include<cstring> #include<algorithm> #include<set> #include<bitset> #include<map> #include<queue> 阅读全文
posted @ 2017-09-17 17:26 Roni_i 阅读(549) 评论(0) 推荐(0) 编辑
摘要: #include<cmath> #include<set> #include<list> #include<deque> #include<map> #include<queue> #include<cstdio> #include<cstring> #include<algorithm> #inc 阅读全文
posted @ 2017-09-17 17:20 Roni_i 阅读(1120) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-09-17 17:18 Roni_i 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 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) . 阅读全文
posted @ 2017-09-17 17:16 Roni_i 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 乘法逆元及其求法 1.乘法逆元定义:在wiki中也叫倒数,当然是% p 后的,其实就是倒数。如果ax≡1(mod p),且gcd(a,p)=1(a与p互质),则称a关于模p的乘法逆元为x。 在求解除法取模问题(a/b)%m时,我们可以转化为(a%(b∗m))/b, 但是如果b很大,则会出现爆精度问题 阅读全文
posted @ 2017-09-17 00:55 Roni_i 阅读(905) 评论(0) 推荐(0) 编辑