摘要: ______________________________永远守护这一尘不染的真心! 要检查特定的值是否包含在序列中,可使用运算符in。它检查是否满足指定的条件,并返回相应的值;满足时返回True,不满足时返回False。这样的运算符称为布尔运算符。 阅读全文
posted @ 2019-08-03 19:09 龙龙666666 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1. 题目:https://vjudge.net/contest/316798#problem/P codes: 参考:https://blog.csdn.net/huangshuai147/article/details/51277645 2. 题目:https://vjudge.net/cont 阅读全文
posted @ 2019-08-03 16:36 龙龙666666 阅读(154) 评论(1) 推荐(0) 编辑
摘要: _______________________我不知道将去何方,但我已经在路上。 (下取整!) Summary: codes: Reference: https://blog.csdn.net/u013008291/article/details/38359073 阅读全文
posted @ 2019-08-03 14:53 龙龙666666 阅读(193) 评论(2) 推荐(0) 编辑
摘要: 在初等数论中,威尔逊定理给出了判定一个自然数是否为素数的充分必要条件。即:当且仅当p为素数时:( p -1 )! ≡ -1 ( mod p ),但是由于阶乘是呈爆炸增长的,其结论对于实际操作意义不大。 Carmichaael number 阅读全文
posted @ 2019-08-03 11:35 龙龙666666 阅读(740) 评论(0) 推荐(0) 编辑
摘要: 完全数(perfect number) 6=1+2+3 阅读全文
posted @ 2019-08-03 11:35 龙龙666666 阅读(135) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int exgcd(int a,int b,int& x,int& y) { if(b==0) { x=1; y=0; return a; } int t=exgcd(b,a%b,x,y); int x0=x... 阅读全文
posted @ 2019-08-03 10:49 龙龙666666 阅读(262) 评论(0) 推荐(0) 编辑