PAT
LoHiauFung
爱骑车的程序员
展开
-
1020. 月饼 (25)
PAT(乙) 1020. 月饼 (25) 来源:http://www.patest.cn/contests/pat-b-practise/1020#include<stdio.h> #include<stdlib.h> #include<math.h>int main() { int n = 0, need = 0, inthold = 0, i = 0, j = 0; double ha原创 2016-01-20 15:42:05 · 597 阅读 · 0 评论 -
1014. 福尔摩斯的约会 (20)
来源:http://www.patest.cn/contests/pat-b-practise/1014#include<stdio.h> #include<ctype.h>int main() { char arr1[61], arr2[61], arr3[61], arr4[61] = {0}; int i = 0, k = 0; int time[3] = {0};原创 2016-01-20 16:53:58 · 366 阅读 · 0 评论 -
1001. 害死人不偿命的(3n+1)猜想 (15)
来源:http://www.patest.cn/contests/pat-b-practise/1001 重点:循环条件控制,很容易出细微的逻辑错误。#include<stdio.h>int main() { int n = 0, hold = 0, i = 0, j = 0, k = 0, times = 0; int arr[105] = {0}; scanf("%d"原创 2016-01-22 11:17:28 · 863 阅读 · 0 评论 -
1015. 德才论 (25)
题目来源:http://www.patest.cn/contests/pat-b-practise/1015#include<stdio.h> #include<stdlib.h>typedef struct student { int id; int virtue; int intellect; int stage; } student;int cmp (const原创 2016-01-26 14:02:20 · 507 阅读 · 0 评论