- 博客(52)
- 收藏
- 关注
原创 快速排序两种代码
#include<iostream>#include<vector>#include<algorithm>#include<math.h>using namespace std;void QuickSort(vector<int>& arr, int start, int end){ if (start >= end)return; int low = start; int high = end; int tmp.
2020-05-19 15:40:43
251
1
原创 1050. String Subtraction (20)
1050. String Subtraction (20)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in...
2018-04-23 15:43:31
166
原创 1049. Counting Ones (30)
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 decimal for...
2018-04-22 20:21:50
163
原创 1048. Find Coins (25)
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 visited a univ...
2018-04-22 16:40:21
153
原创 1047. Student List for Course (25)
1047. Student List for Course (25) 时间限制 400 ms 内存限制 64000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue...
2018-04-14 23:16:24
157
原创 1046. Shortest Distance (20)
1046. Shortest Distance (20) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue The ...
2018-04-14 22:35:56
148
原创 1045. Favorite Color Stripe (30)
1045. Favorite Color Stripe (30) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue ...
2018-04-14 18:12:59
184
原创 1044. Shopping in Mars (25)
1044. Shopping in Mars (25) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Shopp...
2018-04-12 20:54:50
136
原创 1043. Is It a Binary Search Tree (25)
1043. Is It a Binary Search Tree (25) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, ...
2018-04-10 11:02:22
120
原创 1042. Shuffling Machine (20)
1042. Shuffling Machine (20) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Shuf...
2018-04-02 21:28:03
124
原创 1041. Be Unique (20)
1041. Be Unique (20) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Being unique...
2018-04-02 19:51:00
113
原创 1040. Longest Symmetric String (25)
1040. Longest Symmetric String (25) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yu...
2018-04-02 19:31:30
134
原创 1039. Course List for Student (25)
1039. Course List for Student (25)时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueZhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all th...
2018-04-02 15:52:34
131
原创 1038. Recover the Smallest Number (30)
1038. Recover the Smallest Number (30) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN,...
2018-04-01 21:21:24
103
原创 1037. Magic Coupon (25)
1037. Magic Coupon (25) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue The magic...
2018-04-01 20:31:03
138
原创 1036. Boys vs Girls (25)
1036. Boys vs Girls (25) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue This tim...
2018-04-01 19:54:13
177
原创 1035. Password (20)
1035. Password (20) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue To prepare fo...
2018-04-01 19:29:33
125
原创 1034. Head of a Gang (30)
1034. Head of a Gang (30) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue One way...
2018-04-01 17:21:14
175
原创 1033. To Fill or Not to Fill (25)
1033. To Fill or Not to Fill (25) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 ZHANG, Guo...
2018-03-31 23:45:38
161
原创 1032. Sharing (25)
1032. Sharing (25) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue To store Engli...
2018-03-31 16:17:38
170
原创 1031. Hello World for U (20)
#include<iostream>#include<fstream>#include<string>#include<algorithm>#include<vector>#include<queue>#define inf 1000000using namespace std;int main(){ /...
2018-03-31 14:55:02
132
原创 1030. Travel Plan (30)
1030. Travel Plan (30) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue A traveler...
2018-03-31 14:21:12
196
原创 1029. Median (25)
1029. Median (25) 时间限制 1000 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Given an incre...
2018-03-29 20:45:54
129
原创 1028. List Sorting (25)
1028. List Sorting (25) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Excel can...
2018-03-29 20:06:44
150
原创 1027. Colors in Mars (20)
1027. Colors in Mars (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YuePeople in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is repr...
2018-03-29 16:50:37
102
原创 1026. Table Tennis (30)
1026. Table Tennis (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players,...
2018-03-29 16:20:20
205
原创 1025. PAT Ranking (25)
1025. PAT Ranking (25) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Programmin...
2018-03-23 22:46:43
159
原创 1024. Palindromic Number (25)
1024. Palindromic Number (25) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue A n...
2018-03-20 21:27:27
110
原创 1023. Have Fun with Numbers (20)
1023. Have Fun with Numbers (20) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue ...
2018-03-20 20:16:29
135
原创 1022. Digital Library (30)
1022. Digital Library (30)时间限制1000 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA Digital Library contains millions of books, stored according to their titles, authors, key words of their abstrac...
2018-03-20 12:42:12
133
原创 1021. Deepest Root (25)
1021. Deepest Root (25)时间限制1500 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. ...
2018-03-19 19:59:12
120
原创 1020. Tree Traversals (25)
1020. Tree Traversals (25)Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order tr...
2018-03-15 17:34:33
108
原创 1019. General Palindromic Number (20)
1019. General Palindromic Number (20)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. All singl...
2018-03-15 11:50:36
126
原创 1018. Public Bike Management (30)
1018. Public Bike Management (30)There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station and retur...
2018-03-15 11:03:32
175
原创 1017. Queueing at Bank (25)
1017. Queueing at Bank (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the wai...
2018-03-14 15:41:11
136
原创 1016. Phone Bills (25)
1016. Phone Bills (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA long-distance telephone company charges its customers by the following rules:Making a long-distance call costs a certa...
2018-03-13 15:19:02
156
原创 1015. Reversible Primes (20)
1015. Reversible Primes (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For exam...
2018-03-09 17:36:17
116
原创 1014. Waiting in Line (30)
1014. Waiting in Line (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the wait...
2018-03-09 15:59:01
114
原创 1013. Battle Over Cities (25)
1013. Battle Over Cities (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIt is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy...
2018-03-07 20:51:57
135
原创 1012. The Best Rank (25)
1012. The Best Rank (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueTo evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C -...
2018-03-06 20:12:02
128
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人