Codeforces Round 1062 (Div. 4)

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
2167 Codeforces Round 1062 (Div. 4) FINISHED False 8100 14743523 Oct. 28, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 57583 ) A Square? PROGRAMMING math

You are given (4) sticks of lengths (a), (b), (c), and (d). You can not break or bend them. Determine whether it is possible to form a square(^{\text{∗}}) using the given sticks. (^{\text{∗}})A square is defined as a polygon consisting of (4) vertices, of which all sides have equal length and all inner angles are equal. No two edges of the polygon may intersect each other. The first line contains a single integer (t) ((1 \le t \le 10^4)) — the number of test cases. The only line of each test case contains four integers (a), (b), (c), and (d) ((1 \le a, b, c, d \le 10)) — the lengths of the sticks. For each test case, print " YES " if it is possible to form a square using the given sticks, and " NO " otherwise. You may print each letter in any case (uppercase or lowercase). For example, the strings " yEs ", " yes ", " Yes ", and " YES " will all be recognized as a positive answer. In the first test case, we can prove that we can't make a square. In the second, third, and sixth test cases, we can make a square like this:

Tutorials

Arpa Video Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
346561270 Fate_O A Oct. 30, 2025, 3:59 a.m. OK C# 13 TESTS 2 93 1843200
346560843 Hox_D_Aswin A Oct. 30, 2025, 3:54 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0
346556612 vedistaan A Oct. 30, 2025, 3:02 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0
346553320 is-this-Minio A Oct. 30, 2025, 2:30 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0
346547456 AKAeclipse A Oct. 30, 2025, 1:09 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0
346545755 Mayank_111 A Oct. 30, 2025, 12:36 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0
346533420 belgarde A Oct. 29, 2025, 8:34 p.m. OK C++17 (GCC 7-32) TESTS 2 30 0
346514416 adii__17 A Oct. 29, 2025, 5:54 p.m. OK C++17 (GCC 7-32) TESTS 2 30 0
346490193 Abo_M7md_Alsl7di A Oct. 29, 2025, 3:39 p.m. OK C++17 (GCC 7-32) TESTS 2 30 0
346399070 lntanh11.hcm A Oct. 29, 2025, 2:10 a.m. OK C++17 (GCC 7-32) TESTS 2 30 0
346488312 Hien A Oct. 29, 2025, 3:28 p.m. OK C++17 (GCC 7-32) TESTS 2 30 0
346548105 pyoro A Oct. 30, 2025, 1:22 a.m. OK C++20 (GCC 13-64) TESTS 2 15 0
346520863 harshrajrani717 A Oct. 29, 2025, 6:36 p.m. OK C++20 (GCC 13-64) TESTS 2 15 0
346414607 x_yeyue A Oct. 29, 2025, 5:36 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0
346572029 _Shir0_ A Oct. 30, 2025, 5:44 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0
346568710 ukoyotu A Oct. 30, 2025, 5:11 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0
346565487 ylb_Ac2003 A Oct. 30, 2025, 4:36 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0
346562296 cpverse A Oct. 30, 2025, 4:12 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0
346493762 AdnanChy1 A Oct. 29, 2025, 4 p.m. OK C++20 (GCC 13-64) TESTS 2 30 0
346485850 chester_king A Oct. 29, 2025, 3:14 p.m. OK C++20 (GCC 13-64) TESTS 2 30 0
346413631 abhi4418 A Oct. 29, 2025, 5:26 a.m. OK C++20 (GCC 13-64) TESTS 2 30 0
346409450 hzzt_2004 A Oct. 29, 2025, 4:38 a.m. OK C++23 (GCC 14-64, msys2) TESTS 2 15 0
346494511 vivekjd_9 A Oct. 29, 2025, 4:04 p.m. OK C++23 (GCC 14-64, msys2) TESTS 2 15 0
346409813 Abhi6645 A Oct. 29, 2025, 4:43 a.m. OK C++23 (GCC 14-64, msys2) TESTS 2 15 0
346396338 Proof_by_QED A Oct. 29, 2025, 1:12 a.m. OK C++23 (GCC 14-64, msys2) TESTS 2 15 0
346569592 LingKerly A Oct. 30, 2025, 5:20 a.m. OK C++23 (GCC 14-64, msys2) TESTS 2 30 0
346557044 ov0 A Oct. 30, 2025, 3:08 a.m. OK C++23 (GCC 14-64, msys2) TESTS 2 30 0
346556163 Ethylene_ A Oct. 30, 2025, 2:57 a.m. OK C++23 (GCC 14-64, msys2) TESTS 2 30 0
346538543 Tech_Explorer A Oct. 29, 2025, 9:54 p.m. OK C++23 (GCC 14-64, msys2) TESTS 2 30 0
346535072 countless A Oct. 29, 2025, 8:55 p.m. OK C++23 (GCC 14-64, msys2) TESTS 2 30 0
346527119 Mo3tasim_Awadh A Oct. 29, 2025, 7:30 p.m. OK C++23 (GCC 14-64, msys2) TESTS 2 30 0
346569512 Taj025 A Oct. 30, 2025, 5:19 a.m. OK C# 8 TESTS 2 140 2969600
346546738 leledawang A Oct. 30, 2025, 12:56 a.m. OK GNU C11 TESTS 2 46 0
346560515 md_faruk08 A Oct. 30, 2025, 3:50 a.m. OK GNU C11 TESTS 2 46 0
346512353 soumyaburdwan9 A Oct. 29, 2025, 5:42 p.m. OK GNU C11 TESTS 2 46 0
346501723 Mihirp02 A Oct. 29, 2025, 4:46 p.m. OK GNU C11 TESTS 2 46 102400
346400547 kavyay15 A Oct. 29, 2025, 2:33 a.m. OK GNU C11 TESTS 2 46 102400
346381227 Papiba A Oct. 28, 2025, 8:29 p.m. OK GNU C11 TESTS 2 61 0
346410755 _o_m_ A Oct. 29, 2025, 4:56 a.m. OK GNU C11 TESTS 2 61 102400
346560016 Doaibu123 A Oct. 30, 2025, 3:43 a.m. OK GNU C11 TESTS 2 61 102400
346546524 subzero_09 A Oct. 30, 2025, 12:52 a.m. OK GNU C11 TESTS 2 61 102400
346401317 Ghostarmy2006 A Oct. 29, 2025, 2:46 a.m. OK GNU C11 TESTS 2 61 102400
346487247 abdullahelshebrawy A Oct. 29, 2025, 3:22 p.m. OK Go TESTS 2 77 307200
346509362 J_Hossain A Oct. 29, 2025, 5:24 p.m. OK Go TESTS 2 109 819200
346488816 SigVist A Oct. 29, 2025, 3:31 p.m. OK Go TESTS 2 140 409600
346515234 DeymosX A Oct. 29, 2025, 5:59 p.m. OK Go TESTS 2 171 921600
346393294 Jhonnata_011 A Oct. 28, 2025, 11:46 p.m. OK Java 21 TESTS 2 202 0
346408125 sathwikhbhat A Oct. 29, 2025, 4:21 a.m. OK Java 21 TESTS 2 202 409600
346397223 ccj123 A Oct. 29, 2025, 1:31 a.m. OK Java 21 TESTS 2 202 1945600
346411652 dineshdcoc A Oct. 29, 2025, 5:05 a.m. OK Java 21 TESTS 2 218 0
346517619 bommavarshini A Oct. 29, 2025, 6:14 p.m. OK Java 21 TESTS 2 218 204800
346535981 vineetiwari A Oct. 29, 2025, 9:09 p.m. OK Java 21 TESTS 2 218 716800
346500398 vaish_reddy A Oct. 29, 2025, 4:39 p.m. OK Java 21 TESTS 2 218 819200
346518911 buddy_iam A Oct. 29, 2025, 6:23 p.m. OK Java 21 TESTS 2 233 0
346498604 shivansh_123 A Oct. 29, 2025, 4:28 p.m. OK Java 21 TESTS 2 233 0
346383879 sallatejaswi A Oct. 28, 2025, 9:07 p.m. OK Java 21 TESTS 2 234 409600
346529368 sarthaKKharKa_18 A Oct. 29, 2025, 7:52 p.m. OK Java 8 TESTS 2 124 0
346405085 kartikdhande772 A Oct. 29, 2025, 3:42 a.m. OK Java 8 TESTS 2 124 0
346388254 leonlian A Oct. 28, 2025, 10 p.m. OK Java 8 TESTS 2 124 0
346413948 lupunish A Oct. 29, 2025, 5:29 a.m. OK Java 8 TESTS 2 155 0
346498640 ravalika_g_123 A Oct. 29, 2025, 4:28 p.m. OK Java 8 TESTS 2 202 0
346409473 shivangi05 A Oct. 29, 2025, 4:39 a.m. OK Java 8 TESTS 2 202 0
346532663 nihams A Oct. 29, 2025, 8:25 p.m. OK Java 8 TESTS 2 203 0
346401699 SriLalitha.Y A Oct. 29, 2025, 2:51 a.m. OK Java 8 TESTS 2 203 0
346559371 zihanliu A Oct. 30, 2025, 3:36 a.m. OK Java 8 TESTS 2 217 0
346508954 akshita_0802 A Oct. 29, 2025, 5:22 p.m. OK Java 8 TESTS 2 217 0
346509316 lak_sree A Oct. 29, 2025, 5:24 p.m. OK JavaScript TESTS 2 93 1433600
346408164 greenchutney A Oct. 29, 2025, 4:22 a.m. OK Kotlin 1.9 TESTS 2 203 102400
346526899 VaHiX A Oct. 29, 2025, 7:28 p.m. OK Kotlin 2.2 TESTS 2 218 0
346384946 AhMeD_El-MaLkY A Oct. 28, 2025, 9:26 p.m. OK Kotlin 2.2 TESTS 2 234 0
346526861 VaHiX A Oct. 29, 2025, 7:28 p.m. OK Mono C# TESTS 2 93 1740800
346561184 fazil143 A Oct. 30, 2025, 3:58 a.m. OK Node.js TESTS 2 202 5632000
346523769 mosaab20111 A Oct. 29, 2025, 6:59 p.m. OK Perl TESTS 2 61 0
346486807 Georgy_Hryashev A Oct. 29, 2025, 3:19 p.m. OK PyPy 3 TESTS 2 187 4505600
346400047 makimakimakki A Oct. 29, 2025, 2:27 a.m. OK PyPy 3 TESTS 2 187 4915200
346382471 Msaz A Oct. 28, 2025, 8:46 p.m. OK PyPy 3 TESTS 2 217 4915200
346486082 kuanc A Oct. 29, 2025, 3:15 p.m. OK PyPy 3 TESTS 2 217 6144000
346550606 Presi028 A Oct. 30, 2025, 2:06 a.m. OK PyPy 3 TESTS 2 218 3481600
346406536 tanthreex A Oct. 29, 2025, 4 a.m. OK PyPy 3 TESTS 2 218 5120000
346520204 Georgy_Hryashev A Oct. 29, 2025, 6:31 p.m. OK PyPy 3 TESTS 2 249 4505600
346530175 bkdn25.Rainy A Oct. 29, 2025, 8 p.m. OK PyPy 3 TESTS 2 249 5222400
346501195 PhanindraNVN A Oct. 29, 2025, 4:43 p.m. OK PyPy 3 TESTS 2 265 5017600
346550344 mo-hit A Oct. 30, 2025, 2:02 a.m. OK PyPy 3 TESTS 2 280 6144000
346394001 rank007 A Oct. 29, 2025, 12:08 a.m. OK PyPy 3-64 TESTS 2 62 3788800
346380908 lenochek A Oct. 28, 2025, 8:25 p.m. OK PyPy 3-64 TESTS 2 77 2662400
346409024 Emikooh A Oct. 29, 2025, 4:33 a.m. OK PyPy 3-64 TESTS 2 77 3993600
346411363 Sumeet_Sharma_01 A Oct. 29, 2025, 5:02 a.m. OK PyPy 3-64 TESTS 2 77 5632000
346509947 fluca A Oct. 29, 2025, 5:28 p.m. OK PyPy 3-64 TESTS 2 78 3072000
346554632 newwares A Oct. 30, 2025, 2:42 a.m. OK PyPy 3-64 TESTS 2 78 3174400
346527982 elhookshtripledooksh A Oct. 29, 2025, 7:38 p.m. OK PyPy 3-64 TESTS 2 92 4710400
346526813 VaHiX A Oct. 29, 2025, 7:27 p.m. OK PyPy 3-64 TESTS 2 93 1536000
346521686 jvatsal0709 A Oct. 29, 2025, 6:42 p.m. OK PyPy 3-64 TESTS 2 93 2560000
346488119 pusheen_1024 A Oct. 29, 2025, 3:27 p.m. OK PyPy 3-64 TESTS 2 93 3072000
346555226 ranjithkumar5807 A Oct. 30, 2025, 2:48 a.m. OK Python 2 TESTS 2 93 0
346405086 tekka_ity A Oct. 29, 2025, 3:42 a.m. OK Python 3 TESTS 2 46 102400
346382093 lenochek A Oct. 28, 2025, 8:41 p.m. OK Python 3 TESTS 2 46 409600
346380321 tionchi A Oct. 28, 2025, 8:19 p.m. OK Python 3 TESTS 2 61 204800
346382714 lenochek A Oct. 28, 2025, 8:49 p.m. OK Python 3 TESTS 2 61 614400
346564755 dr_drunkenstein22 A Oct. 30, 2025, 4:28 a.m. OK Python 3 TESTS 2 61 1638400
346528312 ctrl--akshit A Oct. 29, 2025, 7:41 p.m. OK Python 3 TESTS 2 62 0
346518382 Weihang_123 A Oct. 29, 2025, 6:20 p.m. OK Python 3 TESTS 2 62 0
346380794 lenochek A Oct. 28, 2025, 8:24 p.m. OK Python 3 TESTS 2 62 204800
346382212 lenochek A Oct. 28, 2025, 8:42 p.m. OK Python 3 TESTS 2 62 307200
346382133 lenochek A Oct. 28, 2025, 8:41 p.m. OK Python 3 TESTS 2 62 307200
346566108 Truestman A Oct. 30, 2025, 4:43 a.m. OK Ruby 3 TESTS 2 280 512000
346391470 YhuanDebeste A Oct. 28, 2025, 10:46 p.m. OK Ruby 3 TESTS 2 296 614400
346540641 superLazyProgrammer A Oct. 29, 2025, 10:43 p.m. OK Rust 2024 TESTS 2 62 0

remove filters

Back to search problems