1006 Sign In and Sign Out (25 分)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 are supposed to find t
原创 2021-07-07 10:54:25
313阅读
PAT甲级1074 Reversing Linked List个人博客
原创 2021-08-24 09:51:13
68阅读
1,A+B Format 先用取余的方法将和逆序存在数组a中,并在该过程中每隔三位数就将-10086存在数组a中,以用来标记逗号应该出现的位置,最后逆序输出就可以了。需要注意0的特判就可以了。 #define _CRT_SECURE_NO_WARNINGS #include<stdlib.h> #i ...
转载 2021-10-06 23:04:00
64阅读
2评论
1075. PAT Judge (25) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue The ranklist of PAT is generated from the status
原创 2022-11-09 18:19:27
48阅读
时间限制 200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Programming Ability Test (PAT) is organized by
原创 2022-11-09 19:24:23
77阅读
1093. Count PAT's (25)时间限制120 ms内存限制65536 kB代码长度限制16000 B判题程序
原创 2022-11-09 18:17:58
45阅读
The ranklist of PAT is generated from the status list, which shows the scores of the submissions. This time you are supposed to generate the ranklist for PAT.
原创 2022-02-22 22:48:00
44阅读
Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejian
原创 2022-02-22 21:51:22
30阅读
是人数不是爱好数。有一种创新是有些许的缺陷的,可以修复,但目前还不知道较为好的修复方法,但可以分享一下。也就是以人来表示集
原创 2022-11-18 10:50:54
72阅读
With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas s ...
转载 2021-08-23 22:34:00
91阅读
2评论
1093 Count PAT’s (25 分)The string APPAPT contains two PAT’s as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed by the 3rd, the 4th, and t
原创 2021-07-13 13:40:33
131阅读
没什么难的,简单模拟题#include using namespace std;int main(){ int num; cin>>num; int cost = 0; int curFloor = 0; while (num--) { int floor; cin>>floor; int tmp = floor - curFloor; cost += tmp > 0 ? 6 * tmp : -4 * tmp; cost += 5; curFloor = floor; } cout<<cost<<endl;}
转载 2013-10-15 18:36:00
40阅读
2评论
1003 Emergency (25 分) As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered citie ...
转载 2021-08-25 18:16:00
50阅读
2评论
1078. Hashing (25)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程
原创 2022-11-09 18:18:51
68阅读
1061. Dating (20) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Sherlock Holmes received a note with some strange s
原创 2022-11-09 18:21:17
79阅读
1010. Radix (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程
原创 2022-11-09 18:27:23
90阅读
1001 A+B Format【考察:字符串处理】1002 A+B for Polynomials【考察:模拟】1003 Emergency【考察:Dijkstra算法】
原创 2022-10-17 17:22:05
125阅读
1041. Be Unique (20) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Being unique is so important to people on Mars t
原创 2022-11-09 18:15:18
85阅读
1060. Are They Equal (25) 时间限制 50 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue If a machine can save only 3 significant dig
原创 2022-11-09 18:21:22
74阅读
1035. Password (20) 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue To prepare for PAT, the judge sometimes has to ge
原创 2022-11-09 19:31:59
57阅读
  • 1
  • 2
  • 3
  • 4
  • 5