VK Cup 2017 - Wild Card Round 1

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
774 VK Cup 2017 - Wild Card Round 1 FINISHED False 7200 246119123 April 5, 2017, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 109 ) F Pens And Days Of Week PROGRAMMING *special binary search number theory 2600

B"Stepan has n pens. Every day he uses them, and on the i-th day he uses the pen number i. On the (n xe2 x80 x89+ xe2 x80 x891)-th day again he uses the pen number 1, on the (n xe2 x80 x89+ xe2 x80 x892)-th -- he uses the pen number 2 and so on. On every working day (from Monday to Saturday, inclusive) Stepan spends exactly 1 milliliter of ink of the pen he uses that day. On Sunday Stepan has a day of rest, he does not stend the ink of the pen he uses that day. Stepan knows the current volume of ink in each of his pens. Now it's the Monday morning and Stepan is going to use the pen number 1 today. Your task is to determine which pen will run out of ink before all the rest (that is, there will be no ink left in it), if Stepan will use the pens according to the conditions described above. The first line contains the integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8950 xe2 x80 x89000) -- the number of pens Stepan has. The second line contains the sequence of integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109), where ai is equal to the number of milliliters of ink which the pen number i currently has. Print the index of the pen which will run out of ink before all (it means that there will be no ink left in it), if Stepan will use pens according to the conditions described above. Pens are numbered in the order they are given in input data. The numeration begins from one. Note that the answer is always unambiguous, since several pens can not end at the same time. In the first test Stepan uses ink of pens as follows: So, the first pen which will not have ink is the pen number 2. "...

Tutorials

VK Cup 2017 — Уайлд-кард раунд 1 — Разбор

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
26155137 angry gentoo_root F April 5, 2017, 5:31 p.m. OK FPC TESTS 88 46 2662400 2600
35955994 MegaOwIer F March 5, 2018, 4:40 a.m. OK GNU C TESTS 88 31 2048000 2600
26198296 Toxel F April 7, 2017, 4:05 p.m. OK GNU C++11 TESTS 88 31 2252800 2600
27201639 hamlet F May 18, 2017, 5:19 p.m. OK GNU C++11 TESTS 88 62 409600 2600
26709249 Noam527 F April 27, 2017, 8:18 p.m. OK GNU C++11 TESTS 88 124 2457600 2600
26512113 nikgaevoy F April 20, 2017, 9:37 a.m. OK GNU C++14 TESTS 88 31 2150400 2600
26342623 krijgertje F April 13, 2017, 3:21 p.m. OK GNU C++14 TESTS 88 31 2355200 2600
68371622 pikmike F Jan. 7, 2020, 5:56 p.m. OK GNU C++14 TESTS 88 46 409600 2600
28387072 JustasK F July 9, 2017, 12:13 p.m. OK GNU C++14 TESTS 88 109 2764800 2600
36638003 paulcristian F March 26, 2018, 10:06 a.m. OK GNU C++14 TESTS 88 156 4403200 2600
41030741 .__. F July 31, 2018, 2:51 p.m. OK GNU C++17 TESTS 88 46 409600 2600
47353949 JSZX11556 F Dec. 22, 2018, 5:05 a.m. OK GNU C++17 TESTS 88 62 13721600 2600
48769329 TortoiseWrath F Jan. 22, 2019, 9:45 p.m. OK GNU C++17 TESTS 88 124 409600 2600
48769240 TortoiseWrath F Jan. 22, 2019, 9:39 p.m. OK GNU C++17 TESTS 88 124 409600 2600
40892141 Gediminas F July 28, 2018, 4:46 p.m. OK GNU C++17 TESTS 88 140 409600 2600
29837943 mualanhlung017 F Aug. 28, 2017, 3:26 a.m. OK Java 8 TESTS 88 233 0 2600
26200368 haleyk100198 F April 7, 2017, 5:36 p.m. OK MS C# TESTS 88 218 14848000 2600
26232202 _ShadowSong F April 9, 2017, 7:57 a.m. OK Perl TESTS 88 171 10137600 2600
26155381 maximumSHOT Woodie F April 5, 2017, 5:33 p.m. OK PyPy 3 TESTS 88 218 29491200 2600
26155450 maximumSHOT Woodie F April 5, 2017, 5:34 p.m. OK Python 3 TESTS 88 717 9625600 2600
26323395 6eJIa9IzZzTeHb F April 12, 2017, 5:54 p.m. OK Scala TESTS 88 326 24268800 2600
26228427 stczhc F April 9, 2017, 12:56 a.m. OK Scala TESTS 88 326 24371200 2600
40982730 ReaLNero1 F July 30, 2018, 6:33 p.m. OK Scala TESTS 88 577 1945600 2600

remove filters

Back to search problems