![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 456 阅读 · 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 · 400 阅读 · 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 · 291 阅读 · 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 · 449 阅读 · 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 · 298 阅读 · 0 评论 -
Codeforces Round #461 (Div. 2) C. Cave Painting
C. Cave Paintingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputImp is watching a documentary about cave painting.Some number...原创 2018-09-01 09:34:35 · 183 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) A. Aramic script
A. Aramic scripttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn Aramic language words can only represent objects.Words in Ar...原创 2018-09-01 18:37:56 · 142 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) B. Mancala
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMancala is a game famous in the Middle East. It is played on a board that consists ...原创 2018-09-01 18:39:18 · 150 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) C. Valhalla Siege
C. Valhalla Siegetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIvar the Boneless is a great leader. He is trying to capture Ka...原创 2018-09-01 18:41:04 · 235 阅读 · 0 评论 -
codeforce 897B
B. Chtholly's requesttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output— Thanks a lot for today.— I experienced so原创 2017-12-05 23:02:40 · 234 阅读 · 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 ofn rows and m col原创 2017-12-03 09:03:18 · 234 阅读 · 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 · 209 阅读 · 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 · 270 阅读 · 0 评论 -
G - Plant
G - PlantCrawling in process...Submit Status Practice CodeForces 185ADescriptionDwarfs have planted a very interesting plant, which is a triangle directed "upwards". This plant has原创 2017-08-23 09:09:04 · 278 阅读 · 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).InputThe first line contains two integers原创 2017-08-23 09:15:49 · 240 阅读 · 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 · 237 阅读 · 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 · 252 阅读 · 0 评论 -
Maximal GCD
You are given positive integer number n. You should create such strictly increasing sequence ofk positive numbers a1, a2, ..., ak, that their sum is equal ton and greatest common divisor is ma原创 2017-11-04 17:38:29 · 221 阅读 · 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 · 263 阅读 · 0 评论 -
Codeforces Round #516 (Div. 2)
A. Make a triangle!time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMasha has three sticks of length aa, bb and cc centimeters re...原创 2018-10-17 18:07:52 · 367 阅读 · 0 评论