码迷,mamicode.com
首页 >  
搜索关键字:PAT 动态地址转换    ( 13520个结果
PAT1040. Longest Symmetric String
Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given "Is PAT&TAP symmetric?", the longest sym...
分类:其他好文   时间:2015-03-02 09:29:08    阅读次数:123
PAT:1055. The World's Richest (25) AC
#include#include#includeusing namespace std;struct Person{ char name[10]; int age,money;}P[100010];bool cmp(Person a,Person b){ if(a.money!=b.money...
分类:其他好文   时间:2015-03-01 23:44:05    阅读次数:186
PAT:1028. List Sorting (25) AC
#include#include#includeusing namespace std;struct Student{ char ID[10]; char name[10]; int gread;}STU[100010];bool cmp1(Student a,Student b){ ret...
分类:其他好文   时间:2015-03-01 20:56:07    阅读次数:204
PAT:1025. PAT Ranking (25) 编辑错误
#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
1015. Reversible Primes
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
B1003. 我要通过!(20)
“答案正确”是自动判题系统给出的最令人欢喜的回复。本题属于PAT的“答案正确”大派送 —— 只要读入的字符串满足下列条件,系统就输出“答案正确”,否则输出“答案错误”。得到“答案正确”的条件是:1. 字符串中必须仅有P, A, T这三种字符,不可以包含其它字符;2. 任意形如 xPATx 的字符串都...
分类:其他好文   时间:2015-02-28 18:30:25    阅读次数:115
1011. World Cup Betting
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
1006. Sign In and Sign Out
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
1008. Elevator
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
PAT:1023. 组个最小数 (20) AC
#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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!