摘要:
不容易系列之一Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13415Accepted Submission(s): 5597Problem Description大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了!做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难上加难了,就像花钱总是比挣钱容易的道理一样。话虽这样说,我还是要告诉大家,要想失败到一定程度也是不容易的。比如,我高中的时候,就有一个神奇的女生,在英语考试 阅读全文
摘要:
2012年高考超出一本线十几分的我因为第一志愿没被录取而报考了烟台大学,当时对我真是一个不小的打击。从小我就被寄予了很大的期望,在别人嘴里也都是说这孩子以后一定能考上一个名牌大学之类的话,但是生活总是喜欢跟人开玩笑。当时我接受了现状,因为脑子里被灌输了这样一句话,“哪个学校都差不多,就算二本的学校也能出人才”。就这样,我被烟台大学录取了,专业为软件工程。 学习计算机专业是我在高中的时候就想好的,因为我一直对计算机方面有浓厚的兴趣,初中开始自学一些软件,浏览网页时总是感叹互联网是多么的不可思议。而在高中三年碰电脑的机会真的是很少,整天埋头于书海,那种感觉就像是你有一个很喜欢的东西,... 阅读全文
摘要:
Problem Description假设有x1个字母A, x2个字母B,..... x26个字母Z,同时假设字母A的价值为1,字母B的价值为2,..... 字母Z的价值为26。那么,对于给定的字母,可以找到多少价值#include using namespace std;int num[27];int c[60],temp[60];int main(){ int t;cin>>t; while(t--) { memset(c,0,sizeof(c)); memset(temp,0,sizeof(temp)); for(int i=1... 阅读全文
摘要:
DescriptionIt is 2084 and the year of Big Brother has finally arrived, albeit a century late. In order to exercise greater control over its citizens and thereby to counter a chronic breakdown in law and order, the Government decides on a radical measure--all citizens are to have a tiny microcomputer 阅读全文
摘要:
Public SaleTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3396Accepted Submission(s): 2095Problem Description虽然不想,但是现实总归是现实,Lele始终没有逃过退学的命运,因为他没有拿到奖学金。现在等待他的,就是像FarmJohn一样的农田生涯。要种田得有田才行,Lele听说街上正在举行一场别开生面的拍卖会,拍卖的物品正好就是一块20亩的田地。于是,Lele带上他的全部积蓄,冲往拍卖 阅读全文
摘要:
Brave GameTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5644Accepted Submission(s): 3748Problem Description十年前读大学的时候,中国每年都要从国外引进一些电影大片,其中有一部电影就叫《勇敢者的游戏》(英文名称:Zathura),一直到现在,我依然对于电影中的部分电脑特技印象深刻。今天,大家选择上机考试,就是一种勇敢(brave)的选择;这个短学期,我们讲的是博弈(game)专题;所以 阅读全文
摘要:
Holding Bin-Laden Captive!Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13505Accepted Submission(s): 6094Problem DescriptionWe all know that Bin-Laden is a notorious terrorist, and he has disappeared for a long time. But recently, it is reported 阅读全文
摘要:
Square CoinsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7452Accepted Submission(s): 5050Problem DescriptionPeople in Silverland use square coins. Not only they have square shapes but also their values are square numbers. Coins with values of al 阅读全文
摘要:
Ignatius and the Princess IIITime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11475Accepted Submission(s): 8118Problem Description"Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 says. 阅读全文
摘要:
#include #include using namespace std;bool prime1(int n) //传统的判断素数。{ if(n==1) return 0; if(n==2) return 1; int t=(int)sqrt(n); for(int i=2;i>n) { if(prime1(n)) cout<<"prime1 : YES"<<endl; else cout<<"prime1 : No"<<endl; if(n%2==... 阅读全文