随笔分类 -  codefores水题

摘要:Yaroslav has an array that consists of n integers. In one second Yaroslav can swap two neighboring array elements. Now Yaroslav is won... 阅读全文
posted @ 2018-12-20 15:14 black_hole6 阅读(274) 评论(0) 推荐(0)
摘要:time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVova's family is building the Gr... 阅读全文
posted @ 2018-12-19 16:32 black_hole6 阅读(127) 评论(0) 推荐(0)
摘要:time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are nn students in a univer... 阅读全文
posted @ 2018-12-19 16:11 black_hole6 阅读(160) 评论(0) 推荐(0)
摘要:time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two integers n and ... 阅读全文
posted @ 2018-12-19 16:07 black_hole6 阅读(203) 评论(0) 推荐(0)
摘要:Arpa is taking a geometry exam. Here is the last problem of the exam.You are given three points a, b, c.Find a point and an angle such... 阅读全文
posted @ 2018-12-18 09:55 black_hole6 阅读(243) 评论(0) 推荐(0)
摘要:Saitama accidentally destroyed a hotel again. To repay the hotel company, Genos has volunteered to operate an elevator in one of its o... 阅读全文
posted @ 2018-12-18 09:14 black_hole6 阅读(184) 评论(0) 推荐(0)
摘要:Little girl Tanya climbs the stairs inside a multi-storey building. Every time Tanya climbs a stairway, she starts counting steps from... 阅读全文
posted @ 2018-12-17 23:35 black_hole6 阅读(192) 评论(0) 推荐(0)
摘要:Sonya decided that having her own hotel business is the best way of earning money because she can profit and rest wherever she wants.T... 阅读全文
posted @ 2018-12-17 21:39 black_hole6 阅读(158) 评论(0) 推荐(0)
摘要:You are given three integers aa, bb and xx. Your task is to construct a binary string ssof length n=a+bn=a+b such that there are exact... 阅读全文
posted @ 2018-12-17 21:03 black_hole6 阅读(168) 评论(0) 推荐(0)
摘要:time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputChouti and his classmates are goi... 阅读全文
posted @ 2018-12-17 09:44 black_hole6 阅读(241) 评论(0) 推荐(0)
摘要:time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputChouti was doing a competitive pr... 阅读全文
posted @ 2018-12-17 09:40 black_hole6 阅读(104) 评论(0) 推荐(0)
摘要:time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a string ss consist... 阅读全文
posted @ 2018-12-16 00:52 black_hole6 阅读(189) 评论(0) 推荐(0)
摘要:time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMishka got a six-faced dice. It h... 阅读全文
posted @ 2018-12-16 00:49 black_hole6 阅读(252) 评论(0) 推荐(0)
摘要:Polycarp has nn coins, the value of the ii-th coin is aiai. Polycarp wants to distribute all the coins between his pockets, but he can... 阅读全文
posted @ 2018-12-14 18:02 black_hole6 阅读(139) 评论(0) 推荐(0)
摘要:Duff is addicted to meat! Malek wants to keep her happy for n days. In order to be happy in i-th day, she needs to eat exactly ai kilo... 阅读全文
posted @ 2018-12-14 11:13 black_hole6 阅读(226) 评论(0) 推荐(0)
摘要:Eugeny has array a = a1, a2, ..., an, consisting of n integers. Each integer ai equals to -1, or to 1. Also, he has m queries:Query nu... 阅读全文
posted @ 2018-12-14 10:49 black_hole6 阅读(234) 评论(0) 推荐(0)