随笔分类 -  PAT甲级

摘要:Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run sim 阅读全文
posted @ 2019-08-31 20:08 王陸 阅读(345) 评论(0) 推荐(0)
摘要:As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro 阅读全文
posted @ 2019-08-27 14:15 王陸 阅读(354) 评论(0) 推荐(0)
摘要:It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that c 阅读全文
posted @ 2019-08-21 18:08 王陸 阅读(333) 评论(0) 推荐(0)
摘要:To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C – C Programming Language, M – Mat 阅读全文
posted @ 2019-08-21 14:00 王陸 阅读(490) 评论(0) 推荐(0)
摘要:With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing ba 阅读全文
posted @ 2019-08-21 10:48 王陸 阅读(250) 评论(0) 推荐(0)
摘要:Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is “yes”, if 6 is a decimal number and 110 is 阅读全文
posted @ 2019-08-20 19:49 王陸 阅读(435) 评论(0) 推荐(0)
摘要:This time, you are supposed to find A*B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu 阅读全文
posted @ 2019-08-20 16:53 王陸 阅读(201) 评论(0) 推荐(0)
摘要:The highest building in our city has only one elevator. A request list is made up with N positive numbers.The numbers denote at which floors the eleva 阅读全文
posted @ 2019-08-20 16:08 王陸 阅读(469) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2019-08-11 18:50 王陸 阅读(331) 评论(0) 推荐(0)
摘要:Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat 阅读全文
posted @ 2019-08-11 17:31 王陸 阅读(224) 评论(0) 推荐(0)
摘要:Given a sequence of K integers { N1, N2, …, NK }. A continuous subsequence is defined to be { Ni, Ni+1, …,Nj } where 1 <= i <= j <= K. The Maximum Sub 阅读全文
posted @ 2019-06-22 13:51 王陸 阅读(570) 评论(0) 推荐(0)
摘要:This time, you are supposed to find A+B where A and B are two polynomials(多项式). Input Each input file contains one test case. Each case occupies 2 lin 阅读全文
posted @ 2019-06-13 17:22 王陸 阅读(369) 评论(0) 推荐(0)
摘要:Calculate a + b and output the sum in standard format — that is, the digits must be separated into groups of three by commas (unless there are less th 阅读全文
posted @ 2019-06-13 16:01 王陸 阅读(366) 评论(0) 推荐(0)