8VC Venture Cup 2017 - Elimination Round

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
755 8VC Venture Cup 2017 - Elimination Round FINISHED False 7200 253025723 Jan. 15, 2017, 5:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2546 ) D PolandBall and Polygon PROGRAMMING data structures 2000

B'PolandBall has such a convex polygon with n veritces that no three of its diagonals intersect at the same point. PolandBall decided to improve it and draw some red segments. He chose a number k such that gcd(n, xe2 x80 x89k) xe2 x80 x89= xe2 x80 x891. Vertices of the polygon are numbered from 1 to n in a clockwise way. PolandBall repeats the following process n times, starting from the vertex 1: Assume you 've ended last operation in vertex x (consider x xe2 x80 x89= xe2 x80 x891 if it is the first operation). Draw a new segment from vertex x to k-th next vertex in clockwise direction. This is a vertex x xe2 x80 x89+ xe2 x80 x89k or x xe2 x80 x89+ xe2 x80 x89k xe2 x80 x89- xe2 x80 x89n depending on which of these is a valid index of polygon 's vertex. Your task is to calculate number of polygon 's sections after each drawing. A section is a clear area inside the polygon bounded with drawn diagonals or the polygon 's sides. There are only two numbers in the input: n and k (5 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106, 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89- xe2 x80 x892, gcd(n, xe2 x80 x89k) xe2 x80 x89= xe2 x80 x891). You should print n values separated by spaces. The i-th value should represent number of polygon 's sections after drawing first i lines. The greatest common divisor (gcd) of two integers a and b is the largest positive integer that divides both a and b without a remainder. For the first sample testcase, you should output "2 3 5 8 11". Pictures below correspond to situations after drawing lines. '...

Tutorials

8VC Venture Cup 2017 — Elimination Round [Editorial]

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
26984070 nanae1914 D May 9, 2017, 7:51 p.m. OK D TESTS 63 342 102400 2000
26984028 nanae1914 D May 9, 2017, 7:47 p.m. OK D TESTS 63 358 102400 2000
26984013 nanae1914 D May 9, 2017, 7:45 p.m. OK D TESTS 63 436 12083200 2000
23866118 SirNickolas D Jan. 15, 2017, 7:39 p.m. OK D TESTS 63 451 7065600 2000
26984119 nanae1914 D May 9, 2017, 7:55 p.m. OK D TESTS 63 560 24166400 2000
26967384 nanae1914 D May 9, 2017, 4:30 a.m. OK D TESTS 63 639 36147200 2000
23859131 Gassa D Jan. 15, 2017, 6:05 p.m. OK D TESTS 63 858 53452800 2000
23918959 I_Love_Sasha_Golovach D Jan. 18, 2017, 9:57 a.m. OK Delphi TESTS 63 1404 2560000 2000
23867684 ruban D Jan. 15, 2017, 8:10 p.m. OK Delphi TESTS 63 1871 42598400 2000
23863469 Zeron D Jan. 15, 2017, 6:48 p.m. OK FPC TESTS 63 1248 91648000 2000
27307828 The_Winners D May 23, 2017, 7:42 p.m. OK FPC TESTS 63 1949 0 2000
23863550 cannor147 D Jan. 15, 2017, 6:49 p.m. OK FPC TESTS 63 1949 9625600 2000
23870864 ruban D Jan. 16, 2017, 1:33 a.m. OK FPC TESTS 63 1996 41676800 2000
23945711 bzh D Jan. 19, 2017, 1:52 p.m. OK FPC TESTS 63 2043 1638400 2000
25461232 chb19 D March 13, 2017, 7:49 p.m. OK FPC TESTS 63 2074 1638400 2000
23889175 ice_tea D Jan. 16, 2017, 7:03 p.m. OK FPC TESTS 63 2402 1638400 2000
23863982 Daryusz D Jan. 15, 2017, 6:53 p.m. OK FPC TESTS 63 2652 41676800 2000
50610182 PhuongPeu D Feb. 28, 2019, 4:30 p.m. OK FPC TESTS 63 3197 4096000 2000
25116914 JoeBlow D March 1, 2017, 7:18 a.m. OK GNU C TESTS 63 327 1945600 2000
23866077 CloudStrife D Jan. 15, 2017, 7:39 p.m. OK GNU C TESTS 63 343 1843200 2000
25385570 imo D March 10, 2017, 5:40 p.m. OK GNU C TESTS 63 343 5939200 2000
23906496 Gavante D Jan. 17, 2017, 4:33 p.m. OK GNU C TESTS 63 451 1843200 2000
25114797 JoeBlow D March 1, 2017, 4:53 a.m. OK GNU C TESTS 63 451 6144000 2000
23866651 rainboy D Jan. 15, 2017, 7:46 p.m. OK GNU C TESTS 63 499 5939200 2000
23863840 koderliar D Jan. 15, 2017, 6:51 p.m. OK GNU C TESTS 63 607 15257600 2000
23984381 sgtlaugh D Jan. 20, 2017, 9:05 a.m. OK GNU C TESTS 63 670 9932800 2000
24025639 darshanprabhune3105 D Jan. 22, 2017, 7:52 a.m. OK GNU C TESTS 63 857 9932800 2000
23916449 tqyaaaaaaaang D Jan. 18, 2017, 7:23 a.m. OK GNU C++ TESTS 63 326 2048000 2000
27483153 laofudasuan D June 1, 2017, 11:11 a.m. OK GNU C++ TESTS 63 342 0 2000
23872625 CuSO45H2O D Jan. 16, 2017, 3:50 a.m. OK GNU C++ TESTS 63 342 1843200 2000
23872561 CuSO45H2O D Jan. 16, 2017, 3:45 a.m. OK GNU C++ TESTS 63 342 1843200 2000
26759135 vjudge1 D April 30, 2017, 2:48 a.m. OK GNU C++ TESTS 63 342 2048000 2000
32436695 KMAASZRAA D Nov. 18, 2017, 5:14 p.m. OK GNU C++ TESTS 63 343 2048000 2000
23877494 ddddddpppppp D Jan. 16, 2017, 8:41 a.m. OK GNU C++ TESTS 63 343 2048000 2000
23867117 NH_Apu D Jan. 15, 2017, 7:54 p.m. OK GNU C++ TESTS 63 343 2048000 2000
29300734 Scut82 D Aug. 9, 2017, 7:47 a.m. OK GNU C++ TESTS 63 343 2150400 2000
28906014 vjudge1 D July 26, 2017, 1:21 p.m. OK GNU C++ TESTS 63 343 2150400 2000
46199570 vjudge5 D Nov. 25, 2018, 10:33 a.m. OK GNU C++11 TESTS 63 202 0 2000
46142405 vjudge1 D Nov. 24, 2018, 7:15 a.m. OK GNU C++11 TESTS 63 296 0 2000
61472784 luogu_bot3 D Sept. 29, 2019, 1:03 p.m. OK GNU C++11 TESTS 63 296 3993600 2000
63367349 vjudge4 D Oct. 25, 2019, 8:01 a.m. OK GNU C++11 TESTS 63 311 0 2000
61485776 luogu_bot2 D Sept. 29, 2019, 1:35 p.m. OK GNU C++11 TESTS 63 311 0 2000
46155814 vjudge4 D Nov. 24, 2018, 8:35 a.m. OK GNU C++11 TESTS 63 311 0 2000
45191201 Franklin_wyt D Nov. 2, 2018, 2:24 a.m. OK GNU C++11 TESTS 63 311 0 2000
61481682 luogu_bot4 D Sept. 29, 2019, 1:23 p.m. OK GNU C++11 TESTS 63 327 0 2000
30535964 Lazyman D Sept. 20, 2017, 6:12 a.m. OK GNU C++11 TESTS 63 327 0 2000
23867686 bas D Jan. 15, 2017, 8:10 p.m. OK GNU C++11 TESTS 63 327 2048000 2000
48860904 MuhammedAbdalla D Jan. 23, 2019, 10:08 p.m. OK GNU C++14 TESTS 63 280 0 2000
23879098 maheshwarishubh98 D Jan. 16, 2017, 10:13 a.m. OK GNU C++14 TESTS 63 295 1945600 2000
56750523 Scut82 D July 9, 2019, 11:42 a.m. OK GNU C++14 TESTS 63 296 0 2000
30383394 eku D Sept. 16, 2017, 12:48 p.m. OK GNU C++14 TESTS 63 296 0 2000
32981231 dionysios D Dec. 6, 2017, 4:08 p.m. OK GNU C++14 TESTS 63 296 1843200 2000
32981096 dionysios D Dec. 6, 2017, 4:03 p.m. OK GNU C++14 TESTS 63 296 1843200 2000
25467033 MesutOzill11 D March 14, 2017, 6:40 a.m. OK GNU C++14 TESTS 63 296 1945600 2000
24247999 luosuocumt_16 D Jan. 29, 2017, 1:15 p.m. OK GNU C++14 TESTS 63 296 1945600 2000
23870996 venom000 D Jan. 16, 2017, 1:45 a.m. OK GNU C++14 TESTS 63 296 1945600 2000
23870739 AshishYadav D Jan. 16, 2017, 1:20 a.m. OK GNU C++14 TESTS 63 296 1945600 2000
63215350 Hcacai D Oct. 23, 2019, 5:53 a.m. OK GNU C++17 TESTS 63 280 0 2000
46146775 vjudge5 D Nov. 24, 2018, 7:41 a.m. OK GNU C++17 TESTS 63 295 0 2000
63215816 vjudge1 D Oct. 23, 2019, 6:04 a.m. OK GNU C++17 TESTS 63 296 0 2000
63215378 vjudge4 D Oct. 23, 2019, 5:53 a.m. OK GNU C++17 TESTS 63 296 0 2000
54996159 AK. D June 2, 2019, 11:59 p.m. OK GNU C++17 TESTS 63 296 0 2000
46361446 myown1209 D Nov. 29, 2018, 11:22 a.m. OK GNU C++17 TESTS 63 296 0 2000
49931361 SSaken D Feb. 15, 2019, 4:47 a.m. OK GNU C++17 TESTS 63 296 4096000 2000
62542051 Evrik D Oct. 14, 2019, 4:10 a.m. OK GNU C++17 TESTS 63 326 0 2000
55868577 Miichael D June 21, 2019, 1:28 p.m. OK GNU C++17 TESTS 63 326 0 2000
49661465 EMEJ D Feb. 9, 2019, 12:36 p.m. OK GNU C++17 TESTS 63 327 204800 2000
23878980 Azuz D Jan. 16, 2017, 10:06 a.m. OK Java 8 TESTS 63 311 105779200 2000
23878843 Azuz D Jan. 16, 2017, 9:56 a.m. OK Java 8 TESTS 63 311 105779200 2000
23878816 Azuz D Jan. 16, 2017, 9:54 a.m. OK Java 8 TESTS 63 311 105779200 2000
23869133 mdldml D Jan. 15, 2017, 9:34 p.m. OK Java 8 TESTS 63 358 20480000 2000
23857163 iakovlev.zakhar D Jan. 15, 2017, 5:50 p.m. OK Java 8 TESTS 63 358 20480000 2000
23869388 blackhorse21 D Jan. 15, 2017, 9:56 p.m. OK Java 8 TESTS 63 358 20684800 2000
23868966 motivation_error D Jan. 15, 2017, 9:19 p.m. OK Java 8 TESTS 63 358 20684800 2000
23866115 RAMBO_tejasv D Jan. 15, 2017, 7:39 p.m. OK Java 8 TESTS 63 358 105779200 2000
24040143 KNIGHT0X300 D Jan. 22, 2017, 6:36 p.m. OK Java 8 TESTS 63 373 20684800 2000
23868960 motivation_error D Jan. 15, 2017, 9:19 p.m. OK Java 8 TESTS 63 373 20684800 2000
29709236 Eva D Aug. 23, 2017, 1:58 p.m. OK JavaScript TESTS 63 576 85606400 2000
23866082 toxahak D Jan. 15, 2017, 7:39 p.m. OK JavaScript TESTS 63 904 108134400 2000
23879588 hotkey D Jan. 16, 2017, 10:46 a.m. OK Kotlin TESTS 63 624 138547200 2000
23859390 dyukha D Jan. 15, 2017, 6:07 p.m. OK Kotlin TESTS 63 2261 30412800 2000
23866212 Neverauskas D Jan. 15, 2017, 7:40 p.m. OK MS C# TESTS 63 374 80179200 2000
23884766 artsin666 D Jan. 16, 2017, 3:16 p.m. OK MS C# TESTS 63 390 96972800 2000
24034730 Neverauskas D Jan. 22, 2017, 5:09 p.m. OK MS C# TESTS 63 436 147968000 2000
23857089 eulerscheZahl D Jan. 15, 2017, 5:50 p.m. OK MS C# TESTS 63 499 107827200 2000
23868052 renadeen D Jan. 15, 2017, 8:24 p.m. OK MS C# TESTS 63 499 121651200 2000
23862661 og.kostya D Jan. 15, 2017, 6:39 p.m. OK MS C# TESTS 63 639 33587200 2000
24428324 camypaper D Feb. 4, 2017, 8:59 a.m. OK MS C# TESTS 63 717 105164800 2000
24428786 camypaper D Feb. 4, 2017, 9:27 a.m. OK MS C# TESTS 63 748 105164800 2000
24107623 AnatolyTolstobrov D Jan. 25, 2017, 8:44 a.m. OK MS C# TESTS 63 1076 79667200 2000
23867270 mircea85 D Jan. 15, 2017, 7:58 p.m. OK MS C# TESTS 63 1746 94003200 2000
23865608 amethyst0 D Jan. 15, 2017, 7:04 p.m. OK MS C++ TESTS 63 327 2048000 2000
63366288 vjudge4 D Oct. 25, 2019, 7:37 a.m. OK MS C++ TESTS 63 343 0 2000
28792104 vjudge4 D July 23, 2017, 5:20 a.m. OK MS C++ TESTS 63 343 1945600 2000
23875840 666qwerty D Jan. 16, 2017, 7:15 a.m. OK MS C++ TESTS 63 374 2048000 2000
23893982 dklsfjlksdfj D Jan. 17, 2017, 3:42 a.m. OK MS C++ TESTS 63 421 10137600 2000
58313076 vjudge4 D Aug. 5, 2019, 1:17 a.m. OK MS C++ TESTS 63 436 3993600 2000
23866337 DimonK D Jan. 15, 2017, 7:42 p.m. OK MS C++ TESTS 63 483 14131200 2000
23900823 TonySnark D Jan. 17, 2017, 11:34 a.m. OK MS C++ TESTS 63 514 6041600 2000
58259234 vjudge3 D Aug. 4, 2019, 11:31 a.m. OK MS C++ TESTS 63 529 7987200 2000
58196924 vjudge2 D Aug. 3, 2019, 1:21 a.m. OK MS C++ TESTS 63 530 16076800 2000
63211634 vjudge4 D Oct. 23, 2019, 4:12 a.m. OK MS C++ 2017 TESTS 63 686 0 2000
23867781 alexey.shchepin D Jan. 15, 2017, 8:13 p.m. OK Ocaml TESTS 63 904 11264000 2000
23864725 rsFalse D Jan. 15, 2017, 6:59 p.m. OK Perl TESTS 63 811 116633600 2000
23868311 rsFalse D Jan. 15, 2017, 8:36 p.m. OK Perl TESTS 63 842 116326400 2000
23867190 alexwice D Jan. 15, 2017, 7:56 p.m. OK PyPy 2 TESTS 63 842 137830400 2000
23859542 old_boo D Jan. 15, 2017, 6:08 p.m. OK PyPy 2 TESTS 63 1201 140492800 2000
29309387 nealzane D Aug. 9, 2017, 3:49 p.m. OK PyPy 2 TESTS 63 1309 138752000 2000
23971905 poikniok D Jan. 19, 2017, 7:16 p.m. OK PyPy 2 TESTS 63 1450 146022400 2000
23971561 poikniok D Jan. 19, 2017, 7:07 p.m. OK PyPy 2 TESTS 63 1512 146022400 2000
23971780 poikniok D Jan. 19, 2017, 7:13 p.m. OK PyPy 2 TESTS 63 1855 264908800 2000
23971863 poikniok D Jan. 19, 2017, 7:15 p.m. OK PyPy 2 TESTS 63 2167 146227200 2000
38679212 Riz1Ahmed D May 27, 2018, 8:12 p.m. OK PyPy 3 TESTS 63 2042 10137600 2000
26820486 nanae1914 D May 3, 2017, 2:23 p.m. OK PyPy 3 TESTS 63 2152 135782400 2000
23859930 yhn112 D Jan. 15, 2017, 6:12 p.m. OK PyPy 3 TESTS 63 2152 147660800 2000
32156582 yugle7 D Nov. 9, 2017, 11:43 a.m. OK PyPy 3 TESTS 63 2355 8192000 2000
26820093 nanae1914 D May 3, 2017, 1:56 p.m. OK PyPy 3 TESTS 63 2651 151347200 2000
23878511 kishertka D Jan. 16, 2017, 9:36 a.m. OK PyPy 3 TESTS 63 2932 135065600 2000
23971602 poikniok D Jan. 19, 2017, 7:08 p.m. OK PyPy 3 TESTS 63 3103 249651200 2000
23859957 Skand D Jan. 15, 2017, 6:12 p.m. OK Python 2 TESTS 63 951 88883200 2000
23867275 Ali.Pi D Jan. 15, 2017, 7:58 p.m. OK Python 2 TESTS 63 966 4608000 2000
23862634 7.prime D Jan. 15, 2017, 6:38 p.m. OK Python 2 TESTS 63 982 4608000 2000
23928091 BlueHazard_rony D Jan. 18, 2017, 5:36 p.m. OK Python 2 TESTS 63 1231 4608000 2000
23904148 2390_ D Jan. 17, 2017, 2:33 p.m. OK Python 2 TESTS 63 1232 53760000 2000
23864898 yuto D Jan. 15, 2017, 7:01 p.m. OK Python 2 TESTS 63 1372 21094400 2000
23868094 Caribou D Jan. 15, 2017, 8:26 p.m. OK Python 3 TESTS 63 1481 95948800 2000
24034733 PEDY4000 D Jan. 22, 2017, 5:09 p.m. OK Python 3 TESTS 63 1715 96051200 2000
23897034 epicxtroll D Jan. 17, 2017, 7:43 a.m. OK Python 3 TESTS 63 1965 91648000 2000
26820336 nanae1914 D May 3, 2017, 2:12 p.m. OK Python 3 TESTS 63 2761 41267200 2000
23878537 kishertka D Jan. 16, 2017, 9:38 a.m. OK Python 3 TESTS 63 3369 43008000 2000
23897142 kobae964 D Jan. 17, 2017, 7:52 a.m. OK Rust TESTS 63 1715 26316800 2000
24749949 Andrew.Tweddle D Feb. 18, 2017, 4:24 a.m. OK Scala TESTS 63 592 23552000 2000

remove filters

Back to search problems