Technocup 2017 - Elimination Round 3

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
748 Technocup 2017 - Elimination Round 3 FINISHED False 7200 254868923 Dec. 25, 2016, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4662 ) C Santa Claus and Robot PROGRAMMING constructive algorithms math 1400

B"Santa Claus has Robot which lives on the infinite grid and can move along its lines. He can also, having a sequence of m points p1, xe2 x80 x89p2, xe2 x80 x89..., xe2 x80 x89pm with integer coordinates, do the following: denote its initial location by p0. First, the robot will move from p0 to p1 along one of the shortest paths between them (please notice that since the robot moves only along the grid lines, there can be several shortest paths). Then, after it reaches p1, it'll move to p2, again, choosing one of the shortest ways, then to p3, and so on, until he has visited all points in the given order. Some of the points in the sequence may coincide, in that case Robot will visit that point several times according to the sequence order. While Santa was away, someone gave a sequence of points to Robot. This sequence is now lost, but Robot saved the protocol of its unit movements. Please, find the minimum possible length of the sequence. The first line of input contains the only positive integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7105) which equals the number of unit segments the robot traveled. The second line contains the movements protocol, which consists of n letters, each being equal either L, or R, or U, or D. k-th letter stands for the direction which Robot traveled the k-th unit segment in: L means that it moved to the left, R -- to the right, U -- to the top and D -- to the bottom. Have a look at the illustrations for better explanation. The only line of input should contain the minimum possible length of the sequence. The illustrations to the first three tests are given below. The last example illustrates that each point in the sequence should be counted as many times as it is presented in the sequence. "...

Tutorials

Codeforces Round 389 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
23296856 NotOsikov C Dec. 25, 2016, 10:02 a.m. OK Delphi TESTS 32 15 2560000 1400
23297413 alexis15 C Dec. 25, 2016, 10:06 a.m. OK Delphi TESTS 32 46 2969600 1400
24143750 Gray_58 C Jan. 26, 2017, 6:07 a.m. OK FPC TESTS 32 15 2969600 1400
23336742 Sexy-Pupok C Dec. 26, 2016, 9:26 a.m. OK FPC TESTS 32 15 2969600 1400
23301740 stas.matskevich C Dec. 25, 2016, 10:43 a.m. OK FPC TESTS 32 15 2969600 1400
23301274 SergeyRoyt C Dec. 25, 2016, 10:39 a.m. OK FPC TESTS 32 15 2969600 1400
23299520 treash C Dec. 25, 2016, 10:24 a.m. OK FPC TESTS 32 15 2969600 1400
23298341 vladKB1 C Dec. 25, 2016, 10:14 a.m. OK FPC TESTS 32 15 2969600 1400
23295464 Sunray_Gleam C Dec. 25, 2016, 9:51 a.m. OK FPC TESTS 32 15 2969600 1400
23293054 vkozlovs C Dec. 25, 2016, 9:35 a.m. OK FPC TESTS 32 15 2969600 1400
25224507 Artemx C March 4, 2017, 6:43 p.m. OK FPC TESTS 32 15 2969600 1400
23299155 alexnikio C Dec. 25, 2016, 10:21 a.m. OK FPC TESTS 32 30 1638400 1400
24341028 Frozensmile C Feb. 1, 2017, 10:52 a.m. OK GNU C TESTS 32 15 2048000 1400
23655772 SebaMarin C Jan. 8, 2017, 7:25 p.m. OK GNU C TESTS 32 15 2048000 1400
23555405 nanspro C Jan. 5, 2017, 1:22 p.m. OK GNU C TESTS 32 15 2048000 1400
23512170 tejasi.latkar C Jan. 3, 2017, 8:02 a.m. OK GNU C TESTS 32 15 2048000 1400
23339895 PratikMandlecha C Dec. 26, 2016, 12:25 p.m. OK GNU C TESTS 32 15 2048000 1400
23333156 betterthanothers C Dec. 26, 2016, 5:32 a.m. OK GNU C TESTS 32 15 2048000 1400
23393227 MusfiqxShohan C Dec. 29, 2016, 8:41 a.m. OK GNU C TESTS 32 30 2048000 1400
23299555 makeitcrazy C Dec. 25, 2016, 10:24 a.m. OK GNU C TESTS 32 30 2048000 1400
23562300 v.krasontov C Jan. 5, 2017, 8:02 p.m. OK GNU C TESTS 32 46 1945600 1400
23467186 NavierStokes C Dec. 31, 2016, 10:05 a.m. OK GNU C TESTS 32 46 1945600 1400
24025478 rk1008 C Jan. 22, 2017, 7:43 a.m. OK GNU C++ TESTS 32 15 1843200 1400
25650156 BLF2 C March 19, 2017, 3:57 p.m. OK GNU C++ TESTS 32 15 2048000 1400
31552246 vjudge3 C Oct. 21, 2017, 5:50 a.m. OK GNU C++ TESTS 32 15 2048000 1400
28457314 vjudge3 C July 12, 2017, 1:35 a.m. OK GNU C++ TESTS 32 15 2048000 1400
28404011 vjudge1 C July 10, 2017, 9:37 a.m. OK GNU C++ TESTS 32 15 2048000 1400
28383594 vjudge5 C July 9, 2017, 8:34 a.m. OK GNU C++ TESTS 32 15 2048000 1400
25549690 BLF2 C March 16, 2017, 1:13 p.m. OK GNU C++ TESTS 32 15 2048000 1400
25549654 fighting_hlq C March 16, 2017, 1:12 p.m. OK GNU C++ TESTS 32 15 2048000 1400
25230818 vjudge5 C March 5, 2017, 2:13 a.m. OK GNU C++ TESTS 32 15 2048000 1400
25051781 vjudge5 C Feb. 26, 2017, 11:33 a.m. OK GNU C++ TESTS 32 15 2048000 1400
23330139 f2lk6wf90d C Dec. 25, 2016, 11:30 p.m. OK GNU C11 TESTS 32 15 1843200 1400
29472458 abhishek977 C Aug. 15, 2017, 4:10 a.m. OK GNU C11 TESTS 32 15 2048000 1400
23392842 vjudge4 C Dec. 29, 2016, 8:17 a.m. OK GNU C11 TESTS 32 15 2048000 1400
29552017 abhishek977 C Aug. 18, 2017, 11:12 a.m. OK GNU C11 TESTS 32 30 204800 1400
50601520 yugao C Feb. 28, 2019, 12:54 p.m. OK GNU C11 TESTS 32 31 204800 1400
23388117 aditya.todi C Dec. 28, 2016, 11:03 p.m. OK GNU C11 TESTS 32 31 2048000 1400
27006711 AceSrc C May 11, 2017, 5:43 a.m. OK GNU C++11 TESTS 32 15 204800 1400
27839199 Live_Forever C June 17, 2017, 6:31 a.m. OK GNU C++11 TESTS 32 15 512000 1400
23315222 179000 C Dec. 25, 2016, 5:19 p.m. OK GNU C++11 TESTS 32 15 2048000 1400
23299478 Vassiliev C Dec. 25, 2016, 10:23 a.m. OK GNU C++11 TESTS 32 15 2048000 1400
23356307 cnjzxy C Dec. 27, 2016, 9:39 a.m. OK GNU C++11 TESTS 32 15 2048000 1400
23372974 y_shindoh C Dec. 28, 2016, 7:52 a.m. OK GNU C++11 TESTS 32 15 2048000 1400
23484372 why2001 C Jan. 1, 2017, 1:48 p.m. OK GNU C++11 TESTS 32 15 2048000 1400
23512456 buduunee C Jan. 3, 2017, 8:22 a.m. OK GNU C++11 TESTS 32 15 2048000 1400
23538382 stefanzzz C Jan. 4, 2017, 3:28 p.m. OK GNU C++11 TESTS 32 15 2048000 1400
24444608 vjudge1 C Feb. 5, 2017, 4:16 a.m. OK GNU C++11 TESTS 32 15 2048000 1400
32231010 NetSlayer C Nov. 11, 2017, 9:22 p.m. OK GNU C++14 TESTS 32 15 0 1400
31193960 Sagolbah C Oct. 10, 2017, 3:34 p.m. OK GNU C++14 TESTS 32 15 0 1400
31773638 4mda4mda C Oct. 26, 2017, 9:38 p.m. OK GNU C++14 TESTS 32 15 512000 1400
29503898 AD12 C Aug. 16, 2017, 11:36 a.m. OK GNU C++14 TESTS 32 15 512000 1400
27602994 ginshin C June 6, 2017, 1:48 a.m. OK GNU C++14 TESTS 32 15 512000 1400
27187789 vilcheuski C May 17, 2017, 11:12 p.m. OK GNU C++14 TESTS 32 15 512000 1400
27689813 iit2015023 C June 9, 2017, 1:21 p.m. OK GNU C++14 TESTS 32 15 1024000 1400
29378533 coldplayer C Aug. 12, 2017, 1:44 p.m. OK GNU C++14 TESTS 32 15 1945600 1400
23692936 AMnu C Jan. 11, 2017, 7:15 a.m. OK GNU C++14 TESTS 32 15 1945600 1400
28373952 naman_ntc C July 8, 2017, 5:19 p.m. OK GNU C++14 TESTS 32 15 1945600 1400
39061375 Akikaze C June 9, 2018, 6:18 a.m. OK GNU C++17 TESTS 32 15 512000 1400
60257703 Ya_potok_menya_tolkali C Sept. 8, 2019, 10:08 a.m. OK GNU C++17 TESTS 32 30 0 1400
39171656 MhD.s C June 11, 2018, 6:02 p.m. OK GNU C++17 TESTS 32 30 512000 1400
47875962 vjudge1 C Jan. 3, 2019, 3:23 p.m. OK GNU C++17 TESTS 32 30 819200 1400
61559045 Bohun C Sept. 30, 2019, 2:57 p.m. OK GNU C++17 TESTS 32 31 204800 1400
67621680 saikidon911 C Dec. 25, 2019, 7:06 p.m. OK GNU C++17 TESTS 32 31 512000 1400
66510275 davooddkareshki C Dec. 8, 2019, 4:12 p.m. OK GNU C++17 TESTS 32 31 512000 1400
59241034 _rumata_ C Aug. 21, 2019, 7:43 p.m. OK GNU C++17 TESTS 32 31 512000 1400
58826097 NikanGh C Aug. 14, 2019, 3:56 p.m. OK GNU C++17 TESTS 32 31 512000 1400
58105128 landcold7 C Aug. 1, 2019, 3:43 a.m. OK GNU C++17 TESTS 32 31 512000 1400
23295742 dendnk9681431 C Dec. 25, 2016, 9:53 a.m. OK Java 8 TESTS 32 109 20275200 1400
27470914 zodiacleo C May 31, 2017, 4:18 p.m. OK Java 8 TESTS 32 124 0 1400
31047822 awesomelemonade C Oct. 5, 2017, 9:48 p.m. OK Java 8 TESTS 32 124 0 1400
23294511 iakovlev.zakhar C Dec. 25, 2016, 9:44 a.m. OK Java 8 TESTS 32 124 20377600 1400
23976833 vvenkai C Jan. 20, 2017, 1:14 a.m. OK Java 8 TESTS 32 124 20582400 1400
23537989 eLEMENT1996 C Jan. 4, 2017, 3:02 p.m. OK Java 8 TESTS 32 124 20582400 1400
23353614 JialinOuyang C Dec. 27, 2016, 6:45 a.m. OK Java 8 TESTS 32 124 20582400 1400
23296791 iskander232 C Dec. 25, 2016, 10:01 a.m. OK Java 8 TESTS 32 124 20582400 1400
31546711 4mda4mda C Oct. 21, 2017, 12:02 a.m. OK Java 8 TESTS 32 124 20684800 1400
23296041 Dey C Dec. 25, 2016, 9:55 a.m. OK Java 8 TESTS 32 124 20684800 1400
23295764 sa_z20004463 C Dec. 25, 2016, 9:53 a.m. OK JavaScript TESTS 32 31 7577600 1400
23796916 JoeBlow C Jan. 14, 2017, 3:46 a.m. OK Kotlin TESTS 32 124 20992000 1400
23292900 artsin666 C Dec. 25, 2016, 9:34 a.m. OK MS C# TESTS 32 46 9523200 1400
23302738 PhysTech C Dec. 25, 2016, 10:52 a.m. OK MS C# TESTS 32 46 9728000 1400
23299705 krylov.nikita.a1247 C Dec. 25, 2016, 10:25 a.m. OK MS C# TESTS 32 61 9830400 1400
23726725 serrg C Jan. 11, 2017, 11:53 p.m. OK MS C# TESTS 32 61 10137600 1400
23297437 zelyanin C Dec. 25, 2016, 10:06 a.m. OK MS C# TESTS 32 77 9830400 1400
28825605 vjudge2 C July 24, 2017, 1:32 p.m. OK MS C++ TESTS 32 15 2150400 1400
23985091 piicaterpillar C Jan. 20, 2017, 9:39 a.m. OK MS C++ TESTS 32 15 2252800 1400
28504647 vjudge5 C July 13, 2017, 2:08 p.m. OK MS C++ TESTS 32 15 2252800 1400
28427402 vjudge4 C July 11, 2017, 1:31 p.m. OK MS C++ TESTS 32 15 2252800 1400
25069448 vjudge3 C Feb. 27, 2017, 5:20 a.m. OK MS C++ TESTS 32 15 2252800 1400
24062599 vjudge5 C Jan. 23, 2017, 4:37 a.m. OK MS C++ TESTS 32 15 2252800 1400
23885467 scorpiowf C Jan. 16, 2017, 3:50 p.m. OK MS C++ TESTS 32 15 2252800 1400
23481529 Cherser C Jan. 1, 2017, 10:23 a.m. OK MS C++ TESTS 32 15 2252800 1400
23400374 qq123 C Dec. 29, 2016, 1:54 p.m. OK MS C++ TESTS 32 15 2252800 1400
23371507 shjgkwo C Dec. 28, 2016, 6:06 a.m. OK MS C++ TESTS 32 15 2252800 1400
64879143 Mad112233 C Nov. 14, 2019, 11:01 a.m. OK MS C++ 2017 TESTS 32 31 614400 1400
56784737 felix412441 C July 10, 2019, 7:52 a.m. OK MS C++ 2017 TESTS 32 31 614400 1400
23309110 z56 C Dec. 25, 2016, 12:41 p.m. OK PHP TESTS 32 124 6041600 1400
23558818 APwhitehat C Jan. 5, 2017, 4:36 p.m. OK PyPy 2 TESTS 32 171 23859200 1400
23347206 cugel C Dec. 26, 2016, 7:23 p.m. OK PyPy 3 TESTS 32 140 25395200 1400
55389098 Olerinskiy C June 10, 2019, 8:53 a.m. OK PyPy 3 TESTS 32 155 2764800 1400
51344580 Sevlll C March 15, 2019, 5:47 p.m. OK PyPy 3 TESTS 32 155 2969600 1400
23297117 vekarpov C Dec. 25, 2016, 10:04 a.m. OK PyPy 3 TESTS 32 155 26726400 1400
51383702 elsa_math C March 16, 2019, 5:37 p.m. OK PyPy 3 TESTS 32 171 11366400 1400
38398507 nowyyz C May 18, 2018, 10:52 a.m. OK PyPy 3 TESTS 32 202 19865600 1400
24416105 vjudge3 C Feb. 3, 2017, 5:06 p.m. OK PyPy 3 TESTS 32 217 31846400 1400
33408032 ytz123 C Dec. 19, 2017, 12:40 p.m. OK Python 2 TESTS 32 124 5017600 1400
23332906 BlueHazard_rony C Dec. 26, 2016, 5:11 a.m. OK Python 2 TESTS 32 140 5017600 1400
23356887 Mr.Hitch C Dec. 27, 2016, 10:23 a.m. OK Python 2 TESTS 32 140 5222400 1400
23514627 Vvalter C Jan. 3, 2017, 10:41 a.m. OK Python 2 TESTS 32 170 5222400 1400
39032817 jooj C June 7, 2018, 11:16 p.m. OK Python 2 TESTS 32 171 512000 1400
33007849 mhorst C Dec. 7, 2017, 6:30 p.m. OK Python 2 TESTS 32 171 4915200 1400
23791305 alooparatha C Jan. 13, 2017, 6:16 p.m. OK Python 2 TESTS 32 171 5222400 1400
23660628 nblt C Jan. 9, 2017, 6:11 a.m. OK Python 2 TESTS 32 171 5222400 1400
23410948 Adams C Dec. 30, 2016, midnight OK Python 2 TESTS 32 171 5222400 1400
23294136 rek C Dec. 25, 2016, 9:42 a.m. OK Python 2 TESTS 32 171 8294400 1400
23336236 rep777 C Dec. 26, 2016, 8:57 a.m. OK Python 3 TESTS 32 93 5222400 1400
23293129 dima.1.tertichny C Dec. 25, 2016, 9:35 a.m. OK Python 3 TESTS 32 93 5222400 1400
23292090 zalyalov C Dec. 25, 2016, 9:30 a.m. OK Python 3 TESTS 32 109 5222400 1400
29426979 Mad_Andrei1 C Aug. 13, 2017, 7:29 a.m. OK Python 3 TESTS 32 139 5222400 1400
23302680 randomer C Dec. 25, 2016, 10:51 a.m. OK Python 3 TESTS 32 139 5222400 1400
23297251 agureevroman C Dec. 25, 2016, 10:05 a.m. OK Python 3 TESTS 32 139 5222400 1400
23629591 johnnysaph C Jan. 7, 2017, 4:50 p.m. OK Python 3 TESTS 32 139 5427200 1400
28368064 vjudge5 C July 8, 2017, 11:45 a.m. OK Python 3 TESTS 32 139 6963200 1400
26998708 merolish C May 10, 2017, 3:07 p.m. OK Python 3 TESTS 32 140 614400 1400
23612158 grandeur19919 C Jan. 6, 2017, 8:09 p.m. OK Python 3 TESTS 32 140 5222400 1400

remove filters

Back to search problems