VK Cup 2016 - Round 2

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
641 VK Cup 2016 - Round 2 FINISHED False 7200 270307499 April 24, 2016, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3079 ) C Little Artem and Dance PROGRAMMING brute force constructive algorithms implementation 1800

B"Little Artem is fond of dancing. Most of all dances Artem likes rueda -- Cuban dance that is danced by pairs of boys and girls forming a circle and dancing together. More detailed, there are n pairs of boys and girls standing in a circle. Initially, boy number 1 dances with a girl number 1, boy number 2 dances with a girl number 2 and so on. Girls are numbered in the clockwise order. During the dance different moves are announced and all pairs perform this moves. While performing moves boys move along the circle, while girls always stay at their initial position. For the purpose of this problem we consider two different types of moves: Your task is to determine the final position of each boy. The first line of the input contains two integers n and q (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891 xe2 x80 x89000 xe2 x80 x89000, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xe2 x80 x89000 xe2 x80 x89000) -- the number of couples in the rueda and the number of commands to perform, respectively. It's guaranteed that n is even. Next q lines contain the descriptions of the commands. Each command has type as the integer 1 or 2 first. Command of the first type is given as x ( xe2 x80 x89- xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n), where 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n means all boys moves x girls in clockwise direction, while xe2 x80 x89- xe2 x80 x89x means all boys move x positions in counter-clockwise direction. There is no other input for commands of the second type. Output n integers, the i-th of them should be equal to the index of boy the i-th girl is dancing with after performing all q moves."...

Tutorials

VK Cup 2016 — Раунд 2 (editorial)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
51907222 rr_ C March 27, 2019, 4:10 p.m. OK D TESTS 36 1543 6041600 1800
18976909 Vladik C July 9, 2016, 12:07 a.m. OK Delphi TESTS 36 951 8908800 1800
17510896 StarScreamOwl C April 25, 2016, 2:53 p.m. OK Delphi TESTS 36 1029 10547200 1800
35433640 maratonando C Feb. 17, 2018, 11:59 p.m. OK GNU C TESTS 36 811 5836800 1800
35433628 maratonando3 C Feb. 17, 2018, 11:58 p.m. OK GNU C TESTS 36 811 5836800 1800
17607603 ndn C May 1, 2016, 12:03 p.m. OK GNU C TESTS 36 857 6041600 1800
17487868 arsijo iSlava C April 24, 2016, 5:08 p.m. OK GNU C++ TESTS 36 170 2252800 1800
41878476 Scut82 C Aug. 19, 2018, 11:09 p.m. OK GNU C++ TESTS 36 171 32051200 1800
29130715 djqtxdy C Aug. 2, 2017, 1:01 p.m. OK GNU C++ TESTS 36 327 10137600 1800
38961918 wuruzhao C June 5, 2018, 7:13 a.m. OK GNU C++ TESTS 36 342 3584000 1800
29129949 lzr_010506 C Aug. 2, 2017, 12:31 p.m. OK GNU C++ TESTS 36 343 6144000 1800
17504377 cheer1234 C April 25, 2016, 7:16 a.m. OK GNU C++ TESTS 36 358 10240000 1800
17505220 azui C April 25, 2016, 8:23 a.m. OK GNU C++ TESTS 36 389 22323200 1800
17495393 Scomip misterfourtytwo C April 24, 2016, 6:15 p.m. OK GNU C++ TESTS 36 467 10240000 1800
29127252 hrt1010 C Aug. 2, 2017, 10:46 a.m. OK GNU C++ TESTS 36 577 6144000 1800
17487011 Melnyk Oryshych C April 24, 2016, 5:03 p.m. OK GNU C++ TESTS 36 779 2252800 1800
64567210 LuciferX07 C Nov. 9, 2019, 8:03 a.m. OK GNU C++11 TESTS 36 139 39936000 1800
40984877 ReaLNero1 C July 30, 2018, 7:37 p.m. OK GNU C++11 TESTS 36 155 0 1800
17700176 belkka C May 3, 2016, 3:36 p.m. OK GNU C++11 TESTS 36 155 1843200 1800
17693019 belkka C May 2, 2016, 5:46 p.m. OK GNU C++11 TESTS 36 155 1843200 1800
17688570 belkka C May 2, 2016, 11:55 a.m. OK GNU C++11 TESTS 36 155 1843200 1800
17700151 belkka C May 3, 2016, 3:33 p.m. OK GNU C++11 TESTS 36 155 2048000 1800
17700036 belkka C May 3, 2016, 3:20 p.m. OK GNU C++11 TESTS 36 155 2048000 1800
17699934 belkka C May 3, 2016, 3:07 p.m. OK GNU C++11 TESTS 36 155 2048000 1800
17699830 belkka C May 3, 2016, 2:56 p.m. OK GNU C++11 TESTS 36 155 2048000 1800
17698926 belkka C May 3, 2016, 1:33 p.m. OK GNU C++11 TESTS 36 155 2048000 1800
28941869 wangjiawei C July 28, 2017, 3:24 a.m. OK GNU C++14 TESTS 36 826 9932800 1800
56459572 foreverdiv3 C July 3, 2019, 6:10 a.m. OK GNU C++14 TESTS 36 982 0 1800
48981779 S33k4ndD35tr0y C Jan. 26, 2019, 10:49 a.m. OK GNU C++14 TESTS 36 982 3993600 1800
52839308 AWCXV C April 16, 2019, 3:01 p.m. OK GNU C++14 TESTS 36 982 4608000 1800
50645423 rareone0602 C March 1, 2019, 3:33 p.m. OK GNU C++14 TESTS 36 997 3993600 1800
45112974 Yuki726 C Oct. 30, 2018, 7:33 p.m. OK GNU C++14 TESTS 36 997 3993600 1800
31158740 vulong C Oct. 9, 2017, 4:18 a.m. OK GNU C++14 TESTS 36 998 0 1800
66763146 Wild4Stone C Dec. 13, 2019, 7:17 a.m. OK GNU C++14 TESTS 36 998 3993600 1800
59859732 lakshay_nasa C Sept. 1, 2019, 2:50 p.m. OK GNU C++14 TESTS 36 998 3993600 1800
61767355 -g0d- C Oct. 3, 2019, 9:03 a.m. OK GNU C++14 TESTS 36 998 7987200 1800
48082479 alexX512 Aleks5d C Jan. 8, 2019, 8:54 a.m. OK GNU C++17 TESTS 36 997 4300800 1800
66469053 sammithkanur C Dec. 7, 2019, 5:38 p.m. OK GNU C++17 TESTS 36 998 3993600 1800
60368317 yuhta C Sept. 10, 2019, 11 p.m. OK GNU C++17 TESTS 36 998 3993600 1800
55510831 cxsy C June 12, 2019, 10:19 p.m. OK GNU C++17 TESTS 36 1013 3993600 1800
52285902 sweetcookie C April 3, 2019, 7:43 p.m. OK GNU C++17 TESTS 36 1013 3993600 1800
53844035 mblazev C May 7, 2019, 9:32 a.m. OK GNU C++17 TESTS 36 1013 8089600 1800
69552939 ST_C C Jan. 26, 2020, 7:21 a.m. OK GNU C++17 TESTS 36 1013 9625600 1800
68884621 C4551DY C Jan. 15, 2020, 8:29 p.m. OK GNU C++17 TESTS 36 1014 3993600 1800
56465594 shubhangp5 C July 3, 2019, 8:47 a.m. OK GNU C++17 TESTS 36 1029 0 1800
46477802 Fyodor C Dec. 2, 2018, 8:25 a.m. OK GNU C++17 TESTS 36 1029 0 1800
17492157 slava.sh C April 24, 2016, 5:44 p.m. OK Go TESTS 36 1107 145612800 1800
18097991 Parikh C May 26, 2016, 5:12 a.m. OK Java 7 TESTS 36 452 84275200 1800
17486717 itukh hey_boris C April 24, 2016, 5 p.m. OK Java 7 TESTS 36 1029 39321600 1800
39130160 Siddhraj C June 10, 2018, 7:14 p.m. OK Java 8 TESTS 36 343 43315200 1800
39130650 Siddhraj C June 10, 2018, 7:42 p.m. OK Java 8 TESTS 36 358 43315200 1800
39130427 Siddhraj C June 10, 2018, 7:29 p.m. OK Java 8 TESTS 36 358 43315200 1800
39130268 Siddhraj C June 10, 2018, 7:20 p.m. OK Java 8 TESTS 36 358 43315200 1800
39129964 Siddhraj C June 10, 2018, 7:01 p.m. OK Java 8 TESTS 36 358 43315200 1800
39129853 Siddhraj C June 10, 2018, 6:55 p.m. OK Java 8 TESTS 36 358 43315200 1800
39129779 Siddhraj C June 10, 2018, 6:51 p.m. OK Java 8 TESTS 36 358 43315200 1800
39129695 Siddhraj C June 10, 2018, 6:46 p.m. OK Java 8 TESTS 36 358 43315200 1800
39129830 Siddhraj C June 10, 2018, 6:54 p.m. OK Java 8 TESTS 36 373 43315200 1800
39131628 Siddhraj C June 10, 2018, 8:41 p.m. OK Java 8 TESTS 36 390 43008000 1800
17499378 fiver C April 24, 2016, 9:41 p.m. OK MS C# TESTS 36 1419 102195200 1800
17493701 galim.turumtaev athlete C April 24, 2016, 5:58 p.m. OK MS C++ TESTS 36 748 2048000 1800
17815924 SemperIdem C May 9, 2016, 5:51 a.m. OK MS C++ TESTS 36 748 2252800 1800
17496008 SkyterX birne C April 24, 2016, 6:21 p.m. OK MS C++ TESTS 36 763 2252800 1800
17490116 Taube noxwell C April 24, 2016, 5:26 p.m. OK MS C++ TESTS 36 763 9932800 1800
17546957 Ancient_mage C April 27, 2016, 9:33 p.m. OK MS C++ TESTS 36 779 6246400 1800
17505438 Carups C April 25, 2016, 8:39 a.m. OK MS C++ TESTS 36 779 6246400 1800
17489178 Ne0n25 vovuh C April 24, 2016, 5:19 p.m. OK MS C++ TESTS 36 779 10240000 1800
18154133 rkm0959 C May 30, 2016, 8:11 a.m. OK MS C++ TESTS 36 780 6656000 1800
17489162 NutZ k1nval C April 24, 2016, 5:18 p.m. OK MS C++ TESTS 36 794 6246400 1800
17505315 merrychap C April 25, 2016, 8:31 a.m. OK MS C++ TESTS 36 795 6246400 1800

remove filters

Back to search problems