#include#includeusing namespace std;struct Student{ char ID[15]; int score,final_rank,location_number,local_rank; //分数,总排名,考场号,场内排名}STU[30010];bool...
分类:
其他好文 时间:
2015-03-01 14:24:00
阅读次数:
127
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also a pr...
分类:
其他好文 时间:
2015-02-28 21:46:29
阅读次数:
187
“答案正确”是自动判题系统给出的最令人欢喜的回复。本题属于PAT的“答案正确”大派送 —— 只要读入的字符串满足下列条件,系统就输出“答案正确”,否则输出“答案错误”。得到“答案正确”的条件是:1. 字符串中必须仅有P, A, T这三种字符,不可以包含其它字符;2. 任意形如 xPATx 的字符串都...
分类:
其他好文 时间:
2015-02-28 18:30:25
阅读次数:
115
With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World Cup trophy in South Africa. Si...
分类:
其他好文 时间:
2015-02-28 16:31:22
阅读次数:
169
At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in's and out's, you...
分类:
其他好文 时间:
2015-02-27 21:41:22
阅读次数:
243
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 sec...
分类:
其他好文 时间:
2015-02-27 21:34:28
阅读次数:
222
#include#includeusing namespace std;int main(){ int A[10]; fill(A,A+10,0); for(int i=0 ; i0) { printf("%d",i); --A[i]; break; ...
分类:
其他好文 时间:
2015-02-27 21:22:33
阅读次数:
135
#include#includeusing namespace std;struct cake{ double amount; double sum_price,price;}M[1010];bool cmp(cake a,cake b){ return a.price>b.price;}in...
分类:
其他好文 时间:
2015-02-27 20:06:39
阅读次数:
148
本题目要求编写程序统计一行字符中单词的个数。所谓“单词”是指连续不含空格的字符串,各单词之间用空格分隔,空格数可以是多个。...
分类:
其他好文 时间:
2015-02-27 17:14:08
阅读次数:
142
Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social n...
分类:
其他好文 时间:
2015-02-27 16:54:57
阅读次数:
102