- 博客(26)
- 资源 (8)
- 收藏
- 关注
原创 B - 歌德巴赫猜想
Sample Input 10 Sample Output 3 7 哥德巴赫猜想认为“每一个大于2的偶数,都能表示成两个质数之和”。 给定一个大于2的偶数N,你能找到两个质数P和Q满足P<=Q并且P+Q=N吗? Inp...
2018-03-25 20:57:04
367
转载 G - Lunch Time
The 999th Zhejiang Provincial Collegiate Programming Contest will be held in Marjar University. The canteen of Marjar University is making preparations for this grand competition. The canteen provide...
2018-03-21 20:33:40
333
转载 H - May Day Holiday
As a university advocating self-learning and work-rest balance, Marjar University has so many days of rest, including holidays and weekends. Each weekend, which consists of Saturday and Sunday, is a ...
2018-03-21 19:02:58
593
原创 B. World Cup
B. World Cuptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe last stage of Football World Cup is played using the play-off system.There ...
2018-03-17 18:16:27
597
转载 B - Barnicle
Barney is standing in a bar and starring at a pretty girl. He wants to shoot her with his heart arrow but he needs to know the distance between him and the girl to make his shot accurate. Barney a...
2018-03-14 21:41:35
292
转载 D. Two Sets
Two Setstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle X has n distinct integers: p1, p2, ..., pn. He wants to divide all of them into two ...
2018-03-04 16:52:49
408
原创 C. 24 Game
C. 24 Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle X used to play a card game called "24 Game", but recently he has found it too easy...
2018-03-04 14:04:39
166
转载 B. Chat Online
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle X and Little Z are good friends. They always chat online. But both of them have schedules.Li...
2018-03-04 13:01:15
275
原创 H - Maximize!
You are given a multiset S consisting of positive integers (initially empty). There are two kind of queries:Add a positive integer to S, the newly added integer is not less than any number in it.Find ...
2018-03-03 15:27:30
290
转载 C - Convenient For Everybody
In distant future on Earth day lasts for n hours and that's why there are n timezones. Local times in adjacent timezones differ by one hour. For describing local time, hours numbers from 1 to n are us...
2018-03-03 09:59:24
348
原创 B - Vile Grasshoppers
The weather is fine today and hence it's high time to climb the nearby pine and enjoy the landscape.The pine's trunk includes several branches, located one above another and numbered from 2 to y. Some...
2018-03-02 14:25:38
272
原创 A - Word Correction
Victor tries to write his own text editor, with word correction included. However, the rules of word correction are really strange.Victor thinks that if a word contains two consecutive vowels, then it...
2018-03-02 14:24:40
218
转载 C - Old Berland Language
Berland scientists know that the Old Berland language had exactly n words. Those words had lengths of l1, l2, ..., ln letters. Every word consisted of two letters, 0 and 1. Ancient Berland people spok...
2018-03-02 10:57:34
310
原创 A - Minimum Modular
You have been given n distinct integers a1, a2, ..., an. You can remove at most k of them. Find the minimum modular m (m > 0), so that for every pair of the remaining integers (ai, aj), the follow...
2018-03-01 21:10:10
257
原创 C. Inna and Dima
Inna and Dimatime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputInna and Dima bought a table of size n × m in
2018-02-07 16:00:10
286
1
原创 C. Dima and Salad
Dima and Saladtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDima, Inna and Seryozha have gathered in a ro
2018-02-07 15:24:12
198
原创 B. Inna and Nine
Inna and Ninetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputInna loves digit 9 very much. That's why she a
2018-02-06 15:55:55
220
原创 A. Inna and Pink Pony
Inna and Pink Ponytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDima and Inna are doing so great! At the
2018-02-06 14:43:15
251
转载 A - Milk Patterns
Farmer John has noticed that the quality of milk given by his cows varies from day to day. On further investigation, he discovered that although he can't predict the quality of milk from one day to th
2018-02-05 15:23:57
137
原创 F - Assign the task
There is a company that has N employees(numbered from 1 to N),every employee in the company has a immediate boss (except for the leader of whole company).If you are the immediate boss of someone,that
2018-02-05 10:49:49
320
转载 并查集——简单易懂(内附并查集删除操作)
并查集并查集的定义并查集是一种树型的数据结构,用于处理一些不相交集合(Disjoint Sets)的合并及查询问题。常常在使用中以森林来表示。集就是让每个元素构成一个单元素的集合,也就是按一定顺序将属于同一组的元素所在的集合合并。并查集的用途维护一个无向图的连通性,判断n个点m条边时最少加多少边可以连通所有点判断在一个无向图中,两点间加边是否会产生环(最
2018-02-04 15:48:57
6616
1
原创 F - Assign the task
Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones.Your task is counting the segments of different colors you can see at last.
2018-02-04 13:41:07
151
原创 D - Just a Hook
In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic sticks which are of the same length. No
2018-02-04 09:31:15
222
原创 A - Color the ball
N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a Input每个测试实例第一行为一个整数N,(N 当N = 0,输入结束。Output每个测试实例输出一行,包括N个整数,第I个数代表第I个气球总共被涂色的次数。Sample Input31 12 23 331 11 21 30Sample Output1 1 13 2 1
2018-02-02 14:17:32
377
原创 C - Mayor's posters
The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral posters at all places at their whim. The city council has finally d
2018-02-01 16:42:38
145
转载 B - I Hate It
很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。本题目包含多组测试,请处理到文件结束。 在每个测试的第一行,有两个正整数 N 和 M ( 0学生ID编号分别从1编到N。 第二行包含N个整数,代
2018-01-31 10:25:29
206
平衡杆代码2.0.zip
2019-07-27
舵机控制函数终极版还有附赠步进电机的位置控制
2019-04-22
舵机的串口调试程序
2018-10-26
STM32各类小软件集合
2018-08-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人