上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页
摘要: Zhejiang University has 40000 students and provides 2500 courses. Now given the registered course list of each student, you are supposed to output the... 阅读全文
posted @ 2015-03-01 11:40 Joilee 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the ... 阅读全文
posted @ 2015-03-01 00:17 Joilee 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum.Input Specification:Each input file contains one... 阅读全文
posted @ 2015-02-28 19:47 Joilee 阅读(158) 评论(0) 推荐(0) 编辑
摘要: “答案正确”是自动判题系统给出的最令人欢喜的回复。本题属于PAT的“答案正确”大派送 —— 只要读入的字符串满足下列条件,系统就输出“答案正确”,否则输出“答案错误”。得到“答案正确”的条件是:1. 字符串中必须仅有P, A, T这三种字符,不可以包含其它字符;2. 任意形如 xPATx 的字符串都... 阅读全文
posted @ 2015-02-28 17:42 Joilee 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 让我们定义 dn为:dn= pn+1- pn,其中 pi是第i个素数。显然有 d1=1 且对于n>1有 dn是偶数。“素数对猜想”认为“存在无穷多对相邻且差为2的素数”。现给定任意正整数N ( 2 #include 3 #include 4 #include 5 #include 6 #in... 阅读全文
posted @ 2015-02-28 15:03 Joilee 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAreversible primein any number system is a prime whose "reverse" in that number system is al... 阅读全文
posted @ 2015-02-28 10:28 Joilee 阅读(120) 评论(0) 推荐(0) 编辑
摘要: A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number... 阅读全文
posted @ 2015-02-27 22:41 Joilee 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135... 阅读全文
posted @ 2015-02-27 19:44 Joilee 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 本题要求计算A/B,其中A是不超过1000位的正整数,B是1位正整数。你需要输出商数Q和余数R,使得A = B * Q + R成立。输入格式:输入在1行中依次给出A和B,中间以1空格分隔。输出格式:在1行中依次输出Q和R,中间以1空格分隔。输入样例:123456789050987654321 7输出... 阅读全文
posted @ 2015-02-27 18:49 Joilee 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1* p2^k2*…*pm^km.Input Specifica... 阅读全文
posted @ 2015-02-27 16:10 Joilee 阅读(223) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页