04 2015 档案

把N!分解成质数幂的乘积
摘要:题面http://acm.buaa.edu.cn/contest/184/problem/C/ 大意就是把N!分解成质数幂的乘积。最暴力的方法当然会超时,比如下面这个:#include#include#includeusing namespace std;int result[5010];int m... 阅读全文

posted @ 2015-04-06 16:06 windrises 阅读(518) 评论(0) 推荐(0)

Orz
摘要:刷了BC和CFOrz 阅读全文

posted @ 2015-04-05 04:07 windrises 阅读(128) 评论(0) 推荐(0)

UVa-156 - Ananagrams
摘要:还是抄袭。 前面的那个妹纸一直在画工图,都连续画好几小时了,非常认真。 衣服和我的很像,看背景挺喜欢的。#include#include#include#include#includeusing namespace std;vector words;map cnt;string repr(strin... 阅读全文

posted @ 2015-04-01 21:30 windrises 阅读(111) 评论(0) 推荐(0)

UVa-10815 - Andy's First Dictionary
摘要:算是抄袭代码#include#include#include#includeusing namespace std;set dict;int main(){ string s,buf; while(cin>>s) { int l=s.size(); fo... 阅读全文

posted @ 2015-04-01 21:27 windrises 阅读(132) 评论(0) 推荐(0)

UVa-129 - Krypton Factor
摘要:第一次亲自发现原来包含头文件也需要时间=。=#include#includeint a[85],n,l,cnt;bool judge(int cur){ for(int i=1,j;i=cur-i+1;j--) if(a[j]!=a[j-i]) break; ... 阅读全文

posted @ 2015-04-01 01:56 windrises 阅读(140) 评论(0) 推荐(0)

导航