码迷,mamicode.com
首页 >  
搜索关键字:PAT 动态地址转换    ( 13520个结果
PAT:1027. 打印沙漏(20) AC
#includeint main(){ int n; char xing; scanf("%d %c",&n,&xing); int num=1,i=1; while(1) { num = num + 2 * (i + 2); //一开始就超出,不改变i if...
分类:其他好文   时间:2015-03-07 19:56:03    阅读次数:153
1070. Mooncake
Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes according to the region's culture. Now ...
分类:其他好文   时间:2015-03-07 18:46:06    阅读次数:132
PAT:1014. 福尔摩斯的约会 (20) AC
#include#include#include#include#includeusing namespace std;char g1[99],g2[99],g3[99],g4[99];char alp[7][5]={"MON","TUE","WED","THU","FRI","SAT","SUN"...
分类:其他好文   时间:2015-03-07 18:31:17    阅读次数:190
PAT:1001. A+B Format (20) AC
#includeint main(){ int a,b; scanf("%d%d",&a,&b); int sum=a+b; if(sum=1000000) //【思维】,两个数字在:-1000000 =1000) printf("%d,%03d",sum/1000,...
分类:其他好文   时间:2015-03-07 18:28:19    阅读次数:194
PAT:1052. Linked List Sorting (25) AC
#include#include#includeusing namespace std;struct node{ int address; int data; int next; bool tag;}Node[100066];bool cmp(node a,node b){ if(a.ta...
分类:其他好文   时间:2015-03-07 18:25:51    阅读次数:132
1063. Set Similarity
Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the two sets, and Nt is the total number of distinct n...
分类:其他好文   时间:2015-03-07 17:13:09    阅读次数:156
1069. The Black Hole of Numbers
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by takin...
分类:其他好文   时间:2015-03-07 17:11:22    阅读次数:124
PAT:1075. PAT Judge (25) AC
#include#include#includeusing namespace std;struct Student{ int ID; int score[6]; int perfect; int sum; int rank; bool tag;}S[10066];int p[6]; ...
分类:其他好文   时间:2015-03-07 16:59:05    阅读次数:134
PAT:1080. Graduate Admission (30) AC
#include#include#includeusing namespace std;struct Student{ int GE,GI,sum,rank,ID; int prefer[6];}STU[40066];struct School{ int want; //各学校招...
分类:其他好文   时间:2015-03-07 16:57:51    阅读次数:134
1062. Talent and Virtue
About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent and virtue. According to his theory, a man being outstanding in both talent and virt...
分类:其他好文   时间:2015-03-07 15:46:24    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!