CodeTON Round 8 (Div. 1 + Div. 2, Rated, Prizes!)

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
1942 CodeTON Round 8 (Div. 1 + Div. 2, Rated, Prizes!) FINISHED False 10800 25370663 March 30, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11314 ) C1 Bessie's Birthday Cake (Easy Version) PROGRAMMING geometry math

B"This is the easy version of the problem. The only difference between the two versions is the constraint on y . In this version y = 0 . You can make hacks only if both versions are solved. Bessie has received a birthday cake from her best friend Elsie, and it came in the form of a regular polygon with n sides. The vertices of the cake are numbered from 1 to n clockwise. You and Bessie are going to choose some of those vertices to cut non-intersecting diagonals into the cake. In other words, the endpoints of the diagonals must be part of the chosen vertices. Bessie would only like to give out pieces of cake which result in a triangle to keep consistency. The size of the pieces doesn't matter, and the whole cake does not have to be separated into all triangles (other shapes are allowed in the cake, but those will not be counted). Bessie has already chosen x of those vertices that can be used to form diagonals. She wants you to choose no more than y other vertices such that the number of triangular pieces of cake she can give out is maximized. What is the maximum number of triangular pieces of cake Bessie can give out? The first line contains a single integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. The first line of each test case consists of three integers, n , x , and y ( 4 <= q n <= q 10^9 , 2 <= q x <= q min(n, 2 cdot 10^5) , y = 0 ) -- the number of sides of the polygon, number of vertices Bessie has chosen, and the maximum number of other vertices you can choose. The second line consists of x distinct integers from 1 to n , representing the vertices Bessie has chosen. It is guaranteed the sum of x over all test cases does not exceed 2 cdot 10^5 . For each test case, output a single integer: the maximum number of non-intersecting triangular pieces of cake she can give out. In test cases 1 , 2 and 3 , you can ge"...

Tutorials

CodeTON Round 8 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
254228348 yyxcf C1 March 31, 2024, 12:08 a.m. OK C++14 (GCC 6-32) TESTS 15 62 1228800
254196178 Gravity_imposter1804 C1 March 30, 2024, 5:29 p.m. OK C++14 (GCC 6-32) TESTS 15 62 1638400
254197152 jatindulani31 C1 March 30, 2024, 5:32 p.m. OK C++14 (GCC 6-32) TESTS 15 77 819200
254191657 LilBunnyKing C1 March 30, 2024, 5:15 p.m. OK C++14 (GCC 6-32) TESTS 15 77 819200
254190595 Ag153 C1 March 30, 2024, 5:11 p.m. OK C++14 (GCC 6-32) TESTS 15 77 819200
254190497 DrShivam2004 C1 March 30, 2024, 5:11 p.m. OK C++14 (GCC 6-32) TESTS 15 77 819200
254190215 kush122 C1 March 30, 2024, 5:10 p.m. OK C++14 (GCC 6-32) TESTS 15 77 819200
254188784 lapz_ams C1 March 30, 2024, 5:05 p.m. OK C++14 (GCC 6-32) TESTS 15 77 819200
254184798 milosh C1 March 30, 2024, 4:53 p.m. OK C++14 (GCC 6-32) TESTS 15 77 819200
254241443 harshscool955952 C1 March 31, 2024, 4:13 a.m. OK C++14 (GCC 6-32) TESTS 15 77 1638400
254250682 kkkingking C1 March 31, 2024, 6 a.m. OK C++17 (GCC 7-32) TESTS 15 46 1638400
254229242 perlentaucher C1 March 31, 2024, 12:29 a.m. OK C++17 (GCC 7-32) TESTS 15 61 819200
254211797 agnishuddho C1 March 30, 2024, 7:47 p.m. OK C++17 (GCC 7-32) TESTS 15 61 819200
254187387 NotNava C1 March 30, 2024, 5:01 p.m. OK C++17 (GCC 7-32) TESTS 15 61 819200
254250779 neal27 C1 March 31, 2024, 6:01 a.m. OK C++17 (GCC 7-32) TESTS 15 61 1740800
254217040 Boukhaynai C1 March 30, 2024, 8:46 p.m. OK C++17 (GCC 7-32) TESTS 15 61 1740800
254245761 lz_200407 C1 March 31, 2024, 5:12 a.m. OK C++17 (GCC 7-32) TESTS 15 62 819200
254242501 OliverCWY C1 March 31, 2024, 4:29 a.m. OK C++17 (GCC 7-32) TESTS 15 62 819200
254240997 NotFound C1 March 31, 2024, 4:06 a.m. OK C++17 (GCC 7-32) TESTS 15 62 819200
254238282 zc.ovo C1 March 31, 2024, 3:21 a.m. OK C++17 (GCC 7-32) TESTS 15 62 819200
254247402 Dynamic_Pigeon C1 March 31, 2024, 5:29 a.m. OK C++20 (GCC 13-64) TESTS 15 31 819200
254222270 Mousa_Aboubaker C1 March 30, 2024, 9:59 p.m. OK C++20 (GCC 13-64) TESTS 15 31 819200
254192897 GuestForAWhile C1 March 30, 2024, 5:19 p.m. OK C++20 (GCC 13-64) TESTS 15 31 819200
254186379 turbocyborg C1 March 30, 2024, 4:57 p.m. OK C++20 (GCC 13-64) TESTS 15 31 1638400
254229092 Omar__Fawzy C1 March 31, 2024, 12:25 a.m. OK C++20 (GCC 13-64) TESTS 15 31 2764800
254229737 Nahida__ C1 March 31, 2024, 12:39 a.m. OK C++20 (GCC 13-64) TESTS 15 31 4505600
254246119 stdfloat C1 March 31, 2024, 5:15 a.m. OK C++20 (GCC 13-64) TESTS 15 46 819200
254244226 xctsar1 C1 March 31, 2024, 4:53 a.m. OK C++20 (GCC 13-64) TESTS 15 46 819200
254242264 Ras_Vz C1 March 31, 2024, 4:25 a.m. OK C++20 (GCC 13-64) TESTS 15 46 819200
254241261 hdudyx736 C1 March 31, 2024, 4:10 a.m. OK C++20 (GCC 13-64) TESTS 15 46 819200
254205241 ruban C1 March 30, 2024, 6:45 p.m. OK Delphi TESTS 15 233 38707200
254221138 NenadDapic C1 March 30, 2024, 9:42 p.m. OK FPC TESTS 15 93 2560000
254220367 NenadDapic C1 March 30, 2024, 9:30 p.m. OK FPC TESTS 15 108 2560000
254220026 vikash_45 C1 March 30, 2024, 9:25 p.m. OK Java 21 TESTS 15 280 716800
254210181 kbliu C1 March 30, 2024, 7:31 p.m. OK Java 21 TESTS 15 296 1331200
254215057 mangos194 C1 March 30, 2024, 8:23 p.m. OK Java 21 TESTS 15 326 1024000
254239962 priyaroy3370 C1 March 31, 2024, 3:49 a.m. OK Java 21 TESTS 15 327 0
254188861 ramitg254 C1 March 30, 2024, 5:06 p.m. OK Java 21 TESTS 15 342 1228800
254231505 thebrogrammer C1 March 31, 2024, 1:18 a.m. OK Java 21 TESTS 15 343 512000
254246070 dzhi C1 March 31, 2024, 5:15 a.m. OK Java 21 TESTS 15 358 1331200
254234248 lyongwolf C1 March 31, 2024, 2:12 a.m. OK Java 21 TESTS 15 373 409600
254215344 santanu2414 C1 March 30, 2024, 8:26 p.m. OK Java 21 TESTS 15 389 6860800
254186499 Renull C1 March 30, 2024, 4:58 p.m. OK Java 21 TESTS 15 420 4812800
254228812 alibaba C1 March 31, 2024, 12:19 a.m. OK Java 8 TESTS 15 140 4915200
254240184 harrypotter1234hogwarts C1 March 31, 2024, 3:54 a.m. OK Java 8 TESTS 15 171 4915200
254192159 .diplo__mat C1 March 30, 2024, 5:16 p.m. OK Java 8 TESTS 15 202 4915200
254217333 Sumitsingh7 C1 March 30, 2024, 8:49 p.m. OK Java 8 TESTS 15 202 7680000
254216960 Meghnath_IJ C1 March 30, 2024, 8:45 p.m. OK Java 8 TESTS 15 218 7680000
254189635 abhayrajnegi0416 C1 March 30, 2024, 5:08 p.m. OK Java 8 TESTS 15 265 6144000
254186119 sunnysharma5959 C1 March 30, 2024, 4:57 p.m. OK Java 8 TESTS 15 311 16384000
254245232 nis1234 C1 March 31, 2024, 5:06 a.m. OK Java 8 TESTS 15 421 2457600
254241294 KaiboHuang C1 March 31, 2024, 4:11 a.m. OK Java 8 TESTS 15 451 0
254245951 nis1234 C1 March 31, 2024, 5:14 a.m. OK Java 8 TESTS 15 451 3072000
254202105 ahtoh_ C1 March 30, 2024, 6:24 p.m. OK Node.js TESTS 15 186 31334400
254185622 mo-hit C1 March 30, 2024, 4:55 p.m. OK PyPy 3 TESTS 15 311 21811200
254202710 logankeede C1 March 30, 2024, 6:27 p.m. OK PyPy 3 TESTS 15 326 17817600
254204961 bboo_123 C1 March 30, 2024, 6:43 p.m. OK PyPy 3 TESTS 15 436 19148800
254196597 bboo_123 C1 March 30, 2024, 5:30 p.m. OK PyPy 3 TESTS 15 451 19046400
254191962 AyushCodez C1 March 30, 2024, 5:16 p.m. OK PyPy 3 TESTS 15 452 18329600
254212872 bboo_123 C1 March 30, 2024, 7:58 p.m. OK PyPy 3 TESTS 15 546 19046400
254206522 jvatsal0709 C1 March 30, 2024, 6:55 p.m. OK PyPy 3-64 TESTS 15 124 21196800
254224707 NitroSpear C1 March 30, 2024, 10:45 p.m. OK PyPy 3-64 TESTS 15 124 27545600
254219687 MaxValgen_ C1 March 30, 2024, 9:20 p.m. OK PyPy 3-64 TESTS 15 124 30105600
254204948 Teim C1 March 30, 2024, 6:43 p.m. OK PyPy 3-64 TESTS 15 139 27443200
254243888 gardengnome C1 March 31, 2024, 4:49 a.m. OK PyPy 3-64 TESTS 15 139 29081600
254236155 voicon C1 March 31, 2024, 2:45 a.m. OK PyPy 3-64 TESTS 15 139 30105600
254203708 Nullz C1 March 30, 2024, 6:34 p.m. OK PyPy 3-64 TESTS 15 139 30105600
254203506 pratyanch_jain C1 March 30, 2024, 6:33 p.m. OK PyPy 3-64 TESTS 15 139 154419200
254216344 sorcerer_21 C1 March 30, 2024, 8:37 p.m. OK PyPy 3-64 TESTS 15 140 26828800
254184991 Yashraj_Prasad C1 March 30, 2024, 4:53 p.m. OK PyPy 3-64 TESTS 15 140 28467200
254203246 OLOGY C1 March 30, 2024, 6:31 p.m. OK Python 2 TESTS 15 233 13107200
254203289 OLOGY C1 March 30, 2024, 6:31 p.m. OK Python 2 TESTS 15 234 13107200
254187562 prafull904434 C1 March 30, 2024, 5:01 p.m. OK Python 3 TESTS 15 170 28467200
254207637 Ephyg C1 March 30, 2024, 7:05 p.m. OK Python 3 TESTS 15 171 27852800
254184784 gunda_hu_main C1 March 30, 2024, 4:53 p.m. OK Python 3 TESTS 15 171 27852800
254196404 python_tamer C1 March 30, 2024, 5:30 p.m. OK Python 3 TESTS 15 217 27852800
254213971 prathamsibal81 C1 March 30, 2024, 8:10 p.m. OK Python 3 TESTS 15 217 27955200
254219969 daveshub C1 March 30, 2024, 9:24 p.m. OK Python 3 TESTS 15 218 27955200
254187013 XXJJXJ C1 March 30, 2024, 4:59 p.m. OK Python 3 TESTS 15 218 28672000
254194659 Om_Singh_ C1 March 30, 2024, 5:24 p.m. OK Python 3 TESTS 15 218 28774400
254210151 Naikwad27 C1 March 30, 2024, 7:30 p.m. OK Python 3 TESTS 15 233 27852800
254185470 yogendratiwari013 C1 March 30, 2024, 4:55 p.m. OK Python 3 TESTS 15 233 27852800
254184857 Rajveer_100 C1 March 30, 2024, 4:53 p.m. OK Rust 2021 TESTS 15 46 17510400
254189347 riverbl C1 March 30, 2024, 5:07 p.m. OK Rust 2021 TESTS 15 93 6860800

remove filters

Back to search problems