Codeforces Round 940 (Div. 2) and CodeCraft-23

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
1957 Codeforces Round 940 (Div. 2) and CodeCraft-23 FINISHED False 8100 23469863 April 21, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23809 ) A Stickogon PROGRAMMING constructive algorithms greedy 800

B"You are given n sticks of lengths a_1, a_2, ldots, a_n . Find the maximum number of regular (equal-sided) polygons you can construct simultaneously, such that: Note: Sticks cannot be broken. The first line contains a single integer t ( 1 <= q t <= q 100 ) -- the number of test cases. The first line of each test case contains a single integer n ( 1 <= q n <= q 100 ) -- the number of sticks available. The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= q a_i <= q 100 ) -- the stick lengths. For each test case, output a single integer on a new line -- the maximum number of regular (equal-sided) polygons you can make simultaneously from the sticks available. In the first test case, we only have one stick, hence we can't form any polygon. In the second test case, the two sticks aren't enough to form a polygon either. In the third test case, we can use the 4 sticks of length 3 to create a square. In the fourth test case, we can make a pentagon with side length 2 , and a square of side length 4 . "...

Tutorials

Codeforces Round #940 and CodeCraft-23 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
259447781 Ida. A May 4, 2024, 5:15 a.m. OK C# 10 TESTS 10 77 614400 800
258994002 Devil_from_hell A May 1, 2024, 10:13 a.m. OK C# 10 TESTS 10 93 512000 800
258584352 x1f0cb32d3_ A April 28, 2024, 3:42 p.m. OK C# 10 TESTS 10 108 819200 800
262364171 A1ternate A May 24, 2024, 9:42 a.m. OK C# 10 TESTS 10 108 1024000 800
263296376 justunderdog A May 30, 2024, 2:59 p.m. OK C# 10 TESTS 10 108 1126400 800
258252678 __Amin__ A April 26, 2024, 3:07 p.m. OK C# 10 TESTS 10 109 1024000 800
258954849 luogu_bot2 A May 1, 2024, 2:46 a.m. OK C++14 (GCC 6-32) TESTS 10 31 0 800
263419987 Jigglypuff19 A May 31, 2024, 6:16 a.m. OK C++14 (GCC 6-32) TESTS 10 46 0 800
263405313 empty017 A May 31, 2024, 3:46 a.m. OK C++14 (GCC 6-32) TESTS 10 46 0 800
263214280 Natro111 A May 30, 2024, 8:56 a.m. OK C++14 (GCC 6-32) TESTS 10 46 0 800
263091948 Ghaith_zakaria A May 29, 2024, 5:53 a.m. OK C++14 (GCC 6-32) TESTS 10 46 0 800
263087731 saumyaa_100 A May 29, 2024, 5:03 a.m. OK C++14 (GCC 6-32) TESTS 10 46 0 800
263043010 harshini_ A May 28, 2024, 4:55 p.m. OK C++14 (GCC 6-32) TESTS 10 46 0 800
262692841 Ag153 A May 26, 2024, 11:01 a.m. OK C++14 (GCC 6-32) TESTS 10 46 0 800
262002574 MrGhoost A May 21, 2024, 10:59 a.m. OK C++14 (GCC 6-32) TESTS 10 46 0 800
261933589 Nitter A May 20, 2024, 8:14 p.m. OK C++14 (GCC 6-32) TESTS 10 46 0 800
263695171 CodeAman A June 2, 2024, 3:29 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0 800
258328102 queencateka A April 27, 2024, 5:04 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0 800
263692423 leonardonm15 A June 2, 2024, 2:31 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0 800
263684370 Joigca A June 1, 2024, 10:26 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0 800
263675418 Broken51981 A June 1, 2024, 7:31 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0 800
263672549 Fshca A June 1, 2024, 6:55 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0 800
263651363 Amazed A June 1, 2024, 3:46 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0 800
263591427 ash_pr A June 1, 2024, 7:26 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0 800
263553466 Michal_1 A May 31, 2024, 10:04 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0 800
263433739 ayushniranjansingh A May 31, 2024, 8:04 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0 800
259889137 TechSavvyDev A May 7, 2024, 2:27 p.m. OK C++20 (GCC 13-64) TESTS 10 31 0 800
263663244 Mohammed84Farouk A June 1, 2024, 5:24 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0 800
263409949 Shadow_man1 A May 31, 2024, 4:41 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0 800
263261833 Phineas_2022 A May 30, 2024, 2:16 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0 800
263178806 lelouchlamperouge336 A May 29, 2024, 7:32 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0 800
263168193 Mdontor A May 29, 2024, 4:31 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0 800
263162508 _iamavikr09 A May 29, 2024, 3:27 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0 800
263161613 Amirkhan_Zakirov A May 29, 2024, 3:20 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0 800
263154187 15632898455 A May 29, 2024, 2:14 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0 800
263092076 nayanrathore A May 29, 2024, 5:55 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0 800
261973825 Alexanderter10 A May 21, 2024, 7:07 a.m. OK FPC TESTS 10 62 0 800
259015094 bestelsuvn A May 1, 2024, 1:54 p.m. OK FPC TESTS 10 62 0 800
259897117 srivastavaprakhar7727 A May 7, 2024, 3:35 p.m. OK GNU C11 TESTS 10 31 0 800
259755793 AnhTu_35 A May 6, 2024, 1:21 p.m. OK GNU C11 TESTS 10 31 102400 800
259506839 01217 A May 4, 2024, 12:21 p.m. OK GNU C11 TESTS 10 31 102400 800
259414640 amit220230 A May 3, 2024, 8:08 p.m. OK GNU C11 TESTS 10 31 102400 800
262808435 mohamed_M_hassan A May 26, 2024, 11:37 p.m. OK GNU C11 TESTS 10 46 0 800
260575188 mohammadyamin A May 11, 2024, 6:44 p.m. OK GNU C11 TESTS 10 46 0 800
259946170 -A1ZEN- A May 8, 2024, 4:04 a.m. OK GNU C11 TESTS 10 46 0 800
258299374 wyv-75 A April 27, 2024, 12:18 a.m. OK GNU C11 TESTS 10 46 0 800
262625739 faswa11 A May 25, 2024, 9:05 p.m. OK GNU C11 TESTS 10 46 102400 800
262331206 AbNv069 A May 24, 2024, 4:06 a.m. OK GNU C11 TESTS 10 46 102400 800
258646318 nguyenquocthao00 A April 29, 2024, 6:33 a.m. OK Go TESTS 10 46 819200 800
261230064 PepRe A May 16, 2024, 4:54 p.m. OK Go TESTS 10 62 716800 800
261163229 nguyenquocthao00 A May 16, 2024, 8:10 a.m. OK Go TESTS 10 62 921600 800
262676839 Lzww A May 26, 2024, 8:51 a.m. OK Go TESTS 10 77 614400 800
259002065 Naoki_M A May 1, 2024, 11:43 a.m. OK Haskell TESTS 10 46 1024000 800
258296304 gog_mazai A April 26, 2024, 10:43 p.m. OK Haskell TESTS 10 77 0 800
260208997 vgoofficial A May 10, 2024, 5:58 a.m. OK Java 21 TESTS 10 218 716800 800
258314932 Hang_We_Hong A April 27, 2024, 3:20 a.m. OK Java 21 TESTS 10 218 716800 800
258530532 gaju_01 A April 28, 2024, 7:47 a.m. OK Java 21 TESTS 10 218 1228800 800
259898284 neralkattesanket A May 7, 2024, 3:44 p.m. OK Java 21 TESTS 10 233 614400 800
259678926 AhmedRagy A May 5, 2024, 8:20 p.m. OK Java 21 TESTS 10 234 1536000 800
258508404 MARSHALMATHERS A April 28, 2024, 3:40 a.m. OK Java 21 TESTS 10 234 41779200 800
258299703 ankcrimson A April 27, 2024, 12:29 a.m. OK Java 21 TESTS 10 249 0 800
260845959 shilov A May 13, 2024, 6:48 p.m. OK Java 21 TESTS 10 249 409600 800
258510702 singlapriyanka013 A April 28, 2024, 4:26 a.m. OK Java 21 TESTS 10 249 716800 800
260088802 QianCCC A May 9, 2024, 8 a.m. OK Java 21 TESTS 10 249 819200 800
259432800 _happiness_ A May 4, 2024, 1:03 a.m. OK Java 8 TESTS 10 124 0 800
258182559 iam_ljk A April 26, 2024, 4:27 a.m. OK Java 8 TESTS 10 124 0 800
260259964 Blue_BEE A May 10, 2024, 2:07 p.m. OK Java 8 TESTS 10 140 0 800
258664891 nithin_bharathi A April 29, 2024, 9:50 a.m. OK Java 8 TESTS 10 140 0 800
258210677 Nagendravarma A April 26, 2024, 9:52 a.m. OK Java 8 TESTS 10 140 0 800
262670715 tittiesboy99 A May 26, 2024, 8:04 a.m. OK Java 8 TESTS 10 155 0 800
259016252 sduMamytbekov A May 1, 2024, 2:05 p.m. OK Java 8 TESTS 10 155 0 800
258234908 Hope_Y A April 26, 2024, 1:12 p.m. OK Java 8 TESTS 10 155 0 800
262897716 Farouk-Ashraf A May 27, 2024, 2:51 p.m. OK Java 8 TESTS 10 156 0 800
261576385 2210040084_vamshi A May 18, 2024, 7:55 p.m. OK Java 8 TESTS 10 156 0 800
259695928 lhz960904 A May 6, 2024, 1:38 a.m. OK JavaScript TESTS 10 78 2457600 800
258303434 borainc A April 27, 2024, 1:57 a.m. OK Kotlin 1.7 TESTS 10 328 6656000 800
263683918 Kay0 A June 1, 2024, 10:14 p.m. OK Kotlin 1.9 TESTS 10 155 307200 800
259715563 is-that-kt A May 6, 2024, 7:24 a.m. OK Kotlin 1.9 TESTS 10 156 1126400 800
259696315 gouravasdeo11 A May 6, 2024, 1:49 a.m. OK Kotlin 1.9 TESTS 10 171 0 800
259091472 XiangLun A May 2, 2024, 6:58 a.m. OK Kotlin 1.9 TESTS 10 187 204800 800
259696184 gouravasdeo11 A May 6, 2024, 1:45 a.m. OK Kotlin 1.9 TESTS 10 187 1024000 800
262810605 karam.saleh333 A May 27, 2024, 12:42 a.m. OK PHP TESTS 10 77 0 800
262810548 karam.saleh333 A May 27, 2024, 12:41 a.m. OK PHP TESTS 10 77 0 800
262810663 karam.saleh333 A May 27, 2024, 12:44 a.m. OK PHP TESTS 10 77 102400 800
258980833 Kevin8502 A May 1, 2024, 7:55 a.m. OK PHP TESTS 10 77 102400 800
258274384 MarcoReusKross A April 26, 2024, 5:58 p.m. OK PyPy 3 TESTS 10 108 1638400 800
258770480 pukpukpon A April 29, 2024, 5:06 p.m. OK PyPy 3 TESTS 10 109 1536000 800
258253185 Alexithy A April 26, 2024, 3:10 p.m. OK PyPy 3 TESTS 10 124 1536000 800
262486133 klu-2100030642 A May 25, 2024, 9:11 a.m. OK PyPy 3 TESTS 10 124 1843200 800
258206306 thenima A April 26, 2024, 9:09 a.m. OK PyPy 3 TESTS 10 124 1843200 800
258264351 jvhaa A April 26, 2024, 4:35 p.m. OK PyPy 3 TESTS 10 124 1945600 800
260437060 mahnameisayush A May 10, 2024, 5:55 p.m. OK PyPy 3 TESTS 10 124 2048000 800
259946273 JiaoXingK A May 8, 2024, 4:06 a.m. OK PyPy 3 TESTS 10 124 2048000 800
259596992 Prok2027 A May 5, 2024, 7:20 a.m. OK PyPy 3 TESTS 10 124 2048000 800
258408298 tan_delhi A April 27, 2024, 1:03 p.m. OK PyPy 3 TESTS 10 124 2048000 800
261927267 anderjus A May 20, 2024, 7:04 p.m. OK PyPy 3-64 TESTS 10 77 1536000 800
259590947 Youarenotgood A May 5, 2024, 6:21 a.m. OK PyPy 3-64 TESTS 10 77 1536000 800
259518139 zahid147 A May 4, 2024, 2:05 p.m. OK PyPy 3-64 TESTS 10 77 1536000 800
258332660 Prasham A April 27, 2024, 5:59 a.m. OK PyPy 3-64 TESTS 10 77 1536000 800
259365781 siddhuviratkota A May 3, 2024, 1:46 p.m. OK PyPy 3-64 TESTS 10 78 1536000 800
259253900 squishybanana04 A May 2, 2024, 5:35 p.m. OK PyPy 3-64 TESTS 10 78 1536000 800
258951742 trofimichael A May 1, 2024, 1:44 a.m. OK PyPy 3-64 TESTS 10 78 1536000 800
258508317 ytz123 A April 28, 2024, 3:38 a.m. OK PyPy 3-64 TESTS 10 78 1536000 800
258276907 BhavikG A April 26, 2024, 6:19 p.m. OK PyPy 3-64 TESTS 10 78 1536000 800
258182980 Remineva A April 26, 2024, 4:34 a.m. OK PyPy 3-64 TESTS 10 78 1740800 800
263014659 Massenet A May 28, 2024, 1:05 p.m. OK Python 3 TESTS 10 61 0 800
261763809 vatsaltrivedi509 A May 20, 2024, 10:31 a.m. OK Python 3 TESTS 10 61 0 800
258977992 Alex_Maxzalov A May 1, 2024, 7:28 a.m. OK Python 3 TESTS 10 61 0 800
258408061 lisuex A April 27, 2024, 1:01 p.m. OK Python 3 TESTS 10 61 0 800
263628791 barghav A June 1, 2024, 12:27 p.m. OK Python 3 TESTS 10 62 0 800
263399996 hx199411 A May 31, 2024, 2:27 a.m. OK Python 3 TESTS 10 62 0 800
263127768 Swarnendu123 A May 29, 2024, 10:45 a.m. OK Python 3 TESTS 10 62 0 800
262520470 vamshi6468 A May 25, 2024, 2:29 p.m. OK Python 3 TESTS 10 62 0 800
262331524 Baki_19 A May 24, 2024, 4:11 a.m. OK Python 3 TESTS 10 62 0 800
261631144 AngryBiceps A May 19, 2024, 9:25 a.m. OK Python 3 TESTS 10 62 0 800
259579353 0x81 A May 5, 2024, 3:37 a.m. OK Ruby 3 TESTS 10 311 1331200 800
259681796 OneSadKid A May 5, 2024, 9:07 p.m. OK Rust 2021 TESTS 10 46 0 800
258301889 zSuper A April 27, 2024, 1:25 a.m. OK Rust 2021 TESTS 10 46 102400 800
262454855 NNxe A May 25, 2024, 3:59 a.m. OK Rust 2021 TESTS 10 61 0 800
259707511 cck111 A May 6, 2024, 5:42 a.m. OK Rust 2021 TESTS 10 61 0 800
259424885 mroik A May 3, 2024, 9:41 p.m. OK Rust 2021 TESTS 10 61 0 800
258911035 abdessamad.anssem A April 30, 2024, 4:21 p.m. OK Rust 2021 TESTS 10 61 0 800
262454738 NNxe A May 25, 2024, 3:57 a.m. OK Rust 2021 TESTS 10 62 0 800
261491315 Qumeric A May 18, 2024, 8:33 a.m. OK Rust 2021 TESTS 10 62 0 800
260068643 BetterThanNobita A May 9, 2024, 4:24 a.m. OK Rust 2021 TESTS 10 62 0 800
258272489 RED_INSIDE A April 26, 2024, 5:43 p.m. OK Rust 2021 TESTS 10 62 0 800

remove filters

Back to search problems