Codeforces Round 1033 (Div. 2) and CodeNite 2025

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
2120 Codeforces Round 1033 (Div. 2) and CodeNite 2025 FINISHED False 7200 25889123 June 21, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 20209 ) A Square of Rectangles PROGRAMMING geometry math

Aryan is an ardent lover of squares but a hater of rectangles (Yes, he knows all squares are rectangles). But Harshith likes to mess with Aryan. Harshith gives Aryan three rectangles of sizes (l_1\times b_1), (l_2\times b_2), and (l_3\times b_3) such that (l_3\leq l_2\leq l_1) and (b_3\leq b_2\leq b_1). Aryan, in order to defeat Harshith, decides to arrange these three rectangles to form a square such that no two rectangles overlap and the rectangles are aligned along edges. Rotating rectangles is not allowed. Help Aryan determine if he can defeat Harshith. Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 100)). The description of the test cases follows. Each test case contains a single line with (6) space-separated integers (l_1, b_1, l_2, b_2, l_3), and (b_3) ((1 \leq l_3\le l_2\le l_1\le 100), (1\le b_3\le b_2\le b_1 \leq 100)) — the dimensions of the three rectangles. For each testcase, print " YES " if the rectangles can be arranged to form a square; otherwise, " NO ". You can output the answer in any case (upper or lower). For example, the strings " yEs ", " yes ", " Yes ", and " YES " will be recognized as positive responses. In the second test case, the three rectangles (5\times 3), (5\times 1), and (5\times 1) can be arranged as follows to form a square. In the fourth test case, it can be proven that the rectangles can't be arranged to form a square with the given constraints.

Tutorials

Codeforces Round 1033 (Div. 2) and CodeNite 2025 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
325484977 og.kostya A June 21, 2025, 5:15 p.m. OK C# 10 TESTS 5 77 0
325488983 remantadin A June 21, 2025, 5:41 p.m. OK C# 13 TESTS 5 93 0
325506186 siddharth46 A June 22, 2025, 4:28 a.m. OK C++17 (GCC 7-32) TESTS 5 30 102400
325507738 rohit_raj_37 A June 22, 2025, 4:54 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
325505954 aksahoo0607 A June 22, 2025, 4:24 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
325501301 Aditi2004 A June 22, 2025, 3:01 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
325501100 Lon-lon-Lon A June 22, 2025, 2:57 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
325501055 Lon-lon-Lon A June 22, 2025, 2:56 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
325500914 tanuj_73 A June 22, 2025, 2:54 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
325497001 mje_mje A June 22, 2025, 1:37 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
325511006 ZePhYeR_ A June 22, 2025, 5:40 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
325510937 pika_qiu A June 22, 2025, 5:39 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
325471644 sanjeev2005prasanna A June 21, 2025, 4:10 p.m. OK C++20 (GCC 13-64) TESTS 5 30 0
325493797 smits24 A June 21, 2025, 6:21 p.m. OK C++20 (GCC 13-64) TESTS 5 30 102400
325495148 vaibhavraj A June 21, 2025, 6:35 p.m. OK C++20 (GCC 13-64) TESTS 5 30 8089600
325502536 YouKnowWhoamI A June 22, 2025, 3:25 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
325511440 random1810 A June 22, 2025, 5:46 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
325509233 N1664 A June 22, 2025, 5:16 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
325507959 Sakib_Imtiaz A June 22, 2025, 4:57 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
325507106 Muskan_kumari1 A June 22, 2025, 4:44 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
325504144 ksrkasyap A June 22, 2025, 3:53 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
325502494 Snehashishak58 A June 22, 2025, 3:24 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
325506767 mt1221292 A June 22, 2025, 4:39 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 30 0
325502814 _Avneesh A June 22, 2025, 3:30 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 30 0
325490096 hardik170906 A June 21, 2025, 5:50 p.m. OK C++23 (GCC 14-64, msys2) TESTS 5 30 0
325487929 Satvik0100 A June 21, 2025, 5:33 p.m. OK C++23 (GCC 14-64, msys2) TESTS 5 30 0
325486267 vivekchandwani7 A June 21, 2025, 5:22 p.m. OK C++23 (GCC 14-64, msys2) TESTS 5 30 0
325509542 Aachman_224 A June 22, 2025, 5:20 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 30 102400
325508967 liuyan1217 A June 22, 2025, 5:12 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
325511550 luv29 A June 22, 2025, 5:47 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
325511351 Deva_2612 A June 22, 2025, 5:45 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
325509042 GOUR92 A June 22, 2025, 5:13 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
325467720 James_bond_9089 A June 21, 2025, 4:01 p.m. OK C# 8 TESTS 5 108 409600
325472360 Guna_7214 A June 21, 2025, 4:12 p.m. OK GNU C11 TESTS 5 30 102400
325466001 shubhamhubhai A June 21, 2025, 3:56 p.m. OK GNU C11 TESTS 5 31 0
325471817 ektedarahmad A June 21, 2025, 4:11 p.m. OK GNU C11 TESTS 5 46 0
325468510 _.Still_Alive._ A June 21, 2025, 4:03 p.m. OK GNU C11 TESTS 5 46 0
325466354 psmolkov A June 21, 2025, 3:57 p.m. OK GNU C11 TESTS 5 46 0
325478056 Sayantan_Hazra A June 21, 2025, 4:27 p.m. OK GNU C11 TESTS 5 46 102400
325468707 SPARKED_000 A June 21, 2025, 4:03 p.m. OK GNU C11 TESTS 5 46 102400
325466310 StarrySky3296 A June 21, 2025, 3:57 p.m. OK GNU C11 TESTS 5 46 102400
325469822 d.o. A June 21, 2025, 4:06 p.m. OK Go TESTS 5 62 0
325495773 Harshu_001 A June 21, 2025, 6:55 p.m. OK Java 21 TESTS 5 202 102400
325488118 rheetiksharma603 A June 21, 2025, 5:34 p.m. OK Java 21 TESTS 5 202 409600
325494141 hands_on A June 21, 2025, 6:24 p.m. OK Java 21 TESTS 5 217 1228800
325469089 priyaroy3370 A June 21, 2025, 4:04 p.m. OK Java 21 TESTS 5 218 409600
325493641 SathvikGoud A June 21, 2025, 6:20 p.m. OK Java 21 TESTS 5 233 409600
325474775 reekdev A June 21, 2025, 4:18 p.m. OK Java 21 TESTS 5 234 204800
325509520 frost420e A June 22, 2025, 5:20 a.m. OK Java 21 TESTS 5 234 409600
325468001 Kshitiz_san A June 21, 2025, 4:02 p.m. OK Java 21 TESTS 5 249 0
325486421 messi_10db A June 21, 2025, 5:23 p.m. OK Java 21 TESTS 5 249 204800
325487973 Abhishekdound A June 21, 2025, 5:33 p.m. OK Java 21 TESTS 5 249 409600
325510265 codesuv A June 22, 2025, 5:30 a.m. OK Java 8 TESTS 5 124 0
325489408 Eslam_Ahmed A June 21, 2025, 5:44 p.m. OK Java 8 TESTS 5 124 0
325507152 arpit_ehh A June 22, 2025, 4:45 a.m. OK Java 8 TESTS 5 139 0
325506831 priyanshu3003 A June 22, 2025, 4:40 a.m. OK Java 8 TESTS 5 140 0
325495295 Idiotic_fellow327 A June 21, 2025, 6:37 p.m. OK Java 8 TESTS 5 140 0
325479223 hustlerZzZ A June 21, 2025, 4:30 p.m. OK Java 8 TESTS 5 140 0
325469847 _selenophile A June 21, 2025, 4:06 p.m. OK Java 8 TESTS 5 155 0
325477379 amitkumar88 A June 21, 2025, 4:25 p.m. OK Java 8 TESTS 5 156 0
325472194 forsaken724 A June 21, 2025, 4:12 p.m. OK Java 8 TESTS 5 156 0
325507303 Baidiki A June 22, 2025, 4:48 a.m. OK Java 8 TESTS 5 171 0
325500028 SSS_Haroon_Nadeem A June 22, 2025, 2:39 a.m. OK PyPy 3 TESTS 5 92 0
325488401 daagini A June 21, 2025, 5:36 p.m. OK PyPy 3 TESTS 5 93 102400
325476277 ag5356 A June 21, 2025, 4:22 p.m. OK PyPy 3 TESTS 5 93 204800
325471087 Raffas A June 21, 2025, 4:09 p.m. OK PyPy 3 TESTS 5 93 204800
325489544 SmitUdani A June 21, 2025, 5:46 p.m. OK PyPy 3-64 TESTS 5 62 204800
325491879 ruthvik_racha A June 21, 2025, 6:04 p.m. OK PyPy 3-64 TESTS 5 77 0
325485210 johnwilk_99 A June 21, 2025, 5:16 p.m. OK PyPy 3-64 TESTS 5 77 0
325466163 T_Thilok A June 21, 2025, 3:56 p.m. OK PyPy 3-64 TESTS 5 77 0
325509682 vikash_gautam.iitr A June 22, 2025, 5:22 a.m. OK PyPy 3-64 TESTS 5 77 204800
325509525 vke.1743 A June 22, 2025, 5:20 a.m. OK PyPy 3-64 TESTS 5 77 204800
325500023 radoslav11 A June 22, 2025, 2:39 a.m. OK PyPy 3-64 TESTS 5 77 204800
325494008 AdiArora A June 21, 2025, 6:23 p.m. OK PyPy 3-64 TESTS 5 77 204800
325492816 kzar A June 21, 2025, 6:12 p.m. OK PyPy 3-64 TESTS 5 77 204800
325489701 prasad.gujar2004 A June 21, 2025, 5:47 p.m. OK PyPy 3-64 TESTS 5 77 204800
325473360 Arpitkush087 A June 21, 2025, 4:15 p.m. OK Python 2 TESTS 5 77 0
325494485 Asymptote_hk27 A June 21, 2025, 6:28 p.m. OK Python 3 TESTS 5 46 307200
325510964 krishan_ydv992 A June 22, 2025, 5:40 a.m. OK Python 3 TESTS 5 61 307200
325497155 eugalt A June 22, 2025, 1:43 a.m. OK Python 3 TESTS 5 61 307200
325472437 TonyGX A June 21, 2025, 4:12 p.m. OK Python 3 TESTS 5 61 307200
325479550 Sutirtha_Jana A June 21, 2025, 4:30 p.m. OK Python 3 TESTS 5 61 409600
325496955 eugalt A June 22, 2025, 1:30 a.m. OK Python 3 TESTS 5 62 0
325478406 CruizerDz A June 21, 2025, 4:28 p.m. OK Python 3 TESTS 5 62 0
325480957 aether_Sovereign A June 21, 2025, 4:33 p.m. OK Python 3 TESTS 5 62 102400
325507543 NAVDEEP009 A June 22, 2025, 4:51 a.m. OK Python 3 TESTS 5 62 204800
325506469 svrmalaviya A June 22, 2025, 4:34 a.m. OK Python 3 TESTS 5 62 204800
325480050 XORcist010 A June 21, 2025, 4:31 p.m. OK Rust 2021 TESTS 5 46 0
325478455 blackpanther_7 A June 21, 2025, 4:28 p.m. OK Rust 2021 TESTS 5 46 0
325472461 NagisaF A June 21, 2025, 4:12 p.m. OK Rust 2021 TESTS 5 46 0
325490400 0x81 A June 21, 2025, 5:52 p.m. OK Rust 2021 TESTS 5 61 102400
325471628 DreadedHippy A June 21, 2025, 4:10 p.m. OK Rust 2021 TESTS 5 61 102400
325486727 Antumbra01 A June 21, 2025, 5:25 p.m. OK Rust 2021 TESTS 5 62 102400
325478616 Cyros A June 21, 2025, 4:28 p.m. OK Scala TESTS 5 593 614400

remove filters

Back to search problems