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 |
---|---|---|---|---|---|---|
1539 | Codeforces Round 727 (Div. 2) | FINISHED | False | 7200 | 107639699 | June 20, 2021, 10:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 20195 ) | A | Contest Start | PROGRAMMING | combinatorics geometry math | 1000 |
B"There are n people participating in some contest, they start participating in x minutes intervals. That means the first participant starts at time 0 , the second participant starts at time x , the third -- at time 2 cdot x , and so on. Duration of contest is t minutes for each participant, so the first participant finishes the contest at time t , the second -- at time t + x , and so on. When a participant finishes the contest, their dissatisfaction equals to the number of participants that started the contest (or starting it now), but haven't yet finished it. Determine the sum of dissatisfaction of all participants. The first line contains a single integer k ( 1 <= k <= 1000 ) -- the number of test cases. Each of the next k lines contains three integers n , x , t ( 1 <= n, x, t <= 2 cdot 10^9 ) -- the number of participants, the start interval and the contest duration. Print k lines, in the i -th line print the total dissatisfaction of participants in the i -th test case. In the first example the first participant starts at 0 and finishes at time 5 . By that time the second and the third participants start, so the dissatisfaction of the first participant is 2 . The second participant starts at time 2 and finishes at time 7 . By that time the third the fourth participants start, so the dissatisfaction of the second participant is 2 . The third participant starts at 4 and finishes at 9 . By that time the fourth participant starts, so the dissatisfaction of the third participant is 1 . The fourth participant starts at 6 and finishes at 11 . By time 11 everyone finishes the contest, so the dissatisfaction of the fourth participant is 0 . In the second example the first participant starts at 0 and finishes at time 2 . By that time the second participants starts, and the th"... |
tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
120146591 | bkifhr9 | A | June 20, 2021, 4:06 p.m. | OK | Clang++17 Diagnostics | TESTS | 10 | 62 | 0 | 1000 | |
120153389 | himanshu1915 | A | June 20, 2021, 5:47 p.m. | OK | Clang++17 Diagnostics | TESTS | 10 | 77 | 0 | 1000 | |
120134896 | Ulzl00 | A | June 20, 2021, 2:13 p.m. | OK | GNU C11 | TESTS | 10 | 15 | 0 | 1000 | |
120151991 | 20bcs030 | A | June 20, 2021, 5:25 p.m. | OK | GNU C11 | TESTS | 10 | 15 | 0 | 1000 | |
120127596 | wyxchn | A | June 20, 2021, 1:14 p.m. | OK | GNU C11 | TESTS | 10 | 15 | 0 | 1000 | |
120135425 | abhinava_kv | A | June 20, 2021, 2:17 p.m. | OK | GNU C11 | TESTS | 10 | 30 | 0 | 1000 | |
120160402 | Aony | A | June 20, 2021, 8:13 p.m. | OK | GNU C11 | TESTS | 10 | 30 | 0 | 1000 | |
120128393 | akash36437 | A | June 20, 2021, 1:19 p.m. | OK | GNU C11 | TESTS | 10 | 31 | 0 | 1000 | |
120176599 | lifehappy | A | June 21, 2021, 5:34 a.m. | OK | GNU C++11 | TESTS | 10 | 15 | 0 | 1000 | |
120176226 | NIKHIL_111 | A | June 21, 2021, 5:28 a.m. | OK | GNU C++11 | TESTS | 10 | 15 | 0 | 1000 | |
120173792 | ti20_hndkhoa | A | June 21, 2021, 4:47 a.m. | OK | GNU C++11 | TESTS | 10 | 15 | 0 | 1000 | |
120172998 | __mazerunner | A | June 21, 2021, 4:30 a.m. | OK | GNU C++11 | TESTS | 10 | 15 | 0 | 1000 | |
120172709 | yiwu | A | June 21, 2021, 4:23 a.m. | OK | GNU C++11 | TESTS | 10 | 15 | 0 | 1000 | |
120170948 | zhenweizhang | A | June 21, 2021, 3:42 a.m. | OK | GNU C++11 | TESTS | 10 | 15 | 0 | 1000 | |
120170304 | Maki_Nishikino_ | A | June 21, 2021, 3:24 a.m. | OK | GNU C++11 | TESTS | 10 | 15 | 0 | 1000 | |
120177801 | X_X412 | A | June 21, 2021, 5:51 a.m. | OK | GNU C++11 | TESTS | 10 | 15 | 0 | 1000 | |
120177776 | _Sunrise | A | June 21, 2021, 5:50 a.m. | OK | GNU C++11 | TESTS | 10 | 15 | 0 | 1000 | |
120177649 | Jsss | A | June 21, 2021, 5:49 a.m. | OK | GNU C++11 | TESTS | 10 | 15 | 0 | 1000 | |
120174392 | test_12345 | A | June 21, 2021, 4:57 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 1000 | |
120173509 | doitingiaothuy18 | A | June 21, 2021, 4:42 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 1000 | |
120172323 | _AbRn_ | A | June 21, 2021, 4:14 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 1000 | |
120171558 | _Ambuj123 | A | June 21, 2021, 3:57 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 1000 | |
120171304 | 93wilsonlu | A | June 21, 2021, 3:51 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 1000 | |
120178140 | the-mystique | A | June 21, 2021, 5:56 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 1000 | |
120178186 | hawk99_18 | A | June 21, 2021, 5:57 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 1000 | |
120177096 | M_A_N_A_S_20 | A | June 21, 2021, 5:41 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 1000 | |
120176596 | imas_713_a | A | June 21, 2021, 5:34 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 1000 | |
120175231 | Kushagra_Dubey | A | June 21, 2021, 5:12 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | 1000 | |
120176589 | subi_98 | A | June 21, 2021, 5:34 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 1000 | |
120178332 | Alchemist_2019 | A | June 21, 2021, 5:59 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 1000 | |
120177678 | Saumya_Mittal | A | June 21, 2021, 5:49 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 1000 | |
120177666 | coding_dumb | A | June 21, 2021, 5:49 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 1000 | |
120177646 | NotANoob | A | June 21, 2021, 5:48 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 1000 | |
120177453 | khem_404 | A | June 21, 2021, 5:46 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 1000 | |
120176940 | stym_01 | A | June 21, 2021, 5:39 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 1000 | |
120176919 | SainathTallam | A | June 21, 2021, 5:38 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 1000 | |
120176480 | kkrocks | A | June 21, 2021, 5:32 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 1000 | |
120176234 | shrey03 | A | June 21, 2021, 5:28 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | 1000 | |
120173690 | BoringHacker | A | June 21, 2021, 4:45 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 1000 | |
120170724 | RohitKotha10 | A | June 21, 2021, 3:36 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 1000 | |
120169721 | Xcalibre | A | June 21, 2021, 3:09 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 1000 | |
120167294 | kushagra3288 | A | June 21, 2021, 1:46 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 1000 | |
120166795 | yzang | A | June 21, 2021, 1:26 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 1000 | |
120173763 | Svlad_Cjelli | A | June 21, 2021, 4:46 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 1000 | |
120174594 | simply_hooman | A | June 21, 2021, 5:01 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 1000 | |
120174843 | sahil_bajaj | A | June 21, 2021, 5:06 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 1000 | |
120176009 | Crypt0p | A | June 21, 2021, 5:25 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 1000 | |
120176873 | yajusharma12 | A | June 21, 2021, 5:38 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | 1000 | |
120147657 | WalrusRamen21 | A | June 20, 2021, 4:20 p.m. | OK | Java 11 | TESTS | 10 | 171 | 0 | 1000 | |
120163857 | Is2ac | A | June 20, 2021, 10:27 p.m. | OK | Java 11 | TESTS | 10 | 171 | 0 | 1000 | |
120160218 | Andwerp | A | June 20, 2021, 8:08 p.m. | OK | Java 11 | TESTS | 10 | 171 | 0 | 1000 | |
120148384 | Plums | A | June 20, 2021, 4:30 p.m. | OK | Java 11 | TESTS | 10 | 171 | 0 | 1000 | |
120146837 | _Body | A | June 20, 2021, 4:09 p.m. | OK | Java 11 | TESTS | 10 | 171 | 0 | 1000 | |
120136157 | apooravsingh38 | A | June 20, 2021, 2:24 p.m. | OK | Java 11 | TESTS | 10 | 171 | 0 | 1000 | |
120133692 | Charigardash | A | June 20, 2021, 2:02 p.m. | OK | Java 11 | TESTS | 10 | 171 | 0 | 1000 | |
120127640 | ypa | A | June 20, 2021, 1:14 p.m. | OK | Java 11 | TESTS | 10 | 171 | 0 | 1000 | |
120140237 | Asteriod | A | June 20, 2021, 3:02 p.m. | OK | Java 11 | TESTS | 10 | 186 | 0 | 1000 | |
120152610 | anubhav44044 | A | June 20, 2021, 5:35 p.m. | OK | Java 11 | TESTS | 10 | 186 | 0 | 1000 | |
120173840 | Pranay2516 | A | June 21, 2021, 4:48 a.m. | OK | Java 8 | TESTS | 10 | 108 | 0 | 1000 | |
120126428 | BruteForcee | A | June 20, 2021, 1:07 p.m. | OK | Java 8 | TESTS | 10 | 109 | 0 | 1000 | |
120163720 | sumedh.shenoy | A | June 20, 2021, 10:19 p.m. | OK | Java 8 | TESTS | 10 | 109 | 0 | 1000 | |
120160300 | Piyushnagpal80 | A | June 20, 2021, 8:10 p.m. | OK | Java 8 | TESTS | 10 | 109 | 0 | 1000 | |
120155030 | pdk.abhishek | A | June 20, 2021, 6:14 p.m. | OK | Java 8 | TESTS | 10 | 109 | 0 | 1000 | |
120131055 | dkakshay95 | A | June 20, 2021, 1:40 p.m. | OK | Java 8 | TESTS | 10 | 124 | 0 | 1000 | |
120176997 | CODERSOURAV | A | June 21, 2021, 5:39 a.m. | OK | Java 8 | TESTS | 10 | 124 | 0 | 1000 | |
120165704 | ChiMasterBing | A | June 21, 2021, 12:34 a.m. | OK | Java 8 | TESTS | 10 | 124 | 0 | 1000 | |
120133296 | gssakash | A | June 20, 2021, 1:58 p.m. | OK | Java 8 | TESTS | 10 | 124 | 0 | 1000 | |
120129462 | RedEnums | A | June 20, 2021, 1:27 p.m. | OK | Java 8 | TESTS | 10 | 124 | 0 | 1000 | |
120151623 | spalnavy | A | June 20, 2021, 5:20 p.m. | OK | Kotlin | TESTS | 10 | 156 | 0 | 1000 | |
120142561 | ryo_n | A | June 20, 2021, 3:24 p.m. | OK | Kotlin | TESTS | 10 | 156 | 0 | 1000 | |
120152109 | pakka_papad | A | June 20, 2021, 5:27 p.m. | OK | Kotlin | TESTS | 10 | 171 | 0 | 1000 | |
120141025 | preshitha1 | A | June 20, 2021, 3:10 p.m. | OK | MS C++ | TESTS | 10 | 31 | 0 | 1000 | |
120150335 | xsc | A | June 20, 2021, 4:59 p.m. | OK | MS C++ 2017 | TESTS | 10 | 15 | 0 | 1000 | |
120126065 | Vitazzz | A | June 20, 2021, 1:06 p.m. | OK | MS C++ 2017 | TESTS | 10 | 30 | 0 | 1000 | |
120126343 | gevak | A | June 20, 2021, 1:07 p.m. | OK | MS C++ 2017 | TESTS | 10 | 31 | 0 | 1000 | |
120173485 | arushijaiswal04 | A | June 21, 2021, 4:41 a.m. | OK | MS C++ 2017 | TESTS | 10 | 31 | 0 | 1000 | |
120136606 | Ilyaiq300 | A | June 20, 2021, 2:28 p.m. | OK | MS C++ 2017 | TESTS | 10 | 31 | 0 | 1000 | |
120133442 | minionsnow | A | June 20, 2021, 2 p.m. | OK | MS C++ 2017 | TESTS | 10 | 31 | 0 | 1000 | |
120128236 | nik2005 | A | June 20, 2021, 1:18 p.m. | OK | MS C++ 2017 | TESTS | 10 | 31 | 0 | 1000 | |
120130782 | sakapon | A | June 20, 2021, 1:37 p.m. | OK | .NET Core C# | TESTS | 10 | 93 | 614400 | 1000 | |
120127718 | chinesedfan | A | June 20, 2021, 1:15 p.m. | OK | Node.js | TESTS | 10 | 93 | 1638400 | 1000 | |
120162810 | beethoven97 | A | June 20, 2021, 9:33 p.m. | OK | PyPy 2 | TESTS | 10 | 109 | 102400 | 1000 | |
120134449 | srijan.sarkar | A | June 20, 2021, 2:09 p.m. | OK | PyPy 3 | TESTS | 10 | 108 | 2048000 | 1000 | |
120156390 | titia | A | June 20, 2021, 6:38 p.m. | OK | PyPy 3 | TESTS | 10 | 109 | 1843200 | 1000 | |
120151074 | bravotango | A | June 20, 2021, 5:11 p.m. | OK | PyPy 3 | TESTS | 10 | 109 | 1843200 | 1000 | |
120134374 | Banweol | A | June 20, 2021, 2:08 p.m. | OK | PyPy 3 | TESTS | 10 | 109 | 1843200 | 1000 | |
120161181 | Mistaek | A | June 20, 2021, 8:34 p.m. | OK | PyPy 3 | TESTS | 10 | 109 | 1945600 | 1000 | |
120164543 | Kimmel | A | June 20, 2021, 11:16 p.m. | OK | PyPy 3 | TESTS | 10 | 109 | 2150400 | 1000 | |
120159142 | __RaiyaN__ | A | June 20, 2021, 7:39 p.m. | OK | PyPy 3 | TESTS | 10 | 109 | 2150400 | 1000 | |
120155414 | _aadiupadhyay_ | A | June 20, 2021, 6:20 p.m. | OK | PyPy 3 | TESTS | 10 | 109 | 2457600 | 1000 | |
120178296 | PiKa_PiKaa_chuuu | A | June 21, 2021, 5:58 a.m. | OK | PyPy 3 | TESTS | 10 | 124 | 1433600 | 1000 | |
120137491 | harshiit133 | A | June 20, 2021, 2:36 p.m. | OK | PyPy 3 | TESTS | 10 | 124 | 1843200 | 1000 | |
120153142 | Rafsan18 | A | June 20, 2021, 5:43 p.m. | OK | Python 3 | TESTS | 10 | 46 | 0 | 1000 | |
120163189 | Kaatil | A | June 20, 2021, 9:49 p.m. | OK | Python 3 | TESTS | 10 | 61 | 0 | 1000 | |
120139659 | Bryophyllum1 | A | June 20, 2021, 2:57 p.m. | OK | Python 3 | TESTS | 10 | 61 | 0 | 1000 | |
120175918 | kaousheik | A | June 21, 2021, 5:23 a.m. | OK | Python 3 | TESTS | 10 | 62 | 0 | 1000 | |
120175047 | JinerGenkai | A | June 21, 2021, 5:09 a.m. | OK | Python 3 | TESTS | 10 | 62 | 0 | 1000 | |
120172036 | vishnu2411 | A | June 21, 2021, 4:07 a.m. | OK | Python 3 | TESTS | 10 | 62 | 0 | 1000 | |
120173925 | T_579 | A | June 21, 2021, 4:49 a.m. | OK | Python 3 | TESTS | 10 | 62 | 0 | 1000 | |
120177486 | Iot14b71 | A | June 21, 2021, 5:46 a.m. | OK | Python 3 | TESTS | 10 | 62 | 0 | 1000 | |
120171901 | jgsr031200 | A | June 21, 2021, 4:04 a.m. | OK | Python 3 | TESTS | 10 | 62 | 0 | 1000 | |
120171131 | young_cr | A | June 21, 2021, 3:47 a.m. | OK | Python 3 | TESTS | 10 | 62 | 0 | 1000 | |
120131326 | Grevozin | A | June 20, 2021, 1:42 p.m. | OK | Rust | TESTS | 10 | 31 | 0 | 1000 | |
120136829 | anula | A | June 20, 2021, 2:31 p.m. | OK | Rust | TESTS | 10 | 31 | 0 | 1000 |
Back to search problems