Coder-Strike 2014 - Finals (online edition, Div. 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
420 Coder-Strike 2014 - Finals (online edition, Div. 1) FINISHED False 7200 333654059 April 22, 2014, 12:19 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 843 ) D Cup Trick PROGRAMMING data structures 2500

B"The employees of the F company have lots of ways to entertain themselves. Today they invited a famous magician who shows a trick with plastic cups and a marble. The point is to trick the spectator's attention. Initially, the spectator stands in front of a line of n plastic cups. Then the magician places a small marble under one cup and shuffles the cups. Then the spectator should guess which cup hides the marble. But the head coder of the F company isn't easy to trick. When he saw the performance, he noticed several important facts: When the head coder came home after work he wanted to re-do the trick. Unfortunately, he didn't remember the starting or the final position of the cups. He only remembered which operations the magician performed. Help the coder: given the operations in the order they were made find at least one initial permutation of the cups that can go through the described operations in the given order. Otherwise, state that such permutation doesn't exist. The first line contains integers n and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106). Each of the next m lines contains a couple of integers. The i-th line contains integers xi, yi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89xi, xe2 x80 x89yi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) -- the description of the i-th operation of the magician. Note that the operations are given in the order in which the magician made them and the coder wants to make them in the same order. If the described permutation doesn't exist (the programmer remembered wrong operations), print -1. Otherwise, print n distinct integers, each from 1 to n: the i-th number should represent the mark on the cup that initially is in the row in position i. If there are multiple correct answers, you should print the lexicographically minimum one."...

Tutorials

Editorial Coder-Strike 2014 Finals

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
6445284 Alex_2oo8 D April 22, 2014, 1:36 p.m. OK Delphi TESTS 30 2120 29286400 2500
6543591 audin1000 D May 4, 2014, 10:03 a.m. OK Delphi TESTS 30 2589 33177600 2500
6543607 audin1000 D May 4, 2014, 10:06 a.m. OK Delphi TESTS 30 2651 33075200 2500
10542690 AHTuTTuTyX D April 1, 2015, 2:15 p.m. OK Delphi TESTS 30 2932 120320000 2500
6449300 SillyHook06 D April 22, 2014, 10:47 p.m. OK GNU C++ TESTS 30 545 16076800 2500
42023540 Scut82 D Aug. 24, 2018, 10:52 a.m. OK GNU C++ TESTS 30 577 60108800 2500
42023516 Scut82 D Aug. 24, 2018, 10:51 a.m. OK GNU C++ TESTS 30 592 40140800 2500
11882557 Dylans D July 1, 2015, 1:15 p.m. OK GNU C++ TESTS 30 655 23859200 2500
6454067 nihalpi1 D April 23, 2014, 1:07 p.m. OK GNU C++ TESTS 30 717 36659200 2500
6443168 Dmitry_Egorov D April 22, 2014, 12:47 p.m. OK GNU C++ TESTS 30 748 55705600 2500
6451224 hanfei19910905 D April 23, 2014, 6:36 a.m. OK GNU C++ TESTS 30 763 76185600 2500
40988755 ReaLNero1 D July 30, 2018, 10:19 p.m. OK GNU C++ TESTS 30 779 23859200 2500
6445821 lijian3256 D April 22, 2014, 1:50 p.m. OK GNU C++ TESTS 30 795 33996800 2500
6452268 suyufeng D April 23, 2014, 9:29 a.m. OK GNU C++ TESTS 30 810 38604800 2500
6452616 kcm1700 D April 23, 2014, 10:16 a.m. OK GNU C++0x TESTS 30 702 44646400 2500
6496110 tomasz.kociumaka D April 27, 2014, 9:06 p.m. OK GNU C++0x TESTS 30 716 36249600 2500
6448769 alex.velea D April 22, 2014, 8:14 p.m. OK GNU C++0x TESTS 30 732 25088000 2500
6454741 cebrusfs D April 23, 2014, 2:28 p.m. OK GNU C++0x TESTS 30 779 21196800 2500
6449023 niklasb D April 22, 2014, 9:05 p.m. OK GNU C++0x TESTS 30 811 16793600 2500
6446109 master_miu D April 22, 2014, 1:57 p.m. OK GNU C++0x TESTS 30 826 38604800 2500
9279825 Xellos D Dec. 27, 2014, 12:23 a.m. OK GNU C++0x TESTS 30 842 16179200 2500
6448844 niklasb D April 22, 2014, 8:26 p.m. OK GNU C++0x TESTS 30 858 20070400 2500
6452304 Archon.JK D April 23, 2014, 9:33 a.m. OK GNU C++0x TESTS 30 889 26931200 2500
6444586 mnbvmar D April 22, 2014, 1:19 p.m. OK GNU C++0x TESTS 30 904 37785600 2500
18289397 Nezzar D June 7, 2016, 7:15 p.m. OK GNU C++11 TESTS 30 795 38297600 2500
52253252 vjudge2 D April 3, 2019, 3:03 a.m. OK GNU C++11 TESTS 30 857 56115200 2500
17144924 freebsdx D April 3, 2016, 12:34 p.m. OK GNU C++11 TESTS 30 872 24064000 2500
11411380 polequoll D June 4, 2015, 8:48 a.m. OK GNU C++11 TESTS 30 873 45465600 2500
19018670 huantwofat D July 11, 2016, 2:28 a.m. OK GNU C++11 TESTS 30 966 22016000 2500
23381461 First_Father D Dec. 28, 2016, 3:57 p.m. OK GNU C++11 TESTS 30 1013 28160000 2500
10700090 Yukine_Chris D April 14, 2015, 3:34 a.m. OK GNU C++11 TESTS 30 1013 56115200 2500
43797841 vjudge2 D Oct. 4, 2018, 4:13 p.m. OK GNU C++11 TESTS 30 1076 46694400 2500
11962045 besher D July 7, 2015, 4:04 p.m. OK GNU C++11 TESTS 30 1481 48844800 2500
14757348 taixu D Dec. 11, 2015, 12:17 p.m. OK GNU C++11 TESTS 30 1559 49152000 2500
32150400 sbit D Nov. 9, 2017, 3:26 a.m. OK GNU C++14 TESTS 30 998 64102400 2500
44082859 Dragon_Fly_02 D Oct. 10, 2018, 3:53 p.m. OK GNU C++14 TESTS 30 1044 38400000 2500
38681565 mredigonda D May 27, 2018, 11:53 p.m. OK GNU C++14 TESTS 30 1232 41062400 2500
44066182 DatVu D Oct. 10, 2018, 9:27 a.m. OK GNU C++14 TESTS 30 1262 21094400 2500
43797893 UncleGrandpa D Oct. 4, 2018, 4:14 p.m. OK GNU C++14 TESTS 30 1279 46694400 2500
23530862 Ali.Pi D Jan. 4, 2017, 8:13 a.m. OK GNU C++14 TESTS 30 1294 48537600 2500
44067037 minhtung04042001 D Oct. 10, 2018, 9:57 a.m. OK GNU C++14 TESTS 30 1294 58163200 2500
26805797 Navick D May 2, 2017, 4:05 p.m. OK GNU C++14 TESTS 30 1309 65945600 2500
26805785 TheLagoon D May 2, 2017, 4:04 p.m. OK GNU C++14 TESTS 30 1309 65945600 2500
36640632 I_love_Y_UME D March 26, 2018, 11:40 a.m. OK GNU C++14 TESTS 30 1310 24678400 2500
38307736 nhtrnm D May 16, 2018, 3:54 a.m. OK GNU C++17 TESTS 30 1263 51507200 2500
65526313 KonaeAkira D Nov. 22, 2019, 10:32 a.m. OK GNU C++17 TESTS 30 1606 65945600 2500
47248339 Akylbeek D Dec. 19, 2018, 7:01 a.m. OK GNU C++17 TESTS 30 1731 78438400 2500
51474142 Svenny D March 19, 2019, 8:24 a.m. OK GNU C++17 TESTS 30 1902 25088000 2500
69899689 egekabas D Jan. 31, 2020, 12:42 p.m. OK GNU C++17 TESTS 30 1903 168550400 2500
47276754 how_to_become_purple D Dec. 19, 2018, 7:52 p.m. OK GNU C++17 TESTS 30 2043 29081600 2500
47518501 vjudge3 D Dec. 26, 2018, 11:33 a.m. OK GNU C++17 TESTS 30 2105 69427200 2500
47518479 paradox D Dec. 26, 2018, 11:33 a.m. OK GNU C++17 TESTS 30 2168 69427200 2500
69177816 Emiliatann D Jan. 20, 2020, 8:48 a.m. OK GNU C++17 TESTS 30 2214 45363200 2500
50288858 Moysenko D Feb. 21, 2019, 4:21 p.m. OK GNU C++17 TESTS 30 2230 45363200 2500
7477112 IgorKoval D Aug. 15, 2014, 9:29 p.m. OK Java 6 TESTS 30 2261 58368000 2500
7477229 IgorKoval D Aug. 15, 2014, 9:47 p.m. OK Java 6 TESTS 30 2277 58368000 2500
7477238 IgorKoval D Aug. 15, 2014, 9:48 p.m. OK Java 6 TESTS 30 2308 58368000 2500
6565748 mashinist D May 7, 2014, 8:17 a.m. OK Java 7 TESTS 30 1138 15974400 2500
7477198 IgorKoval D Aug. 15, 2014, 9:42 p.m. OK Java 7 TESTS 30 2043 58470400 2500
7477059 IgorKoval D Aug. 15, 2014, 9:20 p.m. OK Java 7 TESTS 30 2090 58470400 2500
7477190 IgorKoval D Aug. 15, 2014, 9:41 p.m. OK Java 7 TESTS 30 2136 58470400 2500
7477170 IgorKoval D Aug. 15, 2014, 9:38 p.m. OK Java 7 TESTS 30 2136 58470400 2500
7477106 IgorKoval D Aug. 15, 2014, 9:29 p.m. OK Java 7 TESTS 30 2168 58470400 2500
7477192 IgorKoval D Aug. 15, 2014, 9:41 p.m. OK Java 7 TESTS 30 2183 58470400 2500
7477167 IgorKoval D Aug. 15, 2014, 9:38 p.m. OK Java 7 TESTS 30 2183 58470400 2500
7477164 IgorKoval D Aug. 15, 2014, 9:37 p.m. OK Java 7 TESTS 30 2183 58470400 2500
7477157 IgorKoval D Aug. 15, 2014, 9:37 p.m. OK Java 7 TESTS 30 2183 58470400 2500
7477109 IgorKoval D Aug. 15, 2014, 9:29 p.m. OK Java 8 TESTS 30 2105 47820800 2500
7477226 IgorKoval D Aug. 15, 2014, 9:47 p.m. OK Java 8 TESTS 30 2152 48128000 2500
7477244 IgorKoval D Aug. 15, 2014, 9:48 p.m. OK Java 8 TESTS 30 2417 48128000 2500
6484069 Rivx D April 27, 2014, 12:20 p.m. OK MS C++ TESTS 30 764 29286400 2500
7545588 mjy0503 D Aug. 21, 2014, 4:36 p.m. OK MS C++ TESTS 30 811 40038400 2500
6446476 Rubanenko D April 22, 2014, 2:06 p.m. OK MS C++ TESTS 30 826 52940800 2500
6446639 Vlad_kv D April 22, 2014, 2:10 p.m. OK MS C++ TESTS 30 842 32870400 2500
6445945 RiKang D April 22, 2014, 1:53 p.m. OK MS C++ TESTS 30 904 41369600 2500
6461870 Sereja D April 24, 2014, 4:59 p.m. OK MS C++ TESTS 30 982 56115200 2500
6462033 Sereja D April 24, 2014, 5:29 p.m. OK MS C++ TESTS 30 1060 56115200 2500
6444699 cfy D April 22, 2014, 1:22 p.m. OK MS C++ TESTS 30 1107 116121600 2500
6563017 peaceful D May 6, 2014, 2:33 p.m. OK MS C++ TESTS 30 1185 23142400 2500
6457343 HellKitsune D April 23, 2014, 9:58 p.m. OK MS C++ TESTS 30 1185 28876800 2500

remove filters

Back to search problems