- 博客(65)
- 资源 (3)
- 收藏
- 关注
原创 HDU6198 number number number
number number number HDU - 6198 We define a sequence FF: ⋅⋅ F0=0,F1=1F0=0,F1=1; ⋅⋅ Fn=Fn−1+Fn−2 (n≥2)Fn=Fn−1+Fn−2 (n≥2). Give you an integer kk, if a positive number nn can be expressed by n=F...
2018-08-30 13:31:26
281
原创 B. Creating the Contest
B. Creating the Contesttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a problemset consisting of nn problems. The ...
2018-08-25 21:29:30
387
原创 A. Many Equal Substrings
A. Many Equal Substringstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a string tt consisting of nn lowercase Lati...
2018-08-25 20:09:18
473
原创 Rikka with Badminton
Rikka with BadmintonTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 53 Accepted Submission(s): 44 Problem DescriptionIn the last se...
2018-08-20 18:28:03
241
原创 Rikka with Stone-Paper-Scissors
Rikka with Stone-Paper-ScissorsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 1 Accepted Submission(s): 1 Problem DescriptionDid y...
2018-08-20 18:25:59
250
原创 鹏
链接:https://www.nowcoder.com/acm/contest/136/B来源:牛客网 鹏时间限制:C/C++ 2秒,其他语言4秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述 化而为鸟,其名为鹏。鹏之背,不知其几千里也。 ...
2018-08-19 21:09:48
215
原创 The Triangle Division of the Convex Polygon
The Triangle Division of the Convex Polygon Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KB Total submit users: 28, Accepted users: 17 Problem 11562 : No special judgement ...
2018-08-18 21:35:52
201
原创 Graduation Examination
Graduation Examination Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KB Total submit users: 41, Accepted users: 33 Problem 11566 : No special judgement Problem description ...
2018-08-18 21:06:06
516
原创 Problem D Game of Throwns
Problem D Game of ThrownsDaenerys frequently invents games to help teach her second grade Computer Science class about various aspects of the discipline. For this week’s lesson she has the children ...
2018-08-15 14:59:58
481
原创 Magic Square
Magic SquareTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0 Problem DescriptionA magic square is a 3×3 ...
2018-08-15 14:38:43
361
原创 Problem C DRM Messages
Problem C DRM MessagesDRM Encryption is a new kind of encryption. Given an encrypted string (which we’ll call a DRM message), the decryption process involves three steps: Divide, Rotate and Merge. T...
2018-08-14 21:38:34
392
原创 题目 D. 错误的算法
题目 D. 错误的算法 有道题目是这样的: 输入一个 n 行 m 列网格,找一个格子,使得它所在的行和列中所有格子的数之和最大。如果答 案不唯一,输出任意解即可。比如,在下面的例子中,最优解是(1,3),即第一行和的三列的交 点(行从上到下编号为 1~n,列从左到右编号为 1~m),所有 7 个数之和为 35。 5 5 5 5 1 1 5 1 1 1 5 1 1 1 5 1 快要比赛的时候,有一个...
2018-08-13 22:29:56
324
原创 题目 B. 大还是小?
题目 B. 大还是小?输入两个实数,判断第一个数大,第二个数大还是一样大。每个数的格式为: [整数部分].[小数部分] 简单起见,整数部分和小数部分都保证非空,且整数部分不会有前导 0。不过,小数部分的最 后可以有 0,因此 0.0 和 0.000 是一样大的。输入输入包含不超过 20 组数据。每组数据包含一行,有两个实数(格式如前所述)。每个实数都 包含不超过 100 个字符。输...
2018-08-13 20:32:31
458
1
原创 Hamburger String
Hamburger String Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KB Total submit users: 17, Accepted users: 15 Problem 10865 : No special judgement Problem description BUG...
2018-08-13 19:55:45
203
原创 分金条
分金条 Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KB Total submit users: 17, Accepted users: 14 Problem 10866 : No special judgement Problem description 相信很多人都看过这个经典的数学故...
2018-08-13 18:42:14
901
原创 The Confusion of Euclid
The Confusion of Euclid Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KB Total submit users: 18, Accepted users: 12 Problem 10867 : No special judgement Problem description...
2018-08-13 16:14:06
217
原创 Harmonious Contest
Harmonious Contest Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KB Total submit users: 18, Accepted users: 18 Problem 10864 : No special judgement Problem description T...
2018-08-12 22:01:30
412
原创 C. Less or Equal
C. Less or Equaltime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a sequence of integers of length nn and integer nu...
2018-08-10 17:14:18
202
原创 B. Two-gram
B. Two-gramtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputTwo-gram is an ordered pair (i.e. string of length two) of capital Lat...
2018-08-10 16:29:14
563
原创 A. Wrong Subtraction
A. Wrong Subtractiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle girl Tanya is learning how to decrease a number by one...
2018-08-09 21:46:03
131
原创 C. Songs Compression
C. Songs Compressiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIvan has nn songs on his phone. The size of the ii-th song is...
2018-08-07 20:14:36
232
原创 B. Obtaining the String
B. Obtaining the Stringtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two strings ss and tt. Both strings have len...
2018-08-07 19:50:38
360
原创 A. Death Note
A. Death Notetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou received a notebook which is called Death Note. This notebook h...
2018-08-07 11:20:37
243
原创 Everything Has Changed
Everything Has ChangedTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0Special Judge Problem DescriptionE...
2018-08-06 14:26:15
264
原创 机器人
链接:https://www.nowcoder.com/acm/contest/159/B来源:牛客网 机器人时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 131072K,其他语言262144K64bit IO Format: %lld题目描述从前在月球上有一个机器人。月球可以看作一个 n*m 的网格图,每个格子有三种可能:空地,障碍,机器人(有且仅有一个...
2018-08-06 10:47:35
274
原创 灯塔
链接:https://www.nowcoder.com/acm/contest/159/A来源:牛客网 灯塔时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 131072K,其他语言262144K64bit IO Format: %lld题目描述Z市是一座港口城市,来来往往的船只依靠灯塔指引方向。在海平面上,存在n个灯塔。每个灯塔可以照亮以它的中心点为中心的9...
2018-08-05 09:42:39
477
原创 A. Points in Segments
A. Points in Segmentstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a set of nn segments on the axis OxOx, each se...
2018-08-03 23:15:26
191
原创 Problem L. Graph Theory Homework
Problem L. Graph Theory HomeworkTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 2408 Accepted Submission(s): 1054 Problem Description...
2018-08-02 21:22:30
306
原创 Problem K. Expression in Memories
Problem K. Expression in MemoriesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 4072 Accepted Submission(s): 864Special Judge Proble...
2018-08-02 21:20:48
138
原创 Problem D. Nothing is Impossible
Problem D. Nothing is ImpossibleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 3446 Accepted Submission(s): 1132 Problem Description...
2018-08-02 21:19:03
216
原创 B. And
B. Andtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is an array with n elements a1, a2, ..., an and the number x.In on...
2018-08-02 21:08:49
236
原创 A. Piles With Stones
A. Piles With Stonestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a beautiful garden of stones in Innopolis.Its most...
2018-08-02 20:58:48
250
原创 Problem L. Visual Cube
Problem L. Visual CubeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 2127 Accepted Submission(s): 984 Problem DescriptionLittle Q ...
2018-07-31 20:39:52
174
原创 Problem F. Grab The Tree
Problem F. Grab The TreeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 2004 Accepted Submission(s): 911 Problem DescriptionLittle ...
2018-07-31 20:37:20
281
原创 Problem D. Euler Function
Problem D. Euler FunctionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 1474 Accepted Submission(s): 1062 Problem DescriptionIn nu...
2018-07-31 20:33:09
422
原创 B. And
B. Andtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is an array with n elements a1, a2, ..., an and the number x.In one...
2018-07-31 20:28:13
433
原创 A. Piles With Stones
A. Piles With Stonestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a beautiful garden of stones in Innopolis.Its most...
2018-07-31 16:54:39
438
原创 托米的位运算
链接:https://www.nowcoder.com/acm/contest/156/C来源:牛客网 托米的位运算时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述托米完成了1317的上一个任务,十分高兴,可是考验还没有结束说话间1317给了托米 n 个自然数 a1......
2018-07-31 16:08:41
242
原创 托米的咒语
链接:https://www.nowcoder.com/acm/contest/156/D来源:牛客网 托米的咒语时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述托米没有完成上一个任务,准备施展黑魔法推倒 1317 黑魔法咒语被描述为一个 长为 n 的,仅包含小写英...
2018-07-31 14:27:56
214
原创 托米的划分
链接:https://www.nowcoder.com/acm/contest/156/B来源:牛客网 托米的划分时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述欧洲人托米非常喜欢数字,他经常在空闲时玩下面的游戏对于一个数字 n, 托米会随性选中一个数 p, (1 < p...
2018-07-30 19:21:29
585
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人