Educational Codeforces Round 194 (Rated for Div. 2)

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
2260 Educational Codeforces Round 194 (Rated for Div. 2) FINISHED False 7200 2388300 Sept. 8, 2026, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 15760 ) B Monocarp and Projects PROGRAMMING math

Monocarp runs a company. Consider the work of his company over the next (k) months. In the first month, the company has (x) employees, not counting Monocarp himself, and (y) projects need to be completed. In each next month, both the number of employees and the number of projects increase by (1). In other words, in month (i) ((0 \le i \lt k)), the company has (x+i) employees and needs to complete (y+i) projects. In each month, Monocarp distributes the projects among the employees. Each employee must receive the same number of projects, and each project can be assigned to at most one employee. Monocarp completes all unassigned projects himself. He always chooses a distribution that makes him complete as few projects as possible. In particular, if in some month there are (a) employees and (b) projects, then Monocarp assigns exactly (\left\lfloor \frac{b}{a} \right\rfloor) projects to each employee, and he completes (b \bmod a) projects himself. Find the total number of projects that Monocarp will complete himself over the next (k) months. The first line contains an integer (t) — the number of test cases ((1 \le t \le 10^4)). Each test case consists of one line containing three integers (x), (y), and (k) ((1 \le x \le y \le 10^6); (1 \le k \le 10^{12})). Additional constraint on the input: the sum of (y) over all test cases does not exceed (10^6). For each test case, output one integer — the total number of projects that Monocarp will complete himself over (k) months. In the first test case, the only employee completes the only project, so Monocarp is left with no projects. In the second test case, in the first month, (10) projects are distributed among (3) employees: each gets (3) projects, and Monocarp completes (1) project. In the second month, (11) projects are distributed among (4) employees: each gets (2) projects, and Monocarp complet

Tutorials

156529

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
390166312 SammoPavilion B Sept. 10, 2026, 5:56 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0
390166085 abhi9av_pandey B Sept. 10, 2026, 5:53 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0
390164344 Sword_saint23 B Sept. 10, 2026, 5:28 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0
390162269 Sahil002 B Sept. 10, 2026, 4:51 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0
390161510 dhaarini1806 B Sept. 10, 2026, 4:37 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0
390161019 NIKHILESHASHWIN B Sept. 10, 2026, 4:28 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0
390160978 SANJAYS1308 B Sept. 10, 2026, 4:27 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0
390157710 zensei B Sept. 10, 2026, 3:26 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0
390153206 Nobita19 B Sept. 10, 2026, 1:23 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0
390135621 pawan_Gautam B Sept. 9, 2026, 6:18 p.m. OK C++17 (GCC 7-32) TESTS 10 31 0
390161029 Lithesh_Kanna B Sept. 10, 2026, 4:28 a.m. OK C++20 (GCC 13-64) TESTS 10 31 0
390160927 Krya_07 B Sept. 10, 2026, 4:26 a.m. OK C++20 (GCC 13-64) TESTS 10 31 0
390157252 Blue_Eyes_White_Dragon B Sept. 10, 2026, 3:16 a.m. OK C++20 (GCC 13-64) TESTS 10 31 0
390140027 sachit_21 B Sept. 9, 2026, 7:09 p.m. OK C++20 (GCC 13-64) TESTS 10 31 0
390131973 milk81 B Sept. 9, 2026, 5:42 p.m. OK C++20 (GCC 13-64) TESTS 10 31 0
390120724 prackerX B Sept. 9, 2026, 4:03 p.m. OK C++20 (GCC 13-64) TESTS 10 31 0
390118611 sadat_islam B Sept. 9, 2026, 3:42 p.m. OK C++20 (GCC 13-64) TESTS 10 31 0
390102661 Random12234dswf B Sept. 9, 2026, 2:40 p.m. OK C++20 (GCC 13-64) TESTS 10 31 0
390094612 GunDone B Sept. 9, 2026, 1:52 p.m. OK C++20 (GCC 13-64) TESTS 10 31 0
390068836 adarshchess B Sept. 9, 2026, 11:43 a.m. OK C++20 (GCC 13-64) TESTS 10 31 0
390166567 Gojo1809 B Sept. 10, 2026, 5:59 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 31 0
390165293 varunsahu_07 B Sept. 10, 2026, 5:41 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 31 0
390165013 Astheticon B Sept. 10, 2026, 5:37 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 31 0
390163209 Koushikram_2007 B Sept. 10, 2026, 5:07 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 31 0
390162987 balapragadeesh B Sept. 10, 2026, 5:04 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 31 0
390162439 ramathatchana_cf B Sept. 10, 2026, 4:54 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 31 0
390162365 STUBT_LH B Sept. 10, 2026, 4:53 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 31 0
390161760 ashokkanakaraj9595 B Sept. 10, 2026, 4:41 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 31 0
390161648 foodotama B Sept. 10, 2026, 4:39 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 31 0
390161588 cs_117 B Sept. 10, 2026, 4:38 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 31 0
390128294 shaurya147 B Sept. 9, 2026, 5:21 p.m. OK GNU C11 TESTS 10 46 102400
390092912 Gwyn_Bleidd B Sept. 9, 2026, 1:47 p.m. OK GNU C11 TESTS 10 46 102400
389977955 soham89 B Sept. 8, 2026, 9:59 p.m. OK GNU C11 TESTS 10 46 102400
390103521 Mr.Boss67 B Sept. 9, 2026, 2:48 p.m. OK GNU C11 TESTS 10 62 102400
390101320 SawK13 B Sept. 9, 2026, 2:27 p.m. OK GNU C11 TESTS 10 62 102400
390094947 ngdangkhoa7227 B Sept. 9, 2026, 1:55 p.m. OK GNU C11 TESTS 10 62 102400
390118975 Honey_6116 B Sept. 9, 2026, 3:45 p.m. OK GNU C11 TESTS 10 78 0
389998831 jeffrey.paulouse B Sept. 9, 2026, 6:31 a.m. OK GNU C11 TESTS 10 78 0
390122751 treasuryonly B Sept. 9, 2026, 4:24 p.m. OK Haskell TESTS 10 62 102400
390156974 silicalet B Sept. 10, 2026, 3:10 a.m. OK Haskell TESTS 10 93 102400
390163159 Jason_Cornelius B Sept. 10, 2026, 5:07 a.m. OK Java 21 TESTS 10 171 204800
390090053 sudaniparth80 B Sept. 9, 2026, 1:43 p.m. OK Java 21 TESTS 10 187 0
390120018 someear1h B Sept. 9, 2026, 3:56 p.m. OK Java 21 TESTS 10 187 512000
390155196 WardellCurry B Sept. 10, 2026, 2:22 a.m. OK Java 21 TESTS 10 187 716800
389989032 RohithGurram B Sept. 9, 2026, 3:45 a.m. OK Java 21 TESTS 10 187 716800
389991597 aniketHacker B Sept. 9, 2026, 4:34 a.m. OK Java 21 TESTS 10 203 307200
390134038 saiyelmatwad13 B Sept. 9, 2026, 6:02 p.m. OK Java 21 TESTS 10 203 512000
390122908 raveena14 B Sept. 9, 2026, 4:26 p.m. OK Java 21 TESTS 10 203 614400
390068812 nurela12 B Sept. 9, 2026, 11:43 a.m. OK Java 21 TESTS 10 203 1228800
389986930 ansumanswain B Sept. 9, 2026, 3 a.m. OK Java 21 TESTS 10 218 307200
390160876 LazaroAlejandro B Sept. 10, 2026, 4:25 a.m. OK Java 8 TESTS 10 109 0
390160808 sabarishkumar B Sept. 10, 2026, 4:24 a.m. OK Java 8 TESTS 10 140 0
390165762 reshma0415 B Sept. 10, 2026, 5:48 a.m. OK Java 8 TESTS 10 156 0
390161809 reshma0415 B Sept. 10, 2026, 4:42 a.m. OK Java 8 TESTS 10 171 0
390161123 240028.cb B Sept. 10, 2026, 4:30 a.m. OK Java 8 TESTS 10 171 0
390018315 anilmina001 B Sept. 9, 2026, 9:28 a.m. OK Java 8 TESTS 10 171 0
389991514 ak7513950 B Sept. 9, 2026, 4:32 a.m. OK Java 8 TESTS 10 171 0
390161266 sugice B Sept. 10, 2026, 4:32 a.m. OK Java 8 TESTS 10 187 0
390161171 Kiru_pg B Sept. 10, 2026, 4:30 a.m. OK Java 8 TESTS 10 187 0
389957578 24311a05m1varshini B Sept. 8, 2026, 5:03 p.m. OK Java 8 TESTS 10 187 0
389987850 tryingDream B Sept. 9, 2026, 3:21 a.m. OK Kotlin 2.2 TESTS 10 156 0
390007476 graceoflives B Sept. 9, 2026, 8:26 a.m. OK Node.js TESTS 10 156 8089600
389993315 Grey_Hat3 B Sept. 9, 2026, 5:04 a.m. OK PyPy 3 TESTS 10 156 4608000
390158147 mikasaloveseren B Sept. 10, 2026, 3:36 a.m. OK PyPy 3 TESTS 10 171 7372800
390101929 Remedan_ B Sept. 9, 2026, 2:32 p.m. OK PyPy 3 TESTS 10 187 5222400
389963980 Deathbycode7 B Sept. 8, 2026, 6 p.m. OK PyPy 3 TESTS 10 218 5222400
389992488 nks2k B Sept. 9, 2026, 4:49 a.m. OK PyPy 3 TESTS 10 218 7168000
390104233 Roub B Sept. 9, 2026, 2:56 p.m. OK PyPy 3-64 TESTS 10 62 3686400
390073882 koratan B Sept. 9, 2026, 12:32 p.m. OK PyPy 3-64 TESTS 10 62 3788800
389965976 Cortex_Error B Sept. 8, 2026, 6:21 p.m. OK PyPy 3-64 TESTS 10 62 4608000
389990019 samchen123 B Sept. 9, 2026, 4:04 a.m. OK PyPy 3-64 TESTS 10 62 4915200
390000427 chan120714 B Sept. 9, 2026, 6:51 a.m. OK PyPy 3-64 TESTS 10 78 3788800
390062174 opankit B Sept. 9, 2026, 10:26 a.m. OK PyPy 3-64 TESTS 10 78 3891200
389973041 Problem_anchor B Sept. 8, 2026, 8:05 p.m. OK PyPy 3-64 TESTS 10 78 3891200
389967100 sairam.v B Sept. 8, 2026, 6:33 p.m. OK PyPy 3-64 TESTS 10 78 3891200
390096768 mawo78 B Sept. 9, 2026, 2:01 p.m. OK PyPy 3-64 TESTS 10 93 3891200
389965029 enzi1337 B Sept. 8, 2026, 6:11 p.m. OK PyPy 3-64 TESTS 10 93 3993600
389962926 Faizyab B Sept. 8, 2026, 5:50 p.m. OK Python 3 TESTS 10 93 3174400
389969736 diponmitra263 B Sept. 8, 2026, 7:10 p.m. OK Python 3 TESTS 10 109 2969600
389984782 lowestx9 B Sept. 9, 2026, 2 a.m. OK Python 3 TESTS 10 109 3174400
390144373 trinhnamkhanh238 B Sept. 9, 2026, 8:23 p.m. OK Python 3 TESTS 10 140 0
390150435 gnaiqing B Sept. 9, 2026, 11:33 p.m. OK Python 3 TESTS 10 156 0
390053242 code.demon B Sept. 9, 2026, 9:44 a.m. OK Python 3 TESTS 10 156 1331200
389997114 gooonn B Sept. 9, 2026, 6:10 a.m. OK Python 3 TESTS 10 156 1331200
389980812 chmpro B Sept. 8, 2026, 11:58 p.m. OK Python 3 TESTS 10 156 1331200
390000956 MaryaTawfik B Sept. 9, 2026, 6:58 a.m. OK Python 3 TESTS 10 171 3174400
390010519 ragemonke B Sept. 9, 2026, 9:02 a.m. OK Python 3 TESTS 10 203 0
390064740 maupse B Sept. 9, 2026, 10:58 a.m. OK Rust 2021 TESTS 10 31 0
390058978 lkrh47381 B Sept. 9, 2026, 9:46 a.m. OK Rust 2024 TESTS 10 31 0
389974263 ElDorito B Sept. 8, 2026, 8:28 p.m. OK Rust 2024 TESTS 10 31 0
389963935 typedef_struct B Sept. 8, 2026, 6 p.m. OK Rust 2024 TESTS 10 46 0
389964120 nemo-v B Sept. 8, 2026, 6:02 p.m. OK Rust 2024 TESTS 10 62 0

remove filters

Back to search problems