Codeforces Round 952 (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
1985 Codeforces Round 952 (Div. 4) FINISHED False 9000 19063463 June 11, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 48217 ) B Maximum Multiple Sum PROGRAMMING brute force math

B'Given an integer n , find an integer x such that: The first line contains t ( 1 <= q t <= q 100 ) -- the number of test cases. Each test case contains a single integer n ( 2 <= q n <= q 100 ). For each test case, output an integer, the optimal value of x . It can be shown there is only one unique answer. For n = 3 , the possible values of x are 2 and 3 . The sum of all multiples of 2 less than or equal to n is just 2 , and the sum of all multiples of 3 less than or equal to n is 3 . Therefore, 3 is the optimal value of x . For n = 15 , the optimal value of x is 2 . The sum of all multiples of 2 less than or equal to n is 2 + 4 + 6 + 8 + 10 + 12 + 14 = 56 , which can be proven to be the maximal over all other possible values of x . '...

Tutorials

Codeforces Round 952 (Div. 4) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
265404338 Lismar B June 11, 2024, 7:32 p.m. OK C# 10 TESTS 3 77 0
265391425 von2401 B June 11, 2024, 5:39 p.m. OK C++14 (GCC 6-32) TESTS 3 30 0
265437705 Nanduu B June 12, 2024, 4:58 a.m. OK C++14 (GCC 6-32) TESTS 3 30 0
265436813 divyam.20233121 B June 12, 2024, 4:48 a.m. OK C++14 (GCC 6-32) TESTS 3 30 0
265425782 PFChong B June 12, 2024, 2:25 a.m. OK C++14 (GCC 6-32) TESTS 3 30 0
265394878 yash_kumar.ug21 B June 11, 2024, 6 p.m. OK C++14 (GCC 6-32) TESTS 3 30 0
265431265 Arpit.1 B June 12, 2024, 3:40 a.m. OK C++14 (GCC 6-32) TESTS 3 31 0
265437898 arafathq9 B June 12, 2024, 5:01 a.m. OK C++14 (GCC 6-32) TESTS 3 31 0
265437024 HsbinBroken B June 12, 2024, 4:51 a.m. OK C++14 (GCC 6-32) TESTS 3 31 0
265431522 abhi_dada B June 12, 2024, 3:43 a.m. OK C++14 (GCC 6-32) TESTS 3 31 0
265427049 YosefK7aled B June 12, 2024, 2:44 a.m. OK C++14 (GCC 6-32) TESTS 3 31 0
265421383 7KING1JOKER B June 12, 2024, 1:01 a.m. OK C++17 (GCC 7-32) TESTS 3 15 0
265399579 jalalAK47 B June 11, 2024, 6:41 p.m. OK C++17 (GCC 7-32) TESTS 3 15 0
265441207 kartikjoshi267 B June 12, 2024, 5:35 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
265444053 abhishekkumar20 B June 12, 2024, 6:01 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
265442951 adityaslg B June 12, 2024, 5:51 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
265442668 Ritesh05 B June 12, 2024, 5:49 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
265442540 abeo B June 12, 2024, 5:48 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
265441928 problemSolver777 B June 12, 2024, 5:42 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
265441908 Sparkle_Twilight B June 12, 2024, 5:41 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
265441858 supremeashu B June 12, 2024, 5:41 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
265421272 puneet_73 B June 12, 2024, 12:57 a.m. OK C++20 (GCC 13-64) TESTS 3 15 0
265436031 Amar-Erdene B June 12, 2024, 4:38 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
265442067 sarankoushi239 B June 12, 2024, 5:43 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
265441960 NAce B June 12, 2024, 5:42 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
265441445 ariful.noman B June 12, 2024, 5:37 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
265440959 fggg B June 12, 2024, 5:32 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
265438723 Suryansh__885 B June 12, 2024, 5:10 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
265437586 ItsBufu B June 12, 2024, 4:57 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
265436223 fairyduck B June 12, 2024, 4:41 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
265435216 _fariddun_2012_ B June 12, 2024, 4:29 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
265415471 bluemegane B June 11, 2024, 10:26 p.m. OK C# 8 TESTS 3 109 0
265433404 vidyanand__patil B June 12, 2024, 4:07 a.m. OK GNU C11 TESTS 3 30 0
265396243 Maiesa B June 11, 2024, 6:10 p.m. OK GNU C11 TESTS 3 31 0
265403927 Adityas_231000004 B June 11, 2024, 7:28 p.m. OK GNU C11 TESTS 3 31 0
265404154 kushina__ B June 11, 2024, 7:30 p.m. OK GNU C11 TESTS 3 31 0
265432461 BEE1419 B June 12, 2024, 3:56 a.m. OK GNU C11 TESTS 3 46 0
265398163 NightWING2435 B June 11, 2024, 6:27 p.m. OK GNU C11 TESTS 3 46 102400
265417026 crapcode B June 11, 2024, 11:07 p.m. OK Go TESTS 3 46 0
265434712 xylu B June 12, 2024, 4:23 a.m. OK Go TESTS 3 46 0
265395284 XxD4rkV0id B June 11, 2024, 6:03 p.m. OK Go TESTS 3 61 0
265413122 1936557 B June 11, 2024, 9:32 p.m. OK Haskell TESTS 3 61 0
265414771 dznz B June 11, 2024, 10:08 p.m. OK Java 21 TESTS 3 155 0
265403746 vikash_45 B June 11, 2024, 7:26 p.m. OK Java 21 TESTS 3 171 0
265425903 Freedom_lifelong B June 12, 2024, 2:27 a.m. OK Java 21 TESTS 3 171 204800
265414085 Eslam_Ahmed B June 11, 2024, 9:52 p.m. OK Java 21 TESTS 3 171 512000
265413169 santanu2414 B June 11, 2024, 9:33 p.m. OK Java 21 TESTS 3 187 0
265392017 Adil_Khan_ B June 11, 2024, 5:44 p.m. OK Java 21 TESTS 3 187 0
265410735 RishiCodes B June 11, 2024, 8:50 p.m. OK Java 21 TESTS 3 187 614400
265394877 Required B June 11, 2024, 6 p.m. OK Java 21 TESTS 3 202 0
265391864 kartik308 B June 11, 2024, 5:42 p.m. OK Java 21 TESTS 3 202 0
265427828 IrhamMA B June 12, 2024, 2:54 a.m. OK Java 21 TESTS 3 202 102400
265436399 coderman2004 B June 12, 2024, 4:43 a.m. OK Java 8 TESTS 3 108 0
265402906 TheCoder12345324 B June 11, 2024, 7:16 p.m. OK Java 8 TESTS 3 124 0
265397209 Sarthak_Kharka B June 11, 2024, 6:18 p.m. OK Java 8 TESTS 3 124 0
265438199 p_r_a_k_h_a_r B June 12, 2024, 5:04 a.m. OK Java 8 TESTS 3 124 15974400
265421176 ankushtyagi B June 12, 2024, 12:55 a.m. OK Java 8 TESTS 3 140 0
265420386 Aditya_Mohan_Gupta B June 12, 2024, 12:37 a.m. OK Java 8 TESTS 3 140 0
265407805 Isha_Chauhan001 B June 11, 2024, 8:13 p.m. OK Java 8 TESTS 3 140 0
265398839 arpitachauhan4182 B June 11, 2024, 6:33 p.m. OK Java 8 TESTS 3 140 0
265397855 2manas1 B June 11, 2024, 6:24 p.m. OK Java 8 TESTS 3 140 0
265395404 prashant_pathak_01 B June 11, 2024, 6:04 p.m. OK Java 8 TESTS 3 140 0
265421233 gouravasdeo11 B June 12, 2024, 12:56 a.m. OK Kotlin 1.9 TESTS 3 140 0
265401836 cryptickid91 B June 11, 2024, 7:04 p.m. OK Node.js TESTS 3 139 102400
265396608 aditya.pusalkar B June 11, 2024, 6:13 p.m. OK PyPy 3 TESTS 3 77 0
265406282 boehmer6669 B June 11, 2024, 7:55 p.m. OK PyPy 3 TESTS 3 77 102400
265395930 mohd_fariq B June 11, 2024, 6:08 p.m. OK PyPy 3 TESTS 3 77 1433600
265396983 MDSPro B June 11, 2024, 6:16 p.m. OK PyPy 3 TESTS 3 77 1536000
265431769 Mr_Indian B June 12, 2024, 3:46 a.m. OK PyPy 3 TESTS 3 78 0
265403688 DAGGERWRATH B June 11, 2024, 7:25 p.m. OK PyPy 3 TESTS 3 78 0
265432834 Madhav_08 B June 12, 2024, 4 a.m. OK PyPy 3 TESTS 3 78 1331200
265437298 _justSam_ B June 12, 2024, 4:54 a.m. OK PyPy 3 TESTS 3 93 102400
265425433 itzdenkivn B June 12, 2024, 2:20 a.m. OK PyPy 3 TESTS 3 93 1331200
265400995 perfect_dash B June 11, 2024, 6:56 p.m. OK PyPy 3 TESTS 3 93 1433600
265392031 rockprogramming B June 11, 2024, 5:44 p.m. OK PyPy 3-64 TESTS 3 46 0
265404751 shrudex B June 11, 2024, 7:37 p.m. OK PyPy 3-64 TESTS 3 61 0
265443658 wyzkeyy B June 12, 2024, 5:58 a.m. OK PyPy 3-64 TESTS 3 62 0
265442712 pspvr B June 12, 2024, 5:49 a.m. OK PyPy 3-64 TESTS 3 62 0
265440525 Guzal B June 12, 2024, 5:28 a.m. OK PyPy 3-64 TESTS 3 62 0
265440280 temp_rkp B June 12, 2024, 5:26 a.m. OK PyPy 3-64 TESTS 3 62 0
265439743 Paras2856 B June 12, 2024, 5:21 a.m. OK PyPy 3-64 TESTS 3 62 0
265434045 Diksha_goyal B June 12, 2024, 4:15 a.m. OK PyPy 3-64 TESTS 3 62 0
265414118 El-Zamly B June 11, 2024, 9:53 p.m. OK PyPy 3-64 TESTS 3 62 0
265409066 rmr B June 11, 2024, 8:25 p.m. OK PyPy 3-64 TESTS 3 62 0
265413608 CaffeineCompiler B June 11, 2024, 9:42 p.m. OK Python 3 TESTS 3 46 0
265412941 yeasirar B June 11, 2024, 9:29 p.m. OK Python 3 TESTS 3 46 0
265398031 _AM B June 11, 2024, 6:26 p.m. OK Python 3 TESTS 3 46 0
265437741 kirtiabhinav00 B June 12, 2024, 4:59 a.m. OK Python 3 TESTS 3 61 0
265426332 yagnesh2004 B June 12, 2024, 2:34 a.m. OK Python 3 TESTS 3 61 0
265402552 vjudge.10 B June 11, 2024, 7:12 p.m. OK Python 3 TESTS 3 61 0
265401640 Ayu77 B June 11, 2024, 7:02 p.m. OK Python 3 TESTS 3 61 0
265396846 coder.sy B June 11, 2024, 6:15 p.m. OK Python 3 TESTS 3 61 0
265395342 lollasrichandra9 B June 11, 2024, 6:03 p.m. OK Python 3 TESTS 3 61 0
265408741 Pheww_coder B June 11, 2024, 8:21 p.m. OK Python 3 TESTS 3 61 1024000
265418494 DreadedHippy B June 11, 2024, 11:47 p.m. OK Rust 2021 TESTS 3 46 0
265437300 10000 B June 12, 2024, 4:54 a.m. OK Rust 2021 TESTS 3 61 0

remove filters

Back to search problems