PAT
文章平均质量分 68
wenjie147
这个作者很懒,什么都没留下…
展开
-
PAT Advanced Level 1002:A+B for Polynomials
1002. A+B for Polynomials (25) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue This time, you are supposed to find A+原创 2014-03-06 20:49:17 · 517 阅读 · 0 评论 -
PAT Basic Level 1003:我要通过!
“答案正确”是自动判题系统给出的最令人欢喜的回复。本题属于PAT的“答案正确”大派送 —— 只要读入的字符串满足下列条件,系统就输出“答案正确”,否则输出“答案错误”。 得到“答案正确”的条件是: 1. 字符串中必须仅有P, A, T这三种字符,不可以包含其它字符; 2. 任意形如 xPATx 的字符串都可以获得“答案正确”,其中 x 或者是空字符串,或者是仅由字母 A 组成的字符串原创 2014-03-05 19:46:40 · 567 阅读 · 0 评论 -
PAT Advanced Level 1001:A+B Format
1001. A+B Format (20) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Calculate a + b and output the sum in standard原创 2014-03-06 20:46:26 · 476 阅读 · 0 评论 -
PAT Advanced Level 1004:Counting Leaves
1004. Counting Leaves (30) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue A family hierarchy is usually presented by a原创 2014-03-12 16:18:18 · 538 阅读 · 0 评论 -
PAT Advanced Level 1005:Spell It Right
1005. Spell It Right (20) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Given a non-negative integer N, your task i原创 2014-03-12 16:22:46 · 421 阅读 · 0 评论 -
PAT Advanced Level 1006:Sign In and Sign Out
1006. Sign In and Sign Out (25) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue At the beginning of every day, the fi原创 2014-03-13 15:59:28 · 522 阅读 · 0 评论 -
PAT Advanced Level 1007:Maximum Subsequence Sum
1007. Maximum Subsequence Sum (25) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Given a sequence of K integers { N原创 2014-03-13 16:02:26 · 494 阅读 · 0 评论 -
C++结构体
一 如何定义一个结构体 struct Student//声明一个结构体类型Student { int num;//包括一个整型变量num char name[20];//包括一个字符数组name char sex;//包括一个字符变量sex int age;//包括一个整型变量age float score;//包括一个单精度型变量 char ad原创 2014-03-08 15:03:21 · 576 阅读 · 0 评论 -
PAT Advanced Level 1003:Emergency
1003. Emergency (25) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue As an emergency rescue team leader of a city, yo原创 2014-03-09 21:43:59 · 487 阅读 · 0 评论