-
Pat 甲级 训练真题集 1049!
1049. Counting Ones (30) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueThe task is simple: given any positive integer N, you are supposed to count the total number of 1’s in the ...…
-
Pat 甲级 训练真题集 1048!
1048. Find Coins (25) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueEva loves to collect coins from all over the universe, including some other planets like Mars. One day she vi...…
-
Pat 甲级 训练真题集 1047!
1047. Student List for Course (25) 时间限制 400 ms 内存限制 64000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueZhejiang University has 40000 students and provides 2500 courses. Now given the registered cours...…
-
Pat 甲级 训练真题集 1046!
1046. Shortest Distance (20) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueThe task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to t...…
-
Pat 甲级 训练真题集 1043!
1043. Is It a Binary Search Tree (25) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueA Binary Search Tree (BST) is recursively defined as a binary tree which has the following pro...…
-
Pat 甲级 训练真题集 1083!
1083. List Grades (25) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueGiven a list of N student records with name, ID and grade. You are supposed to sort the records with respect...…
-
Pat 甲级 训练真题集 1082!
1082. Read Number in Chinese (25) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueGiven an integer with no more than 9 digits, you are supposed to read it in the traditional Chines...…
-
Pat 甲级 训练真题集 1080!
1080. Graduate Admission (30) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueIt is said that in 2013, there were about 100 graduate schools ready to proceed over 40,000 applicatio...…
-
Pat 甲级 训练真题集 1079!
1079. Total Sales of Supply Chain (25) 时间限制 250 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueA supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)– everyon...…
-
Pat 甲级 训练真题集 1091!
1091. Acute Stroke (30) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueOne important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results o...…
-
Pat 甲级 训练真题集 1090!
1090. Highest Price in Supply Chain (25) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueA supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)– every...…
-
Pat 甲级 训练真题集 1085!
1085. Perfect Sequence (25) 时间限制 300 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CAO, PengGiven a sequence of positive integers and another positive integer p. The sequence is said to be a “per...…
-
Pat 甲级 训练真题集 1081!
1081. Rational Sum (20) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueGiven N rational numbers in the form “numerator/denominator”, you are supposed to calculate their sum.Input ...…
-
Pat 甲级 训练真题集 1078!
1078. Hashing (25) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueThe task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output...…
-
Pat 甲级 训练真题集 1077!
1077. Kuchiguse (20) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 HOU, QimingThe Japanese language is notorious for its sentence ending particles. Personal preference of such particles c...…
-
Pat 甲级 训练真题集 1089!
1089. Insert or Merge (25) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueAccording to Wikipedia:Insertion sort iterates, consuming one input element each repetition, and growing ...…
-
Pat 甲级 训练真题集 1088!
1088. Rational Arithmetic (20) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueFor two rational numbers, your task is to implement the basic arithmetics, that is, to calculate thei...…
-
Pat 甲级 训练真题集 1073!
1073. Scientific Notation (20) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 HOU, QimingScientific notation is the way that scientists easily handle very large numbers or very small numbe...…
-
Pat 甲级 训练真题集 1071!
1071. Speech Patterns (25) 时间限制 300 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 HOU, QimingPeople often have a preference among synonyms of the same word. For example, some may prefer “the polic...…
-
Pat 甲级 训练真题集 1070!
1070. Mooncake (25) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueMooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings...…