2018-2019 ICPC, NEERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred)

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
1089 2018-2019 ICPC, NEERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) FINISHED False 18000 188088899 Dec. 2, 2018, 7:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2943 ) G Guest Student PROGRAMMING math 1600

B'Berland State University invites people from all over the world as guest students. You can come to the capital of Berland and study with the best teachers in the country. Berland State University works every day of the week, but classes for guest students are held on the following schedule. You know the sequence of seven integers a_1, a_2, ... , a_7 ( a_i = 0 or a_i = 1 ): The classes for guest students are held in at least one day of a week. You want to visit the capital of Berland and spend the minimum number of days in it to study k days as a guest student in Berland State University. Write a program to find the length of the shortest continuous period of days to stay in the capital to study exactly k days as a guest student. The first line of the input contains integer t ( 1 <= t <= 10 ,000 ) -- the number of test cases to process. For each test case independently solve the problem and print the answer. Each test case consists of two lines. The first of them contains integer k ( 1 <= k <= 10^8 ) -- the required number of days to study as a guest student. The second line contains exactly seven integers a_1, a_2, ... , a_7 ( a_i = 0 or a_i = 1 ) where a_i=1 if and only if classes for guest students are held on the i -th day of a week. Print t lines, the i -th line should contain the answer for the i -th test case -- the length of the shortest continuous period of days you need to stay to study exactly k days as a guest student. In the first test case you must arrive to the capital of Berland on Monday, have classes on this day, spend a week until next Monday and have classes on the next Monday. In total you need to spend 8 days in the capital of Berland. '...

Tutorials

T

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
46693855 ruban G Dec. 6, 2018, 6:13 p.m. OK Delphi TESTS 6 31 11776000 1600
46477638 TShT G Dec. 2, 2018, 8:21 a.m. OK FPC TESTS 6 61 80179200 1600
46663328 DedMartyn G Dec. 5, 2018, 9:29 p.m. OK GNU C11 TESTS 6 46 0 1600
46828336 Pragyan_c2 G Dec. 9, 2018, 8:01 p.m. OK GNU C11 TESTS 6 46 0 1600
46506272 sajalmkk jashn1234 naman1409 G Dec. 2, 2018, 11:20 a.m. OK GNU C11 TESTS 6 61 0 1600
46507061 Sempr G Dec. 2, 2018, 11:38 a.m. OK GNU C11 TESTS 6 62 0 1600
46639085 WhiteRose45 G Dec. 5, 2018, 8:34 a.m. OK GNU C11 TESTS 6 62 0 1600
46508229 madlad G Dec. 2, 2018, 12:02 p.m. OK GNU C11 TESTS 6 62 0 1600
46471854 yokozuna57 HIR180 yutaka1999 G Dec. 2, 2018, 7:35 a.m. OK GNU C++11 TESTS 6 15 0 1600
46470499 tender_green little_waxberry HeHere G Dec. 2, 2018, 7:21 a.m. OK GNU C++11 TESTS 6 15 0 1600
46470254 1919810 whzzt apiadu G Dec. 2, 2018, 7:12 a.m. OK GNU C++11 TESTS 6 15 0 1600
51601217 tingyu G March 21, 2019, 4 a.m. OK GNU C++11 TESTS 6 15 0 1600
48306654 yaufung G Jan. 12, 2019, 8:19 p.m. OK GNU C++11 TESTS 6 15 0 1600
46568290 jzqjzq G Dec. 4, 2018, 2:55 a.m. OK GNU C++11 TESTS 6 15 0 1600
46471973 cxaphoenix MKibera kingjgv5 G Dec. 2, 2018, 7:37 a.m. OK GNU C++11 TESTS 6 15 0 1600
46474084 Creed_ G Dec. 2, 2018, 7:57 a.m. OK GNU C++11 TESTS 6 15 409600 1600
58208435 vjudge3 G Aug. 3, 2019, 7:59 a.m. OK GNU C++11 TESTS 6 30 0 1600
46648877 lyh uniea wbs501 G Dec. 5, 2018, 1:04 p.m. OK GNU C++11 TESTS 6 30 0 1600
46471006 wleung_bvg G Dec. 2, 2018, 7:26 a.m. OK GNU C++14 TESTS 6 15 0 1600
46515306 tokitsukaze G Dec. 2, 2018, 3:47 p.m. OK GNU C++14 TESTS 6 15 204800 1600
46474014 NoBBok tokitsukaze kirisame G Dec. 2, 2018, 7:55 a.m. OK GNU C++14 TESTS 6 15 204800 1600
46743358 _deepak_ G Dec. 8, 2018, 5:13 a.m. OK GNU C++14 TESTS 6 30 0 1600
51465978 darwin_100en3 G March 19, 2019, 1:31 a.m. OK GNU C++14 TESTS 6 30 0 1600
48591244 molamola. G Jan. 20, 2019, 2:30 a.m. OK GNU C++14 TESTS 6 30 0 1600
47482609 hoiek12 G Dec. 25, 2018, 6:24 a.m. OK GNU C++14 TESTS 6 30 0 1600
46785429 bibibibi WonderMouse fange121 G Dec. 9, 2018, 6:06 a.m. OK GNU C++14 TESTS 6 30 0 1600
46743500 Asm.Def G Dec. 8, 2018, 5:20 a.m. OK GNU C++14 TESTS 6 30 0 1600
46642602 Aguin fifteen CoupDeGrace G Dec. 5, 2018, 10:35 a.m. OK GNU C++14 TESTS 6 30 0 1600
47032566 tzxydby G Dec. 15, 2018, 10:41 a.m. OK GNU C++17 TESTS 6 30 0 1600
47811780 CoDeRoK G Jan. 1, 2019, 11:51 a.m. OK GNU C++17 TESTS 6 30 0 1600
46471329 wwwwodddd AA_love_dreamoon dreamoon_love_AA G Dec. 2, 2018, 7:33 a.m. OK GNU C++17 TESTS 6 30 0 1600
46573502 CrazyDave G Dec. 4, 2018, 7:21 a.m. OK GNU C++17 TESTS 6 30 0 1600
47944098 mohmahkho G Jan. 4, 2019, 6:32 p.m. OK GNU C++17 TESTS 6 30 204800 1600
49058121 vjudge2 G Jan. 27, 2019, 2:12 p.m. OK GNU C++17 TESTS 6 30 204800 1600
49684038 fffeyn G Feb. 10, 2019, 5:43 a.m. OK GNU C++17 TESTS 6 30 204800 1600
69058963 yashviradiya G Jan. 18, 2020, 3:40 p.m. OK GNU C++17 TESTS 6 31 0 1600
69047068 zyc12241252 G Jan. 18, 2020, 11:23 a.m. OK GNU C++17 TESTS 6 31 0 1600
68429375 9957 G Jan. 9, 2020, 6:01 a.m. OK GNU C++17 TESTS 6 31 0 1600
68078434 WangJialei G Jan. 2, 2020, 1:29 p.m. OK Go TESTS 6 77 0 1600
46740500 davidguandev G Dec. 8, 2018, 1:46 a.m. OK Go TESTS 6 93 0 1600
46740638 davidguandev G Dec. 8, 2018, 2 a.m. OK Go TESTS 6 93 0 1600
58674051 cprayer G Aug. 12, 2019, 3:41 p.m. OK Go TESTS 6 748 0 1600
46512236 Conceal G Dec. 2, 2018, 1:55 p.m. OK Java 8 TESTS 6 108 0 1600
48904304 mTvTm G Jan. 24, 2019, 7:35 p.m. OK Java 8 TESTS 6 109 0 1600
46895545 spar5h Jeel_Vaishnav Yash23 G Dec. 11, 2018, 9 a.m. OK Java 8 TESTS 6 109 0 1600
46623143 isku G Dec. 4, 2018, 7:04 p.m. OK Java 8 TESTS 6 109 0 1600
46472202 tehqin G Dec. 2, 2018, 7:42 a.m. OK Java 8 TESTS 6 109 0 1600
46471258 eatmore G Dec. 2, 2018, 7:31 a.m. OK Java 8 TESTS 6 109 0 1600
48266911 formalist G Jan. 11, 2019, 8:57 p.m. OK Java 8 TESTS 6 124 0 1600
48115451 alibaba G Jan. 9, 2019, 12:25 p.m. OK Java 8 TESTS 6 124 0 1600
46541319 kusomushi G Dec. 3, 2018, 12:07 p.m. OK Java 8 TESTS 6 124 0 1600
46499583 nong leehosu01 isku G Dec. 2, 2018, 10:34 a.m. OK Java 8 TESTS 6 124 0 1600
46485323 moss3s G Dec. 2, 2018, 9:22 a.m. OK Kotlin TESTS 6 218 614400 1600
46540945 bubnov G Dec. 3, 2018, 11:56 a.m. OK Kotlin TESTS 6 233 716800 1600
69588255 arti G Jan. 26, 2020, 8:52 p.m. OK Kotlin TESTS 6 249 716800 1600
56647260 og.kostya G July 7, 2019, 7:12 a.m. OK Mono C# TESTS 6 62 5017600 1600
46768194 nastya1199 G Dec. 8, 2018, 3:27 p.m. OK Mono C# TESTS 6 124 3072000 1600
46470985 BrainFreeze peregrinus G Dec. 2, 2018, 7:26 a.m. OK Mono C# TESTS 6 139 73932800 1600
46722645 omikad G Dec. 7, 2018, 1:44 p.m. OK Mono C# TESTS 6 140 6656000 1600
49468803 vjudge3 G Feb. 4, 2019, 4:13 p.m. OK MS C++ TESTS 6 30 0 1600
47315459 Sirius_SW G Dec. 21, 2018, 2:38 a.m. OK MS C++ TESTS 6 30 0 1600
46741335 mx180 G Dec. 8, 2018, 2:52 a.m. OK MS C++ TESTS 6 31 0 1600
46481377 Algwang G Dec. 2, 2018, 8:54 a.m. OK MS C++ TESTS 6 31 0 1600
49222255 XDKalia G Jan. 30, 2019, 7:51 p.m. OK MS C++ TESTS 6 31 0 1600
49115793 vjudge3 G Jan. 28, 2019, 4:53 p.m. OK MS C++ TESTS 6 31 0 1600
46850265 h1832469982 G Dec. 10, 2018, 11:54 a.m. OK MS C++ TESTS 6 31 0 1600
46850253 vjudge4 G Dec. 10, 2018, 11:54 a.m. OK MS C++ TESTS 6 31 0 1600
49222277 vjudge4 G Jan. 30, 2019, 7:51 p.m. OK MS C++ TESTS 6 46 0 1600
49232317 vjudge3 G Jan. 31, 2019, 6:10 a.m. OK MS C++ TESTS 6 46 0 1600
60989571 Sanqer WoodMachine beautifulsmile G Sept. 21, 2019, 8:22 a.m. OK MS C++ 2017 TESTS 6 62 0 1600
64681235 hi_allerria G Nov. 11, 2019, 10:05 a.m. OK MS C++ 2017 TESTS 6 78 0 1600
60925511 Phantom_ G Sept. 20, 2019, 12:08 p.m. OK MS C++ 2017 TESTS 6 93 0 1600
63947939 xfd1048577 G Oct. 31, 2019, 7:43 p.m. OK MS C++ 2017 TESTS 6 93 0 1600
63241584 hi_allerria G Oct. 23, 2019, 1:35 p.m. OK MS C++ 2017 TESTS 6 108 0 1600
60925977 Phantom_ G Sept. 20, 2019, 12:17 p.m. OK MS C++ 2017 TESTS 6 109 0 1600
51943122 mm944 G March 28, 2019, 3:25 p.m. OK PascalABC.NET TESTS 6 546 0 1600
47535604 hoxit G Dec. 27, 2018, 12:54 a.m. OK PHP TESTS 6 124 0 1600
49620448 yellowflash G Feb. 8, 2019, 9:07 a.m. OK PyPy 3 TESTS 6 421 7987200 1600
49506174 TsutsukakushiTsukiko G Feb. 5, 2019, 5:36 p.m. OK PyPy 3 TESTS 6 452 8294400 1600
51356736 sanvi_kiit G March 16, 2019, 4:51 a.m. OK PyPy 3 TESTS 6 468 6041600 1600
47673262 saku7 G Dec. 29, 2018, 7:29 a.m. OK PyPy 3 TESTS 6 530 8089600 1600
46640814 psaini G Dec. 5, 2018, 9:32 a.m. OK Python 2 TESTS 6 327 409600 1600
47468318 manjeet1999 G Dec. 24, 2018, 7:49 p.m. OK Python 2 TESTS 6 358 204800 1600
47819119 markovDPro G Jan. 1, 2019, 4:26 p.m. OK Python 2 TESTS 6 468 0 1600
61843887 nguyenvlm G Oct. 4, 2019, 10:41 a.m. OK Python 3 TESTS 6 264 0 1600
47717065 whatshisbucket G Dec. 30, 2018, 8:34 a.m. OK Python 3 TESTS 6 265 0 1600
46551355 llllllll G Dec. 3, 2018, 6:02 p.m. OK Python 3 TESTS 6 295 409600 1600
47615764 Tauzn G Dec. 28, 2018, 10:24 a.m. OK Python 3 TESTS 6 296 0 1600
50490057 beemax G Feb. 25, 2019, 1:01 p.m. OK Python 3 TESTS 6 311 0 1600
46502406 __ivan__ G Dec. 2, 2018, 10:48 a.m. OK Python 3 TESTS 6 311 0 1600
49460004 wxy1800011848 G Feb. 4, 2019, 12:29 p.m. OK Python 3 TESTS 6 312 102400 1600
46497542 Sturdy G Dec. 2, 2018, 10:25 a.m. OK Python 3 TESTS 6 326 0 1600
47825716 blinkRS G Jan. 1, 2019, 10:31 p.m. OK Python 3 TESTS 6 343 0 1600
46901042 wol G Dec. 11, 2018, 11:58 a.m. OK Python 3 TESTS 6 358 0 1600
46712396 G Dec. 7, 2018, 9:06 a.m. OK Unknown TESTS 0 0 0 1600
46712365 G Dec. 7, 2018, 9:06 a.m. OK Unknown TESTS 0 0 0 1600
46712094 G Dec. 7, 2018, 9:06 a.m. OK Unknown TESTS 0 0 0 1600
46712020 G Dec. 7, 2018, 9:06 a.m. OK Unknown TESTS 0 0 0 1600
46711937 G Dec. 7, 2018, 9:06 a.m. OK Unknown TESTS 0 0 0 1600
46711929 G Dec. 7, 2018, 9:06 a.m. OK Unknown TESTS 0 0 0 1600
46711818 G Dec. 7, 2018, 9:06 a.m. OK Unknown TESTS 0 0 0 1600
46711724 G Dec. 7, 2018, 9:06 a.m. OK Unknown TESTS 0 0 0 1600
46711716 G Dec. 7, 2018, 9:06 a.m. OK Unknown TESTS 0 0 0 1600
46711627 G Dec. 7, 2018, 9:06 a.m. OK Unknown TESTS 0 0 0 1600

remove filters

Back to search problems