Pinely Round 3 (Div. 1 + Div. 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
1909 Pinely Round 3 (Div. 1 + Div. 2) FINISHED False 10800 28481099 Dec. 23, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17948 ) A Distinct Buttons PROGRAMMING implementation math

B'You are located at the point (0, 0) of an infinite Cartesian plane. You have a controller with 4 buttons which can perform one of the following operations: Unfortunately, the controller is broken. If you press all the 4 buttons (in any order), the controller stops working. It means that, during the whole trip, you can only press at most 3 distinct buttons (any number of times, in any order). There are n special points in the plane, with integer coordinates (x_i, y_i) . Can you visit all the special points (in any order) without breaking the controller? Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 1000 ). The description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 100 ) -- the number of special points. Each of the next n lines contains two integers x_i , y_i ( -100 <= q x_i, y_i <= q 100 ), which represent the special point (x_i, y_i) . Note that there are no constraints on the sum of n over all test cases. For each test case, output "YES" (without quotes), if you can reach all the special points without breaking the controller, and "NO" (without quotes) otherwise. You may output each letter in any case (for example, "YES", "Yes", "yes", "yEs" will all be recognized as positive answer). In the first test case, you can move as follows: Therefore, you can visit all the special points using only the buttons texttt{R} , texttt{D} , so the controller does not break. Note that the special points may coincide. In the second test case, you can show that you can visit all the special points using only the buttons texttt{U} , texttt{D} , texttt{L} . In the third test case, you can show that you must press all the buttons ( texttt{U} , texttt{R} , texttt{D} , texttt{L} ) to visit all the points, so the controlle'...

Tutorials

Editorial of Pinely Round 3 (Div. 1 + Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
238623617 Rakin_072 A Dec. 24, 2023, 5:23 a.m. OK GNU C11 TESTS 15 31 3993600
238590615 Seam05 A Dec. 23, 2023, 6:17 p.m. OK GNU C11 TESTS 15 46 3993600
238607153 Homaira_Jahan128 A Dec. 23, 2023, 10:08 p.m. OK GNU C11 TESTS 15 46 3993600
238607188 Homaira_Jahan128 A Dec. 23, 2023, 10:09 p.m. OK GNU C11 TESTS 15 46 3993600
238578829 turjo31 A Dec. 23, 2023, 5:04 p.m. OK GNU C11 TESTS 15 46 3993600
238612237 rickyxrc A Dec. 24, 2023, 1:24 a.m. OK GNU C++14 TESTS 15 31 1024000
238619929 Konggee. A Dec. 24, 2023, 4:24 a.m. OK GNU C++14 TESTS 15 46 1024000
238617879 lanzhu A Dec. 24, 2023, 3:46 a.m. OK GNU C++14 TESTS 15 46 1024000
238616167 Boimet A Dec. 24, 2023, 3:08 a.m. OK GNU C++14 TESTS 15 46 1024000
238612208 itshawn A Dec. 24, 2023, 1:23 a.m. OK GNU C++14 TESTS 15 46 1024000
238604170 Milad-Samy A Dec. 23, 2023, 9:01 p.m. OK GNU C++14 TESTS 15 46 1024000
238621248 Lanthanmum A Dec. 24, 2023, 4:47 a.m. OK GNU C++14 TESTS 15 46 1024000
238620856 PenGoFox A Dec. 24, 2023, 4:41 a.m. OK GNU C++14 TESTS 15 46 1024000
238620106 anujp_2002 A Dec. 24, 2023, 4:27 a.m. OK GNU C++14 TESTS 15 46 1024000
238620103 arpit_iiitl A Dec. 24, 2023, 4:27 a.m. OK GNU C++14 TESTS 15 46 1024000
238589682 Ikat5 A Dec. 23, 2023, 6:12 p.m. OK GNU C++17 TESTS 15 31 1024000
238593057 _notAcoder_ A Dec. 23, 2023, 6:33 p.m. OK GNU C++17 TESTS 15 31 1331200
238623672 Tamim19 A Dec. 24, 2023, 5:24 a.m. OK GNU C++17 TESTS 15 46 1024000
238623426 Tamim19 A Dec. 24, 2023, 5:21 a.m. OK GNU C++17 TESTS 15 46 1024000
238622693 ayush.gupta0218 A Dec. 24, 2023, 5:10 a.m. OK GNU C++17 TESTS 15 46 1024000
238624586 RexVx77 A Dec. 24, 2023, 5:37 a.m. OK GNU C++17 TESTS 15 46 1024000
238624446 gayathri_anant A Dec. 24, 2023, 5:35 a.m. OK GNU C++17 TESTS 15 46 1024000
238625155 yell_ A Dec. 24, 2023, 5:44 a.m. OK GNU C++17 TESTS 15 46 1024000
238626322 debnathdipayan042 A Dec. 24, 2023, 5:59 a.m. OK GNU C++17 TESTS 15 46 1024000
238626224 r_q A Dec. 24, 2023, 5:58 a.m. OK GNU C++17 TESTS 15 46 1024000
238610144 nguyenhonganh2357 A Dec. 23, 2023, 11:55 p.m. OK GNU C++17 (64) TESTS 15 30 1228800
238617907 megalodon_hunter A Dec. 24, 2023, 3:47 a.m. OK GNU C++17 (64) TESTS 15 31 1228800
238624187 7ag A Dec. 24, 2023, 5:31 a.m. OK GNU C++17 (64) TESTS 15 31 1228800
238619308 Once_I_Liked_AGirl A Dec. 24, 2023, 4:12 a.m. OK GNU C++17 (64) TESTS 15 31 1228800
238600572 Gladiator_King A Dec. 23, 2023, 8:02 p.m. OK GNU C++17 (64) TESTS 15 31 1228800
238591161 v3n0m_24 A Dec. 23, 2023, 6:20 p.m. OK GNU C++17 (64) TESTS 15 31 1228800
238590144 privetsunset A Dec. 23, 2023, 6:14 p.m. OK GNU C++17 (64) TESTS 15 31 1228800
238601370 Hytidel A Dec. 23, 2023, 8:14 p.m. OK GNU C++17 (64) TESTS 15 31 1331200
238610025 Sempr A Dec. 23, 2023, 11:51 p.m. OK GNU C++17 (64) TESTS 15 31 1331200
238612768 wlh666 A Dec. 24, 2023, 1:42 a.m. OK GNU C++17 (64) TESTS 15 31 9216000
238624887 anshuman_raj_20 A Dec. 24, 2023, 5:41 a.m. OK GNU C++20 (64) TESTS 15 31 1228800
238624839 abhirup76 A Dec. 24, 2023, 5:40 a.m. OK GNU C++20 (64) TESTS 15 31 1228800
238624010 ScorpioDagger A Dec. 24, 2023, 5:28 a.m. OK GNU C++20 (64) TESTS 15 31 1228800
238623919 amirrrr A Dec. 24, 2023, 5:27 a.m. OK GNU C++20 (64) TESTS 15 31 1228800
238623886 dhruv1807 A Dec. 24, 2023, 5:27 a.m. OK GNU C++20 (64) TESTS 15 31 1228800
238623876 suraj_prajapati1743 A Dec. 24, 2023, 5:27 a.m. OK GNU C++20 (64) TESTS 15 31 1228800
238626265 fooker A Dec. 24, 2023, 5:59 a.m. OK GNU C++20 (64) TESTS 15 31 1228800
238626119 gt_52 A Dec. 24, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 15 31 1228800
238625625 RogueArtist A Dec. 24, 2023, 5:50 a.m. OK GNU C++20 (64) TESTS 15 31 1228800
238625570 anshuman_raj_20 A Dec. 24, 2023, 5:50 a.m. OK GNU C++20 (64) TESTS 15 31 1228800
238625378 wizwilzo A Dec. 24, 2023, 5:47 a.m. OK Java 11 TESTS 15 233 24678400
238609819 crrystaly A Dec. 23, 2023, 11:41 p.m. OK Java 11 TESTS 15 390 25395200
238614030 MadderForMe A Dec. 24, 2023, 2:18 a.m. OK Java 11 TESTS 15 452 25395200
238625613 ahanasaha01 A Dec. 24, 2023, 5:50 a.m. OK Java 11 TESTS 15 452 25395200
238607274 abmishra95320 A Dec. 23, 2023, 10:10 p.m. OK Java 11 TESTS 15 468 25395200
238577940 klu_2100031537 A Dec. 23, 2023, 5:01 p.m. OK Java 11 TESTS 15 561 25600000
238616774 Nagendravarma A Dec. 24, 2023, 3:22 a.m. OK Java 17 TESTS 15 264 40448000
238619887 dilshar23 A Dec. 24, 2023, 4:23 a.m. OK Java 17 TESTS 15 311 40448000
238593609 vikashkumarukg977 A Dec. 23, 2023, 6:38 p.m. OK Java 17 TESTS 15 467 40755200
238597426 Yashraj_K A Dec. 23, 2023, 7:19 p.m. OK Java 17 TESTS 15 498 40857600
238580509 Andr0Dev A Dec. 23, 2023, 5:10 p.m. OK Java 17 TESTS 15 514 40550400
238578423 20R01A0591 A Dec. 23, 2023, 5:03 p.m. OK Java 17 TESTS 15 514 40755200
238580455 bazwalt A Dec. 23, 2023, 5:10 p.m. OK Java 17 TESTS 15 529 40550400
238610007 newbornLingling0423 A Dec. 23, 2023, 11:49 p.m. OK Java 21 TESTS 15 296 41984000
238604548 java_noob69 A Dec. 23, 2023, 9:09 p.m. OK Java 21 TESTS 15 311 57856000
238601913 IknowCoding A Dec. 23, 2023, 8:24 p.m. OK Java 8 TESTS 15 109 18841600
238623959 uday0904 A Dec. 24, 2023, 5:28 a.m. OK Java 8 TESTS 15 140 18841600
238608500 Terminators A Dec. 23, 2023, 10:51 p.m. OK Java 8 TESTS 15 140 18944000
238589950 American_Eagle A Dec. 23, 2023, 6:13 p.m. OK Java 8 TESTS 15 171 18944000
238622482 LightSheep A Dec. 24, 2023, 5:07 a.m. OK Java 8 TESTS 15 312 19660800
238605879 DAeMAn A Dec. 23, 2023, 9:37 p.m. OK Java 8 TESTS 15 327 19660800
238593699 Soham_07 A Dec. 23, 2023, 6:39 p.m. OK Java 8 TESTS 15 358 19763200
238592477 yousef454 A Dec. 23, 2023, 6:28 p.m. OK JavaScript TESTS 15 109 6758400
238593784 raj.priyam857885 A Dec. 23, 2023, 6:40 p.m. OK MS C++ 2017 TESTS 15 155 1126400
238617141 DmacOP A Dec. 24, 2023, 3:31 a.m. OK MS C++ 2017 TESTS 15 155 1126400
238617508 Jasharaj A Dec. 24, 2023, 3:39 a.m. OK MS C++ 2017 TESTS 15 156 1126400
238598842 ABC4 A Dec. 23, 2023, 7:38 p.m. OK Node.js TESTS 15 187 26521600
238604331 A_IGOR A Dec. 23, 2023, 9:04 p.m. OK PascalABC.NET TESTS 15 187 21504000
238626238 0xROoT A Dec. 24, 2023, 5:58 a.m. OK PyPy 3 TESTS 15 187 23142400
238591026 jvatsal0709 A Dec. 23, 2023, 6:19 p.m. OK PyPy 3 TESTS 15 265 23347200
238597574 lisashi A Dec. 23, 2023, 7:20 p.m. OK PyPy 3 TESTS 15 842 27033600
238579855 harshad03 A Dec. 23, 2023, 5:08 p.m. OK PyPy 3 TESTS 15 982 27545600
238598387 AyuAnchor A Dec. 23, 2023, 7:32 p.m. OK PyPy 3-64 TESTS 15 124 33689600
238595987 DRDIV A Dec. 23, 2023, 7:02 p.m. OK PyPy 3-64 TESTS 15 124 34611200
238603703 rmr A Dec. 23, 2023, 8:52 p.m. OK PyPy 3-64 TESTS 15 124 36454400
238619145 Youarenotgood A Dec. 24, 2023, 4:09 a.m. OK PyPy 3-64 TESTS 15 140 34611200
238613851 kinglykang A Dec. 24, 2023, 2:13 a.m. OK PyPy 3-64 TESTS 15 140 35123200
238604350 giuliomanuzzi A Dec. 23, 2023, 9:05 p.m. OK PyPy 3-64 TESTS 15 140 35225600
238611525 Not_Me3 A Dec. 24, 2023, 12:57 a.m. OK PyPy 3-64 TESTS 15 155 34713600
238597369 bruher A Dec. 23, 2023, 7:18 p.m. OK PyPy 3-64 TESTS 15 155 36556800
238613198 cybsbbb A Dec. 24, 2023, 1:55 a.m. OK PyPy 3-64 TESTS 15 155 37478400
238605672 Mohamed_Yousef_2024 A Dec. 23, 2023, 9:32 p.m. OK PyPy 3-64 TESTS 15 155 100044800
238600109 eugalt A Dec. 23, 2023, 7:55 p.m. OK Python 3 TESTS 15 171 6041600
238619426 Collapsium A Dec. 24, 2023, 4:14 a.m. OK Python 3 TESTS 15 186 5734400
238595045 Khaliltlili A Dec. 23, 2023, 6:52 p.m. OK Python 3 TESTS 15 186 5836800
238590898 abbes A Dec. 23, 2023, 6:18 p.m. OK Python 3 TESTS 15 186 5836800
238608611 GoldmanYT A Dec. 23, 2023, 10:55 p.m. OK Python 3 TESTS 15 186 5939200
238595937 girisarthak A Dec. 23, 2023, 7:01 p.m. OK Python 3 TESTS 15 187 5836800
238623901 13alE9.11 A Dec. 24, 2023, 5:27 a.m. OK Python 3 TESTS 15 187 5939200
238615793 VioletVal A Dec. 24, 2023, 2:59 a.m. OK Python 3 TESTS 15 187 5939200
238599701 TrollFaceAlpha A Dec. 23, 2023, 7:49 p.m. OK Python 3 TESTS 15 202 5632000
238619408 Amrishchaudhary9 A Dec. 24, 2023, 4:14 a.m. OK Python 3 TESTS 15 202 5734400
238607945 noddynoddy A Dec. 23, 2023, 10:33 p.m. OK Rust 2021 TESTS 15 46 1228800
238607575 emiliopeju A Dec. 23, 2023, 10:19 p.m. OK Rust 2021 TESTS 15 46 1228800

remove filters

Back to search problems