- 博客(31)
- 收藏
- 关注
原创 New Year Transportation
Description New Year is coming in Line World! In this world, there are n cells numbered by integers from 1 to n, as a 1 × n board. People live in cells. However, it was hard to move between dis
2016-09-18 21:06:14 251
原创 hdu 1232 畅通工程
畅通工程 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 47553 Accepted Submission(s): 25330 Problem Description 某省调查城镇交通状况,
2016-08-24 09:46:21 242
原创 LightOJ 1294
Description Given two integers: n and m and n is divisible by 2m, you have to write down the first n natural numbers in the following form. At first take first mintegers and make their sign negat
2016-08-24 09:12:37 213
原创 LightOJ 1043
Description See the picture below. You are given AB, AC and BC. DE is parallel to BC. You are also given the area ratio between ADE and BDEC. You have to find the value ofAD. Input I
2016-08-24 09:08:11 237
原创 CodeForces 597A Divisibility
Description Find the number of k-divisible numbers on the segment [a, b]. In other words you need to find the number of such integer values x that a ≤ x ≤ b and x is divisible by k. Input
2016-08-24 09:05:08 199
原创 CodeForces 598A Tricky Sum
Description In this problem you are to calculate the sum of all integers from 1 to n, but you should take all powers of two with minus in the sum. For example, for n = 4 the sum is equal to -
2016-08-24 08:58:48 197
原创 CodeForces 632B Alice, Bob, Two Teams
Alice, Bob, Two Teams Time Limit:1500MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Description Alice and Bob are playing a game. The game involves splitting up game pieces in
2016-08-23 11:37:27 195
原创 CodeForces 366A Dima and Guards
Dima and Guards Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Description Nothing has changed since the last round. Dima and Inna still love each other and wan
2016-08-23 10:58:09 181
原创 CodeForces 658A Bear and Reverse Radewoosh
Bear and Reverse Radewoosh Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Description Limak and Radewoosh are going to compete against each other in the upcomin
2016-08-23 10:51:12 180
原创 CodeForces 554B Ohana Cleans Up
Ohana Cleans Up Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Description Ohana Matsumae is trying to clean a room, which is divided up into an n by n grid o
2016-08-23 10:43:19 163
原创 CodeForces 660A Co-prime Array
Co-prime Array Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Description You are given an array of n elements, you must make it a co-prime array in as fe
2016-08-23 10:24:36 168
原创 CodeForce 546D 素数筛+前缀和
Description Two soldiers are playing a game. At the beginning first of them chooses a positive integer n and gives it to the second soldier. Then the second one tries to make maximum possible numbe
2016-08-15 21:03:05 285
原创 UVA 10200
Problem Description Euler is a well-known matematician, and, among many other things, he discovered that the formulan2 + n+41 produces a prime for 0 ≤ n < 40. For n = 40, the formula produces 1681,
2016-08-15 17:19:13 225
原创 hdu 1155 Bungee Jumping
Bungee Jumping Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 1181 Accepted Submission(s): 507 Problem Description Once aga
2016-08-15 16:08:38 252
原创 LightOJ 1104
Description Sometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where there are 23 people including you. What i
2016-08-15 15:58:01 327
原创 CodeForce 510 B
Description Fox Ciel is playing a mobile puzzle game called "Two Dots". The basic levels are played on a board of size n × m cells, like this: Each cell contains a dot that has some color.
2016-08-15 15:32:25 279
原创 Codeforce 612C
括号配对问题 时间限制:3000 ms | 内存限制:65535 KB 难度:3 描述 现在,有一行括号序列,请你检查这行括号是否配对。 输入 第一行输入一个数N(0 输出 每组输入数据的输出占一行,如果该字符串中所含的括号是配对的,则输出Yes,如果不配对则输出No 样例输入 3 [(]) (]) ([[]()]) 样例输出 No
2016-07-31 21:04:37 459
原创 POJ 1363 Rails
Rails Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 31530 Accepted: 12267 Description There is a famous railway station in PopPush City. Country there is
2016-07-31 20:41:58 177
原创 hdu 1702 ACboy needs your help again!
ACboy needs your help again! Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5690 Accepted Submission(s): 2978 Problem Descript
2016-07-31 19:49:11 169
原创 hdu 2035 人见人爱A^B
人见人爱A^B Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 35409 Accepted Submission(s): 24059 Problem Description 求A^B的最后三位数表示的整
2016-07-31 18:05:40 155
原创 POJ 1995 Raising Modulo Numbers
Raising Modulo Numbers Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 6604 Accepted: 3918 Description People are different. Some secretly read magazines f
2016-07-31 17:55:43 154
原创 POJ 3641 Pseudoprime numbers
Pseudoprime numbers Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 8846 Accepted: 3723 Description Fermat's theorem states that for any prime number p and
2016-07-31 17:40:55 171
原创 hdu 5363 Key Set
Key Set Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 1857 Accepted Submission(s): 973 Problem Description soda has a set S
2016-07-31 17:06:43 200
原创 hdu 2124 Repair the Wall
Repair the Wall Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3664 Accepted Submission(s): 1819 Problem Description Long t
2016-07-31 15:21:49 286
原创 hdu 2111 Saving HDU
Saving HDU Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 9680 Accepted Submission(s): 4525 Problem Description 话说上回讲到海东集团面临内
2016-07-31 15:06:41 215
原创 hdu 1009 FatMouse' Trade
FatMouse' Trade Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 66813 Accepted Submission(s): 22717 Problem Description FatMouse
2016-07-31 14:25:07 169
原创 hdu 2037 今年暑假不AC (贪心)
今年暑假不AC Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 47356 Accepted Submission(s): 25456 Problem Description “今年暑假不AC?” “是的。
2016-07-31 13:52:45 272 1
原创 poj 2251 Dungeon Master (BFS)
Dungeon Master Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 26644 Accepted: 10394 Description You are trapped in a 3D dungeon and need to find the quick
2016-07-30 20:58:11 498
原创 hdu 2717 Catch That Cow (BFS)
Catch That Cow Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 12344 Accepted Submission(s): 3833 Problem Description Farmer J
2016-07-30 20:29:05 177
原创 hdu 2612 Find a way
Find a way Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 10474 Accepted Submission(s): 3421 Problem Description Pass a year
2016-07-30 20:01:36 185
原创 hdu 1242 Rescue
Rescue Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 26496 Accepted Submission(s): 9380 Problem Description Angel was caught
2016-07-29 20:41:23 128
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人