Codeforces Round 192 (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
329 Codeforces Round 192 (Div. 1) FINISHED False 7200 402078623 July 20, 2013, 1:30 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 436 ) D The Evil Temple and the Moving Rocks PROGRAMMING constructive algorithms 2400

Important: All possible tests are in the pretest, so you shouldn't hack on this problem. So, if you passed pretests, you will also pass the system test. You are an adventurer currently journeying inside an evil temple. After defeating a couple of weak monsters, you arrived at a square room consisting of tiles forming an n × n grid, surrounded entirely by walls. At the end of the room lies a door locked with evil magical forces. The following inscriptions are written on the door: Being a very senior adventurer, you immediately realize what this means. In the room next door lies an infinite number of magical rocks. There are four types of rocks: ' ^ ': this rock moves upwards; ' < ': this rock moves leftwards; ' > ': this rock moves rightwards; ' v ': this rock moves downwards. To open the door, you first need to place the rocks on some of the tiles (one tile can be occupied by at most one rock). Then, you select a single rock that you have placed and activate it. The activated rock will then move in its direction until it hits another rock or hits the walls of the room (the rock will not move if something already blocks it in its chosen direction). The rock then deactivates. If it hits the walls, or if there have been already 10 7 events of rock becoming activated, the movements end. Otherwise, the rock that was hit becomes activated and this procedure is repeated. If a rock moves at least one cell before hitting either the wall or another rock, the hit produces a sound. The door will open once the number of produced sounds is at least x . It is okay for the rocks to continue moving after producing x sounds. The following picture illustrates the four possible scenarios of moving rocks. Moves at least one cell, then hits another rock. A sound is produced, the hit rock becomes activated. Moves at least one cell, then hits the wall (i.e., the side of the room). A sound is produced, the movements end. Does not move because a rock is already standing in the path

Tutorials

Codeforces Round #192 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
4136988 Nik_Storm_2010 D July 22, 2013, 6:09 p.m. OK FPC TESTS 3 0 0 2400
4130559 Omelianenko D July 21, 2013, 5 p.m. OK FPC TESTS 3 15 0 2400
8127761 SHUXK D Oct. 7, 2014, 7:49 a.m. OK FPC TESTS 3 30 409600 2400
4213684 JoeyWheeler D Aug. 1, 2013, 11:52 a.m. OK GNU C TESTS 3 0 0 2400
13882993 HJWJBSR D Oct. 27, 2015, 3:04 a.m. OK GNU C++ TESTS 3 0 0 2400
11124744 onelastfinalsahi D May 17, 2015, 9:46 a.m. OK GNU C++ TESTS 3 0 0 2400
9597692 ___LH D Jan. 28, 2015, 5:41 a.m. OK GNU C++ TESTS 3 0 0 2400
8242205 jiry_2 D Oct. 16, 2014, 2:02 a.m. OK GNU C++ TESTS 3 0 0 2400
8242180 jiry_2 D Oct. 16, 2014, 1:56 a.m. OK GNU C++ TESTS 3 0 0 2400
8213114 wwt15 D Oct. 13, 2014, 1:01 a.m. OK GNU C++ TESTS 3 0 0 2400
9406719 SkyDec D Jan. 12, 2015, 7:57 a.m. OK GNU C++ TESTS 3 0 0 2400
31863431 bk_201 D Oct. 29, 2017, 10:34 a.m. OK GNU C++ TESTS 3 0 0 2400
15142789 HappyNewYearMike D Dec. 31, 2015, 10:46 p.m. OK GNU C++ TESTS 3 0 0 2400
13883134 HJWJBSR D Oct. 27, 2015, 3:26 a.m. OK GNU C++ TESTS 3 0 0 2400
4143275 marcoskwkm D July 23, 2013, 9:25 p.m. OK GNU C++0x TESTS 3 0 0 2400
4130090 marcoskwkm D July 21, 2013, 3:04 p.m. OK GNU C++0x TESTS 3 0 0 2400
4130070 marcoskwkm D July 21, 2013, 3:01 p.m. OK GNU C++0x TESTS 3 0 0 2400
4116785 Shik D July 20, 2013, 2:13 p.m. OK GNU C++0x TESTS 3 0 0 2400
9291706 lz1 D Dec. 28, 2014, 1:53 p.m. OK GNU C++0x TESTS 3 0 204800 2400
4192639 error202 D July 28, 2013, 3:53 a.m. OK GNU C++0x TESTS 3 0 6451200 2400
4124220 primenumber D July 20, 2013, 8:35 p.m. OK GNU C++0x TESTS 3 15 0 2400
4130337 evima D July 21, 2013, 3:52 p.m. OK GNU C++0x TESTS 3 15 0 2400
4130067 marcoskwkm D July 21, 2013, 3 p.m. OK GNU C++0x TESTS 3 15 0 2400
4126243 itytwt D July 21, 2013, 5:37 a.m. OK GNU C++0x TESTS 3 15 0 2400
61524336 rainboy D Sept. 29, 2019, 8:59 p.m. OK GNU C11 TESTS 3 30 0 2400
61525269 rainboy D Sept. 29, 2019, 9:42 p.m. OK GNU C11 TESTS 3 62 0 2400
14784961 Altria-PenDragon D Dec. 13, 2015, 12:43 p.m. OK GNU C++11 TESTS 3 0 0 2400
27822735 rfpermen D June 16, 2017, 10:35 a.m. OK GNU C++11 TESTS 3 0 0 2400
16536616 tun D March 5, 2016, 3:12 p.m. OK GNU C++11 TESTS 3 0 0 2400
14784972 Altria-PenDragon D Dec. 13, 2015, 12:44 p.m. OK GNU C++11 TESTS 3 0 409600 2400
31003459 VIIIIIIVX D Oct. 4, 2017, 9:23 p.m. OK GNU C++11 TESTS 3 0 39321600 2400
55110147 SoiMae D June 5, 2019, 5:45 a.m. OK GNU C++11 TESTS 3 30 0 2400
54500917 WOSHIGEPACHONG2 D May 22, 2019, 8:49 p.m. OK GNU C++11 TESTS 3 30 0 2400
50040595 LittleSheepCYY D Feb. 17, 2019, 1:27 a.m. OK GNU C++11 TESTS 3 30 0 2400
69513477 Hazyknight D Jan. 25, 2020, 11:13 a.m. OK GNU C++11 TESTS 3 30 0 2400
65541509 JCC_ D Nov. 22, 2019, 3:41 p.m. OK GNU C++11 TESTS 3 30 0 2400
31005946 OPG D Oct. 5, 2017, 2:30 a.m. OK GNU C++14 TESTS 3 0 0 2400
26138080 CuSO45H2O D April 5, 2017, 8 a.m. OK GNU C++14 TESTS 3 0 1945600 2400
50040141 realSpongeBob D Feb. 17, 2019, 12:56 a.m. OK GNU C++14 TESTS 3 30 0 2400
38605147 mellicard D May 25, 2018, 9:37 a.m. OK GNU C++14 TESTS 3 30 0 2400
31913026 ControlBear D Oct. 31, 2017, 7:24 a.m. OK GNU C++14 TESTS 3 30 0 2400
63431984 HoaPhat1 D Oct. 26, 2019, 9:24 a.m. OK GNU C++14 TESTS 3 30 0 2400
31139782 -arma- D Oct. 8, 2017, 9:59 a.m. OK GNU C++14 TESTS 3 30 0 2400
31912995 ControlBear D Oct. 31, 2017, 7:22 a.m. OK GNU C++14 TESTS 3 30 0 2400
56064177 vjudge4 D June 26, 2019, 7:04 a.m. OK GNU C++14 TESTS 3 30 0 2400
38344623 Dibagger D May 17, 2018, 10:14 a.m. OK GNU C++14 TESTS 3 30 307200 2400
54553195 vjudge3 D May 24, 2019, 10:17 a.m. OK GNU C++17 TESTS 3 30 0 2400
57947314 alireza_kaviani D July 29, 2019, 2:52 p.m. OK GNU C++17 TESTS 3 30 0 2400
54549225 Arpa D May 24, 2019, 8:06 a.m. OK GNU C++17 TESTS 3 30 0 2400
53825515 ruo D May 6, 2019, 3:49 p.m. OK GNU C++17 TESTS 3 30 0 2400
41632574 vjudge3 D Aug. 15, 2018, 7:27 p.m. OK GNU C++17 TESTS 3 30 0 2400
41593710 vjudge2 D Aug. 14, 2018, 3:37 p.m. OK GNU C++17 TESTS 3 30 0 2400
41593649 MrPrince D Aug. 14, 2018, 3:35 p.m. OK GNU C++17 TESTS 3 30 0 2400
41593602 MrPrince D Aug. 14, 2018, 3:34 p.m. OK GNU C++17 TESTS 3 30 0 2400
41593578 MrPrince D Aug. 14, 2018, 3:33 p.m. OK GNU C++17 TESTS 3 30 0 2400
41593561 MrPrince D Aug. 14, 2018, 3:32 p.m. OK GNU C++17 TESTS 3 30 0 2400
4119212 SergeyLazarev D July 20, 2013, 2:47 p.m. OK Java 7 TESTS 3 62 0 2400
4120360 alexey.enkov D July 20, 2013, 3:05 p.m. OK Java 7 TESTS 3 62 102400 2400
4119075 Petr D July 20, 2013, 2:44 p.m. OK Java 7 TESTS 3 78 0 2400
4143742 izban D July 24, 2013, 1:53 a.m. OK Java 7 TESTS 3 93 0 2400
4118681 niyaznigmatul D July 20, 2013, 2:39 p.m. OK Java 7 TESTS 3 93 0 2400
11279931 Athee D May 26, 2015, 2:19 p.m. OK Java 7 TESTS 3 124 0 2400
6250325 Luqman D April 3, 2014, 1:26 p.m. OK Java 7 TESTS 3 154 0 2400
61525268 Dukkha D Sept. 29, 2019, 9:42 p.m. OK Java 8 TESTS 3 218 0 2400
61524335 Dukkha D Sept. 29, 2019, 8:59 p.m. OK Java 8 TESTS 3 218 0 2400
4130784 QuantumKnight D July 21, 2013, 6:49 p.m. OK MS C# TESTS 3 31 204800 2400
4123573 NVAL D July 20, 2013, 6:43 p.m. OK MS C++ TESTS 3 0 0 2400
4120632 kuviman D July 20, 2013, 3:10 p.m. OK MS C++ TESTS 3 0 0 2400
4142760 Angor D July 23, 2013, 6:51 p.m. OK MS C++ TESTS 3 0 102400 2400
4121289 DAle D July 20, 2013, 3:21 p.m. OK MS C++ TESTS 3 0 102400 2400
4122892 Auster D July 20, 2013, 5:24 p.m. OK MS C++ TESTS 3 0 1024000 2400
4134728 Kianoosh D July 22, 2013, 10:53 a.m. OK MS C++ TESTS 3 0 1740800 2400
4138172 kbix D July 23, 2013, 2:05 a.m. OK MS C++ TESTS 3 15 0 2400
4123568 NVAL D July 20, 2013, 6:42 p.m. OK MS C++ TESTS 3 15 0 2400
4122411 NVAL D July 20, 2013, 4:58 p.m. OK MS C++ TESTS 3 15 0 2400
4120902 GlebsHP D July 20, 2013, 3:14 p.m. OK MS C++ TESTS 3 15 0 2400
4130195 chaotic_iak D July 21, 2013, 3:22 p.m. OK PHP TESTS 3 0 0 2400
4119957 chaotic_iak D July 20, 2013, 2:59 p.m. OK PHP TESTS 3 0 0 2400
4214702 fkmj D Aug. 1, 2013, 10:08 p.m. OK Python 2 TESTS 3 30 0 2400
4123409 niklasb D July 20, 2013, 6:17 p.m. OK Python 2 TESTS 3 31 0 2400
4124832 CyberZHG D July 21, 2013, 12:31 a.m. OK Python 2 TESTS 3 46 0 2400
4119702 enhydra D July 20, 2013, 2:54 p.m. OK Python 2 TESTS 3 46 0 2400
4118761 Gassa D July 20, 2013, 2:40 p.m. OK Python 2 TESTS 3 46 0 2400
4174050 yangff D July 27, 2013, 6:49 a.m. OK Python 2 TESTS 3 62 0 2400
4206544 TangentOfA D July 31, 2013, 1:40 a.m. OK Python 2 TESTS 3 62 102400 2400
4123252 dolphinigle D July 20, 2013, 5:58 p.m. OK Python 2 TESTS 3 62 102400 2400
4124568 sapalskimichal D July 20, 2013, 10:43 p.m. OK Python 2 TESTS 3 62 307200 2400
35860082 ______u______ D March 2, 2018, 9:34 p.m. OK Python 2 TESTS 3 92 4608000 2400
4122582 yosupo D July 20, 2013, 5:07 p.m. OK Python 3 TESTS 3 78 0 2400
34592610 BackOnTrack D Jan. 27, 2018, 3:16 a.m. OK Python 3 TESTS 3 92 5632000 2400

remove filters

Back to search problems