摘要: UVA 11752 超级幂Z -The Super PowersTime Limit:1000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeUVA 11752Description题意:定义一个数为超级幂,当这个数能... 阅读全文
posted @ 2015-06-12 23:28 __560 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 拓展gcd解不定线性方程ax+by=c模版/** 解不定方程 ax+by=c */ll a,b,c;ll x,y;ll exgcd(ll a,ll b,ll &x,ll &y){ if(b==0){ x=1;y=0; return a; } ll r=e... 阅读全文
posted @ 2015-06-12 22:49 __560 阅读(170) 评论(0) 推荐(0) 编辑
摘要: poj2478 欧拉函数水题Y -Farey SequenceTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 2478DescriptionThe Farey Sequ... 阅读全文
posted @ 2015-06-12 00:03 __560 阅读(254) 评论(0) 推荐(0) 编辑