摘要: 数论,降幂,感觉数论这种只能多接触了,自己推简直要把脑子烧冒烟啊。。。高中毕业以后根本不想弄数学了。。。数论计算几何弱菜伤不起。。。。貌似这题用hash也能过呢。代码:#include#includeusing namespace std;int main(){ int a,b,c,T; ... 阅读全文
posted @ 2013-04-15 21:50 amourjun 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 去你妹的第K大。。。。害我WA几次。。让不让我等二货活了。。无解啊。。。代码:#include#include#include#includeusing namespace std;#define N 2001int a[3005];bool hash[N];int num[N];int main(... 阅读全文
posted @ 2013-04-15 21:25 amourjun 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 罪过罪过。。。。刷了个水题。。练英语吧。。题意:用第一行密码代替26个字母解密第二行句子。代码:#include#include#includeusing namespace std;char cha[26];char str[80];int main(){ while(cin>>cha) ... 阅读全文
posted @ 2013-04-15 20:58 amourjun 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 哈哈哈,每次犯二都会无限的鄙视自己>.#include#includeusing namespace std;#define N 5000int a[3005];bool hash[10005];int num[10005];int main(){ int n,m; while(scan... 阅读全文
posted @ 2013-04-15 20:40 amourjun 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 各种找各类水题做啊。。。不多说了,最简单哈希。然后发现了一个外挂哈哈。。。。代码:#include#include#include#includeusing namespace std;#define N 1000001bool hash[N];inline bool scan_d(int &num... 阅读全文
posted @ 2013-04-15 19:26 amourjun 阅读(213) 评论(0) 推荐(0) 编辑