整理 刘汝佳紫书第三章习题代码 未完待续
还有一会儿要去剑道社训练。。。就整理整理好了。。。习题3-1得分UVA1585代码:#include<iostream>usingnamespacestd;intmain(){intn,i,score;cin>>n;charanswer[500];for(i=1;i<=...
刘汝佳 算法竞赛-入门经典 第二部分 算法篇 第五章 3(Sorting/Searching)
第一题:340-Master-MindHintsUVA:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=98&page=show_problem&problem...
算法之路二:刘汝佳算法竞赛入门经典 4.11刽子手游戏 UVa 489
#include<stdio.h>#include<string.h>#definemaxn100intleft,chance;//left剩余位置,chance机会次数chars[maxn],s2[maxn];//s答案,s2猜测intwin,lose;voidguess(...