- 博客(6)
- 资源 (12)
- 收藏
- 关注
原创 亲和串(hdu2203)
a+a;直接水 #include using namespace std; int main() { string a,b; while(cin>>a>>b) { if(b.length()>a.length()) cout<<"no"<<endl; else{ a=a+a;
2015-09-12 10:56:29 290
原创 How Many Tables(hdu1213)
并查集不解释,直接上手写代码 #include #include #include using namespace std; int a[1005]; int n,m,sum; int go() { for(int i=0; i<=n; i++) a[i]=i; } int find(int x) { if(a[x]!=x) a[x]=fin
2015-09-12 10:47:53 298
原创 A. Vasya and Petya's Game(cf第一题)
题目链接 Vasya and Petya are playing a simple game. Vasya thought of number x between 1 and n, and Petya tries to guess the number. Petya can ask questions like: "Is the unknown number divisib
2015-09-11 18:49:20 1322
原创 The Factor(hdu5428)
http://acm.hdu.edu.cn/showproblem.php?pid=5428 Total Submission(s): 1553 Accepted Submission(s): 480 Problem Description There is a sequence of n positive integers. Fancycoder is add
2015-09-09 19:25:27 392
原创 A very hard Aoshu problem(HDU4402)
http://acm.hdu.edu.cn/showproblem.php?pid=4403 Problem Description Aoshu is very popular among primary school students. It is mathematics, but much harder than ordinary mathematics for pri
2015-09-09 17:02:32 569
原创 Count(poj4472 )dp
Count Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2079 Accepted Submission(s): 1367 Problem Description Prof. Tigris is the
2015-09-02 21:22:02 240
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人