Codeforces Round 575 (Div. 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
1196 Codeforces Round 575 (Div. 3) FINISHED False 7200 167844299 July 24, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9359 ) C Robot Breakout PROGRAMMING implementation 1500

B" n robots have escaped from your laboratory! You have to find them as soon as possible, because these robots are experimental, and their behavior is not tested yet, so they may be really dangerous! Fortunately, even though your robots have escaped, you still have some control over them. First of all, you know the location of each robot: the world you live in can be modeled as an infinite coordinate plane, and the i -th robot is currently located at the point having coordinates ( x_i , y_i ). Furthermore, you may send exactly one command to all of the robots. The command should contain two integer numbers X and Y , and when each robot receives this command, it starts moving towards the point having coordinates ( X , Y ). The robot stops its movement in two cases: Normally, all robots should be able to get from any point of the coordinate plane to any other point. Each robot usually can perform four actions to move. Let's denote the current coordinates of the robot as ( x_c , y_c ). Then the movement system allows it to move to any of the four adjacent points: Unfortunately, it seems that some movement systems of some robots are malfunctioning. For each robot you know which actions it can perform, and which it cannot perform. You want to send a command so all robots gather at the same point. To do so, you have to choose a pair of integer numbers X and Y so that each robot can reach the point ( X , Y ). Is it possible to find such a point? The first line contains one integer q ( 1 <= q <= 10^5 ) -- the number of queries. Then q queries follow. Each query begins with one line containing one integer n ( 1 <= n <= 10^5 ) -- the number of robots in the query. Then n lines follow, the i -th of these lines describes the i -th robot in the current query: it contains six integer numbers x_i , y_i , f_{i, 1} , f_{i, 2} , f_{i, 3"...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
68875220 vjudge1 C Jan. 15, 2020, 4:41 p.m. OK Clang++17 Diagnostics TESTS 14 218 0 1500
57913531 szfck C July 28, 2019, 10:33 p.m. OK Clang++17 Diagnostics TESTS 14 2698 0 1500
57829575 hatsuyuki15 C July 27, 2019, 5:33 a.m. OK D TESTS 14 187 0 1500
57865550 kennyge C July 27, 2019, 8:45 p.m. OK D TESTS 14 217 0 1500
57828881 hatsuyuki15 C July 27, 2019, 5:10 a.m. OK D TESTS 14 234 4300800 1500
60398888 Denor C Sept. 11, 2019, 3:55 p.m. OK Delphi TESTS 14 140 102400 1500
58165533 Craspedacusta C Aug. 2, 2019, 8:55 a.m. OK FPC TESTS 14 405 0 1500
57912755 Arcadii C July 28, 2019, 9:41 p.m. OK FPC TESTS 14 405 102400 1500
57803285 Soumya_123 C July 26, 2019, 2:09 p.m. OK GNU C11 TESTS 14 420 0 1500
60070191 rishiraje C Sept. 5, 2019, 10:52 a.m. OK GNU C11 TESTS 14 436 0 1500
64202504 racerS C Nov. 4, 2019, 11:53 a.m. OK GNU C11 TESTS 14 451 0 1500
57747761 akash19jain C July 25, 2019, 1:40 p.m. OK GNU C11 TESTS 14 452 0 1500
59569978 lcr2580 shenlihong wh0816 C Aug. 27, 2019, 12:12 p.m. OK GNU C11 TESTS 14 452 0 1500
57837188 cs234_shrey C July 27, 2019, 7:59 a.m. OK GNU C11 TESTS 14 467 2355200 1500
57933722 nuruddin C July 29, 2019, 9:41 a.m. OK GNU C11 TESTS 14 467 2969600 1500
57865648 kennyge C July 27, 2019, 8:49 p.m. OK GNU C11 TESTS 14 468 0 1500
59692607 BugLeave C Aug. 30, 2019, 6:56 a.m. OK GNU C11 TESTS 14 468 2355200 1500
58067405 Alfeh C July 31, 2019, 9:22 a.m. OK GNU C11 TESTS 14 483 0 1500
57782813 LJC00118 C July 26, 2019, 6:38 a.m. OK GNU C++11 TESTS 14 31 0 1500
57742828 Heartlessly C July 25, 2019, noon OK GNU C++11 TESTS 14 46 0 1500
58317178 Taday C Aug. 5, 2019, 3:40 a.m. OK GNU C++11 TESTS 14 46 0 1500
58133861 Song_of_long_voyage C Aug. 1, 2019, 3:18 p.m. OK GNU C++11 TESTS 14 46 0 1500
57747867 -Javelin- C July 25, 2019, 1:42 p.m. OK GNU C++11 TESTS 14 46 819200 1500
58071130 YLWang C July 31, 2019, 10:43 a.m. OK GNU C++11 TESTS 14 46 819200 1500
58196357 jzh817 C Aug. 3, 2019, 12:45 a.m. OK GNU C++11 TESTS 14 46 2457600 1500
58063501 luogu_bot4 C July 31, 2019, 8:12 a.m. OK GNU C++11 TESTS 14 46 2764800 1500
68643304 shengzihang C Jan. 12, 2020, 8:14 a.m. OK GNU C++11 TESTS 14 61 0 1500
58252902 AndyMo C Aug. 4, 2019, 8:41 a.m. OK GNU C++11 TESTS 14 61 0 1500
58920595 tokitsukaze C Aug. 16, 2019, 4:59 p.m. OK GNU C++14 TESTS 14 62 8089600 1500
57860682 efimmanevich C July 27, 2019, 5:40 p.m. OK GNU C++14 TESTS 14 108 0 1500
58221786 luciferkingofthehell C Aug. 3, 2019, 12:49 p.m. OK GNU C++14 TESTS 14 109 0 1500
65424012 Invisible_Shadow C Nov. 20, 2019, 10:05 a.m. OK GNU C++14 TESTS 14 109 0 1500
59939352 xsjlmzs C Sept. 3, 2019, 10:50 a.m. OK GNU C++14 TESTS 14 124 0 1500
69092650 vjudge5 C Jan. 19, 2020, 10:47 a.m. OK GNU C++14 TESTS 14 124 0 1500
65334415 _HonEy C Nov. 19, 2019, 8:13 a.m. OK GNU C++14 TESTS 14 124 0 1500
58872645 S.enqueue C Aug. 15, 2019, 4:11 p.m. OK GNU C++14 TESTS 14 124 0 1500
58639709 chenyinxiaowudi C Aug. 12, 2019, 2:42 a.m. OK GNU C++14 TESTS 14 124 0 1500
57929057 lasmyueng C July 29, 2019, 8:06 a.m. OK GNU C++14 TESTS 14 124 0 1500
59270269 lesskreker C Aug. 22, 2019, 12:26 p.m. OK GNU C++17 TESTS 14 46 0 1500
65659078 vjudge2 C Nov. 24, 2019, 11:39 a.m. OK GNU C++17 TESTS 14 93 0 1500
57752771 DT3264 C July 25, 2019, 3:18 p.m. OK GNU C++17 TESTS 14 108 0 1500
57739458 XuXilin C July 25, 2019, 11 a.m. OK GNU C++17 TESTS 14 108 1228800 1500
57916425 mohamedeltair C July 29, 2019, 1:41 a.m. OK GNU C++17 TESTS 14 109 0 1500
66593405 lijiatu C Dec. 10, 2019, 1:46 p.m. OK GNU C++17 TESTS 14 109 0 1500
60374516 YANGRUZHAO C Sept. 11, 2019, 5:34 a.m. OK GNU C++17 TESTS 14 109 2355200 1500
58934917 zhangxiyuan C Aug. 17, 2019, 3:26 a.m. OK GNU C++17 TESTS 14 124 0 1500
59970403 gtostes C Sept. 4, 2019, 12:28 a.m. OK GNU C++17 TESTS 14 124 0 1500
68809306 vjudge4 C Jan. 14, 2020, 3:58 p.m. OK GNU C++17 TESTS 14 124 0 1500
59698006 reanimatorzon C Aug. 30, 2019, 9:24 a.m. OK Go TESTS 14 93 4505600 1500
62752839 sighduck C Oct. 17, 2019, 2:39 a.m. OK Go TESTS 14 342 4505600 1500
57792653 serhiimazurok C July 26, 2019, 10:06 a.m. OK Go TESTS 14 343 4608000 1500
57937571 jmazon C July 29, 2019, 11:23 a.m. OK Haskell TESTS 14 1060 89395200 1500
59677018 i_will_be_less_than_blue C Aug. 29, 2019, 6:35 p.m. OK Java 8 TESTS 14 124 0 1500
58709384 rahsutamrev C Aug. 13, 2019, 11:39 a.m. OK Java 8 TESTS 14 124 3891200 1500
62758089 dyhu083 C Oct. 17, 2019, 5:43 a.m. OK Java 8 TESTS 14 139 0 1500
58078321 spar5h C July 31, 2019, 1:05 p.m. OK Java 8 TESTS 14 139 0 1500
58206372 Ad-007 C Aug. 3, 2019, 7:07 a.m. OK Java 8 TESTS 14 140 0 1500
57954595 dhaNiN C July 29, 2019, 6:04 p.m. OK Java 8 TESTS 14 140 0 1500
61231824 housni C Sept. 24, 2019, 4:51 p.m. OK Java 8 TESTS 14 155 0 1500
57905697 thisSideAnonymous C July 28, 2019, 5:31 p.m. OK Java 8 TESTS 14 155 0 1500
57834163 revanthreddy85 C July 27, 2019, 7 a.m. OK Java 8 TESTS 14 155 0 1500
57752674 prakhar897 C July 25, 2019, 3:16 p.m. OK Java 8 TESTS 14 155 0 1500
57911509 kuzAnatoliy C July 28, 2019, 8:34 p.m. OK JavaScript TESTS 14 1247 30822400 1500
57742648 bohuss C July 25, 2019, 11:57 a.m. OK Kotlin TESTS 14 155 5222400 1500
60194352 Benq C Sept. 7, 2019, 12:16 a.m. OK Kotlin TESTS 14 405 5939200 1500
57744355 Spheniscine C July 25, 2019, 12:30 p.m. OK Kotlin TESTS 14 405 5939200 1500
58023580 og.kostya C July 30, 2019, 4:02 p.m. OK Mono C# TESTS 14 139 3686400 1500
58909127 treasuryonly C Aug. 16, 2019, 12:22 p.m. OK Mono C# TESTS 14 264 18739200 1500
57787880 NEvOl C July 26, 2019, 8:27 a.m. OK Mono C# TESTS 14 592 13107200 1500
61314581 artworks C Sept. 26, 2019, 10:35 a.m. OK Mono C# TESTS 14 795 7884800 1500
65656847 vjudge3 C Nov. 24, 2019, 10:53 a.m. OK MS C++ TESTS 14 93 0 1500
68573257 vjudge5 C Jan. 11, 2020, 3:37 a.m. OK MS C++ TESTS 14 108 0 1500
61094469 vjudge5 C Sept. 23, 2019, 1:29 a.m. OK MS C++ TESTS 14 108 0 1500
58115327 vjudge2 C Aug. 1, 2019, 8:40 a.m. OK MS C++ TESTS 14 109 0 1500
57742232 vjudge3 C July 25, 2019, 11:49 a.m. OK MS C++ TESTS 14 109 0 1500
68826852 vjudge3 C Jan. 14, 2020, 7:35 p.m. OK MS C++ TESTS 14 109 0 1500
65657579 vjudge3 C Nov. 24, 2019, 11:07 a.m. OK MS C++ TESTS 14 109 0 1500
65655752 vjudge1 C Nov. 24, 2019, 10:37 a.m. OK MS C++ TESTS 14 109 0 1500
61552872 vjudge5 C Sept. 30, 2019, 1:05 p.m. OK MS C++ TESTS 14 109 0 1500
65662220 vjudge1 C Nov. 24, 2019, 12:50 p.m. OK MS C++ TESTS 14 109 1740800 1500
58639910 116c C Aug. 12, 2019, 2:48 a.m. OK MS C++ 2017 TESTS 14 156 2457600 1500
57729643 ZSTU-2018329621261 C July 25, 2019, 8:13 a.m. OK MS C++ 2017 TESTS 14 171 0 1500
58065208 vjudge3 C July 31, 2019, 8:43 a.m. OK MS C++ 2017 TESTS 14 171 3174400 1500
57836108 quyunhao C July 27, 2019, 7:36 a.m. OK MS C++ 2017 TESTS 14 186 0 1500
57726932 hwangganzi C July 25, 2019, 7:26 a.m. OK MS C++ 2017 TESTS 14 186 0 1500
58060882 yyoooo C July 31, 2019, 7:22 a.m. OK MS C++ 2017 TESTS 14 186 3174400 1500
58065589 vjudge2 C July 31, 2019, 8:50 a.m. OK MS C++ 2017 TESTS 14 186 3174400 1500
57815884 xsc C July 26, 2019, 7:40 p.m. OK MS C++ 2017 TESTS 14 187 0 1500
58060805 Saber_Altria C July 31, 2019, 7:20 a.m. OK MS C++ 2017 TESTS 14 187 3174400 1500
57731925 pmitkov C July 25, 2019, 8:49 a.m. OK MS C++ 2017 TESTS 14 187 4812800 1500
57818516 mayakin C July 26, 2019, 9:13 p.m. OK PHP TESTS 14 577 0 1500
57798403 Saurabh66 C July 26, 2019, 12:20 p.m. OK PyPy 2 TESTS 14 1092 7782400 1500
57895215 yumtam C July 28, 2019, 1:17 p.m. OK PyPy 2 TESTS 14 2386 11468800 1500
57800419 Pokeylope C July 26, 2019, 1:04 p.m. OK PyPy 3 TESTS 14 608 9830400 1500
60359177 ma.maiorova C Sept. 10, 2019, 5:28 p.m. OK PyPy 3 TESTS 14 670 10854400 1500
58403311 Stephan C Aug. 6, 2019, 6:58 p.m. OK PyPy 3 TESTS 14 670 13209600 1500
57737952 v_shah18 C July 25, 2019, 10:32 a.m. OK PyPy 3 TESTS 14 685 10854400 1500
58535100 v1adimir C Aug. 10, 2019, 11:30 a.m. OK PyPy 3 TESTS 14 685 11059200 1500
58524710 pyduper C Aug. 10, 2019, 6:36 a.m. OK PyPy 3 TESTS 14 685 11059200 1500
57848845 vaibhavsarda C July 27, 2019, 12:18 p.m. OK PyPy 3 TESTS 14 686 16179200 1500
57804802 sprkgoyal C July 26, 2019, 2:43 p.m. OK PyPy 3 TESTS 14 701 10649600 1500
57815440 shubham0290 C July 26, 2019, 7:25 p.m. OK PyPy 3 TESTS 14 716 10956800 1500
58353277 Parag_AP C Aug. 5, 2019, 6:07 p.m. OK PyPy 3 TESTS 14 716 11161600 1500
57903792 Helli.code C July 28, 2019, 4:46 p.m. OK Python 2 TESTS 14 811 1638400 1500
66191261 ttchengab C Dec. 2, 2019, 4:31 p.m. OK Python 2 TESTS 14 857 12697600 1500
59386589 GayathriVenkatesh C Aug. 24, 2019, 6:40 a.m. OK Python 2 TESTS 14 1247 307200 1500
58844830 wolffd C Aug. 15, 2019, 4:37 a.m. OK Python 2 TESTS 14 1278 4608000 1500
63396331 riskingh C Oct. 25, 2019, 4:47 p.m. OK Python 3 TESTS 14 608 1126400 1500
57792662 kp_2141 C July 26, 2019, 10:07 a.m. OK Python 3 TESTS 14 623 13004800 1500
62403098 kopok2 C Oct. 12, 2019, 8:04 a.m. OK Python 3 TESTS 14 733 23244800 1500
58403294 Stephan C Aug. 6, 2019, 6:57 p.m. OK Python 3 TESTS 14 888 13414400 1500
68134852 Gaurav1 C Jan. 3, 2020, 6:26 p.m. OK Python 3 TESTS 14 919 6348800 1500
57855584 thanhnam1998 C July 27, 2019, 2:55 p.m. OK Python 3 TESTS 14 982 819200 1500
57911111 jmunozb9 C July 28, 2019, 8:17 p.m. OK Python 3 TESTS 14 997 921600 1500
58252942 maslov.alex1580 C Aug. 4, 2019, 8:42 a.m. OK Python 3 TESTS 14 998 716800 1500
58353247 Parag_AP C Aug. 5, 2019, 6:06 p.m. OK Python 3 TESTS 14 998 819200 1500
67877930 sureshsinghspd C Dec. 29, 2019, 2:02 p.m. OK Python 3 TESTS 14 1044 921600 1500
59140641 Andrey_R C Aug. 20, 2019, 2:17 p.m. OK Ruby TESTS 14 732 307200 1500
60932275 nemi_zzz C Sept. 20, 2019, 2:08 p.m. OK Ruby TESTS 14 826 30003200 1500
61928075 ikazuya0201 C Oct. 5, 2019, 3:19 p.m. OK Rust TESTS 14 108 204800 1500
58239862 BetBit C Aug. 3, 2019, 11:08 p.m. OK Rust TESTS 14 826 0 1500
58237444 BetBit C Aug. 3, 2019, 8:36 p.m. OK Rust TESTS 14 904 0 1500
58237211 BetBit C Aug. 3, 2019, 8:24 p.m. OK Rust TESTS 14 1014 0 1500
58249444 rasphino C Aug. 4, 2019, 7:09 a.m. OK Rust TESTS 14 1029 7168000 1500
58257185 BetBit C Aug. 4, 2019, 10:35 a.m. OK Rust TESTS 14 1045 0 1500
58237460 BetBit C Aug. 3, 2019, 8:37 p.m. OK Rust TESTS 14 1060 0 1500
58236700 BetBit C Aug. 3, 2019, 8:02 p.m. OK Rust TESTS 14 1060 0 1500

remove filters

Back to search problems