
Codeforces
gtuif
大多数人永远都不会了解真实的你,但是他们会看到你所做的一切。。。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
51Nod1596 搬货物(codeforces)
1596 搬货物 题目来源: CodeForces 基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题 收藏 关注 现在有n个货物,第i个货物的重量是 2wi 。每次搬的时候要求货物重量的总和是一个2的幂。问最少要搬几次能把所有的货物搬完。 样例解释: 1,1,2作为一组。 3,3作为一组。原创 2017-08-07 17:47:15 · 503 阅读 · 0 评论 -
codeforce 333B chips
Gerald plays the following game. He has a checkered field of size n × n cells, where m various cells are banned. Before the game, he has to put a few chips on some border (but not corner) board cells...原创 2018-02-25 12:45:54 · 453 阅读 · 0 评论 -
(补题)CF 467 div2
A. Olympiadtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe recent All-Berland Olympiad in Informatics featured n participants with each scoring...原创 2018-03-06 15:43:56 · 336 阅读 · 0 评论 -
Codeforce 957 Div2 A. Tritonic Iridescence
outputstandard outputOverlooking the captivating blend of myriads of vernal hues, Arkady the painter lays out a long, long canvas.Arkady has a sufficiently large amount of paint of three colours: cyan...原创 2018-03-27 10:16:20 · 510 阅读 · 0 评论 -
codeforce 962A Equator
A. Equatortime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp has created his own training plan to prepare for the programming contests. He w...原创 2018-04-16 21:29:31 · 337 阅读 · 0 评论 -
Codeforces Round #461 (Div. 2) C. Cave Painting
C. Cave Painting time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Imp is watching a documentary about cave painting. Some number...原创 2018-09-01 09:34:35 · 221 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) A. Aramic script
A. Aramic script time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output In Aramic language words can only represent objects. Words in Ar...原创 2018-09-01 18:37:56 · 183 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) B. Mancala
time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Mancala is a game famous in the Middle East. It is played on a board that consists ...原创 2018-09-01 18:39:18 · 197 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) C. Valhalla Siege
C. Valhalla Siege time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Ivar the Boneless is a great leader. He is trying to capture Ka...原创 2018-09-01 18:41:04 · 273 阅读 · 0 评论 -
codeforce 897B
B. Chtholly's request time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output — Thanks a lot for today. — I experienced so原创 2017-12-05 23:02:40 · 281 阅读 · 0 评论 -
codeforce 777c Alyona and Spreadsheet
During the lesson small girl Alyona works with one famous spreadsheet computer program and learns how to edit tables. Now she has a table filled with integers. The table consists of n rows and m col原创 2017-12-03 09:03:18 · 296 阅读 · 0 评论 -
D - Fox And Two Dots (codeforces 510B)
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. We will use diffe...原创 2017-08-02 14:20:12 · 244 阅读 · 0 评论 -
K - *Restoring Painting(思维)
Vasya works as a watchman in the gallery. Unfortunately, one of the most expensive paintings was stolen while he was on duty. He doesn't want to be fired, so he has to quickly restore the painting. He原创 2017-07-21 18:42:36 · 307 阅读 · 0 评论 -
G - Plant
G - Plant Crawling in process... Submit Status Practice CodeForces 185A Description Dwarfs have planted a very interesting plant, which is a triangle directed "upwards". This plant has原创 2017-08-23 09:09:04 · 315 阅读 · 0 评论 -
Jzzhu and Sequences CodeForces - 450B
Jzzhu has invented a kind of sequences, they meet the following property: You are given x and y, please calculate fn modulo 1000000007 (109 + 7). Input The first line contains two integers原创 2017-08-23 09:15:49 · 276 阅读 · 0 评论 -
HPU第七周周练 I
Slastyona and her loyal dog Pushok are playing a meaningless game that is indeed very interesting.The game consists of multiple rounds. Its rules are very simple: in each round, a natural number k is c原创 2017-11-10 23:31:03 · 279 阅读 · 0 评论 -
HPU第七周周练 A
Bash has set out on a journey to become the greatest Pokemon master. To get his first Pokemon, he went to Professor Zulu's Lab. Since Bash is Professor Zulu's favourite student, Zulu allows him to tak原创 2017-11-10 23:38:21 · 292 阅读 · 0 评论 -
Maximal GCD
You are given positive integer number n. You should create such strictly increasing sequence of k positive numbers a1, a2, ..., ak, that their sum is equal to n and greatest common divisor is ma原创 2017-11-04 17:38:29 · 268 阅读 · 0 评论 -
Distances to Zero
You are given the array of integer numbers a0, a1, ..., an - 1. For each element find the distance to the nearest zero (to the element which equals to zero). There is at least one zero element in the原创 2017-11-04 17:44:16 · 295 阅读 · 0 评论 -
Codeforces Round #516 (Div. 2)
A. Make a triangle! time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Masha has three sticks of length aa, bb and cc centimeters re...原创 2018-10-17 18:07:52 · 435 阅读 · 0 评论