- 博客(9)
- 收藏
- 关注
原创 Codeforces Round #158 (Div. 2) D. Black and White Tree
D. Black and White TreeThe board has got a painted tree graph, consisting of n nodes. Let us remind you that a non-directed graph is called a tree if it is connected and doesn't contain any cycles....
2018-07-24 16:14:43 203
原创 Codeforces Round #160 (Div. 1) B. Maxim and Restaurant
B. Maxim and RestaurantMaxim has opened his own restaurant! The restaurant has got a huge table, the table's length is p meters.Maxim has got a dinner party tonight, n guests will come to him. Let...
2018-07-24 15:22:03 196
原创 Codeforces Round #160 (Div. 1) A. Maxim and Discounts
A. Maxim and Discounts Maxim always goes to the supermarket on Sundays. Today the supermarket has a special offer of discount systems.There are m types of discounts. We assume that the discounts...
2018-07-24 09:58:14 220
原创 Codeforces Round #210 (Div. 1) A. Levko and Array Recovery
A. Levko and Array RecoveryLevko loves array a1, a2, ... , an, consisting of integers, very much. That is why Levko is playing with array a, performing all sorts of operations with it. Each operatio...
2018-07-23 09:40:03 153
原创 Codeforces Round #158 (Div. 2)C. Balls and Boxes
C. Balls and Boxestime limit per test:1 second memory limit per test:256 megabytesLittle Vasya had n boxes with balls in the room. The boxes stood in a row and were numbered with numbers from 1 to...
2018-07-23 00:14:49 194
原创 Day 01: Random Mashup
2018.7.19今天是训练的第一场比赛今日ranklist:A. Levko and Table题意:给定n和k,要求你构造出一个n维方阵使得每行每列的和等于k解法:对角线是k 其他数是0即可B. Levko and Permutation题意:给定n和k,要求你构造出一个序列有n个数(1~n),使得每个数与其下标的最大公约数大于等于1的个数为k个解法:只需要...
2018-07-22 16:46:15 156
原创 Codeforces1006E Military Problem
E. Military Problemtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this problem you will have to help Berland army with organ...
2018-07-17 15:26:19 405
原创 Codeforces 1005DPolycarp and Div 3
D. Polycarp and Div 3time limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp likes numbers that are divisible by 3.He has a huge number ss. Polyc...
2018-07-11 00:20:15 373
原创 Codeforces1003D Coins and Queries
D. Coins and Queriestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp has nn coins, the value of the ii-th coin is aiai. It is guaranteed t...
2018-07-09 14:35:29 274
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人