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 |
---|---|---|---|---|---|---|
1623 | Codeforces Round 763 (Div. 2) | FINISHED | False | 7200 | 96567863 | Dec. 28, 2021, 1:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 14176 ) | B | Game on Ranges | PROGRAMMING | brute force implementation sortings |
B"Alice and Bob play the following game. Alice has a set S of disjoint ranges of integers, initially containing only one range [1, n] . In one turn, Alice picks a range [l, r] from the set S and asks Bob to pick a number in the range. Bob chooses a number d ( l <= d <= r ). Then Alice removes [l, r] from S and puts into the set S the range [l, d - 1] (if l <= d - 1 ) and the range [d + 1, r] (if d + 1 <= r ). The game ends when the set S is empty. We can show that the number of turns in each game is exactly n . After playing the game, Alice remembers all the ranges [l, r] she picked from the set S , but Bob does not remember any of the numbers that he picked. But Bob is smart, and he knows he can find out his numbers d from Alice's ranges, and so he asks you for help with your programming skill. Given the list of ranges that Alice has picked ( [l, r] ), for each range, help Bob find the number d that Bob has picked. We can show that there is always a unique way for Bob to choose his number for a list of valid ranges picked by Alice. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 1000 ). Description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 1000 ). Each of the next n lines contains two integers l and r ( 1 <= l <= r <= n ), denoting the range [l, r] that Alice picked at some point. Note that the ranges are given in no particular order. It is guaranteed that the sum of n over all test cases does not exceed 1000 , and the ranges for each test case are from a valid game. For each test case print n lines. Each line should contain three integers l , r , and d , denoting that for Alice's range [l, r] Bob picked the number d . You can print the "... |
Codeforces Round #763 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
140957792 | MR_HAROT_9655 | B | Dec. 28, 2021, 6:18 p.m. | OK | Clang++17 Diagnostics | TESTS | 22 | 93 | 3174400 | ||
140951684 | MR_HAROT_9655 | B | Dec. 28, 2021, 5:05 p.m. | OK | Clang++17 Diagnostics | TESTS | 22 | 109 | 3174400 | ||
140951241 | the-horo | B | Dec. 28, 2021, 5 p.m. | OK | D | TESTS | 22 | 31 | 4403200 | ||
140968967 | darkkcyan | B | Dec. 28, 2021, 10:02 p.m. | OK | FPC | TESTS | 22 | 31 | 1126400 | ||
140969267 | saker.hajji | B | Dec. 28, 2021, 10:13 p.m. | OK | GNU C11 | TESTS | 22 | 15 | 0 | ||
140939569 | RespEuler | B | Dec. 28, 2021, 3:23 p.m. | OK | GNU C11 | TESTS | 22 | 15 | 0 | ||
140972673 | acfmidinsw | B | Dec. 29, 2021, 1:07 a.m. | OK | GNU C11 | TESTS | 22 | 15 | 4096000 | ||
140979561 | Nanfeng1997_2 | B | Dec. 29, 2021, 4:34 a.m. | OK | GNU C++14 | TESTS | 22 | 15 | 0 | ||
140979309 | 42i196 | B | Dec. 29, 2021, 4:28 a.m. | OK | GNU C++14 | TESTS | 22 | 15 | 0 | ||
140979899 | Nanfeng1997_2 | B | Dec. 29, 2021, 4:40 a.m. | OK | GNU C++14 | TESTS | 22 | 15 | 0 | ||
140977542 | syyyl | B | Dec. 29, 2021, 3:47 a.m. | OK | GNU C++14 | TESTS | 22 | 15 | 0 | ||
140977143 | xuyifei1 | B | Dec. 29, 2021, 3:37 a.m. | OK | GNU C++14 | TESTS | 22 | 15 | 0 | ||
140977058 | vishal_reddy_5215 | B | Dec. 29, 2021, 3:35 a.m. | OK | GNU C++14 | TESTS | 22 | 15 | 0 | ||
140977045 | s7win99 | B | Dec. 29, 2021, 3:34 a.m. | OK | GNU C++14 | TESTS | 22 | 15 | 0 | ||
140975033 | XueYJ | B | Dec. 29, 2021, 2:38 a.m. | OK | GNU C++14 | TESTS | 22 | 15 | 0 | ||
140974687 | withoutBugs | B | Dec. 29, 2021, 2:27 a.m. | OK | GNU C++14 | TESTS | 22 | 15 | 0 | ||
140980009 | Nanfeng1997_2 | B | Dec. 29, 2021, 4:42 a.m. | OK | GNU C++14 | TESTS | 22 | 15 | 0 | ||
140983396 | chandrachudshri1 | B | Dec. 29, 2021, 5:43 a.m. | OK | GNU C++17 | TESTS | 22 | 15 | 0 | ||
140983347 | DeaphetS | B | Dec. 29, 2021, 5:42 a.m. | OK | GNU C++17 | TESTS | 22 | 15 | 0 | ||
140982988 | namastute | B | Dec. 29, 2021, 5:36 a.m. | OK | GNU C++17 | TESTS | 22 | 15 | 0 | ||
140982548 | Mobarak_Hossain | B | Dec. 29, 2021, 5:28 a.m. | OK | GNU C++17 | TESTS | 22 | 15 | 0 | ||
140982432 | Dinocoder | B | Dec. 29, 2021, 5:26 a.m. | OK | GNU C++17 | TESTS | 22 | 15 | 0 | ||
140981400 | CoderGiri | B | Dec. 29, 2021, 5:08 a.m. | OK | GNU C++17 | TESTS | 22 | 15 | 0 | ||
140980987 | VaibhavRK | B | Dec. 29, 2021, 5 a.m. | OK | GNU C++17 | TESTS | 22 | 15 | 0 | ||
140980974 | bhatt_ji | B | Dec. 29, 2021, 5 a.m. | OK | GNU C++17 | TESTS | 22 | 15 | 0 | ||
140980763 | Candidate_noob | B | Dec. 29, 2021, 4:55 a.m. | OK | GNU C++17 | TESTS | 22 | 15 | 0 | ||
140984199 | proverbs1_7 | B | Dec. 29, 2021, 5:56 a.m. | OK | GNU C++17 | TESTS | 22 | 15 | 0 | ||
140975496 | russelltkm | B | Dec. 29, 2021, 2:53 a.m. | OK | GNU C++17 (64) | TESTS | 22 | 15 | 0 | ||
140983894 | Thallium54 | B | Dec. 29, 2021, 5:51 a.m. | OK | GNU C++17 (64) | TESTS | 22 | 15 | 0 | ||
140983399 | Rawat26 | B | Dec. 29, 2021, 5:43 a.m. | OK | GNU C++17 (64) | TESTS | 22 | 15 | 0 | ||
140980343 | Grey_Crane_Is_Here | B | Dec. 29, 2021, 4:48 a.m. | OK | GNU C++17 (64) | TESTS | 22 | 15 | 0 | ||
140980209 | Ripiaun | B | Dec. 29, 2021, 4:46 a.m. | OK | GNU C++17 (64) | TESTS | 22 | 15 | 0 | ||
140975437 | reet_khairha | B | Dec. 29, 2021, 2:52 a.m. | OK | GNU C++17 (64) | TESTS | 22 | 15 | 0 | ||
140974857 | yaoweiliu | B | Dec. 29, 2021, 2:32 a.m. | OK | GNU C++17 (64) | TESTS | 22 | 15 | 0 | ||
140971737 | RK_little | B | Dec. 28, 2021, 11:56 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 15 | 0 | ||
140971276 | TimeWarp101 | B | Dec. 28, 2021, 11:35 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 15 | 0 | ||
140966750 | ChairmanFMao | B | Dec. 28, 2021, 8:55 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 15 | 0 | ||
140934293 | _PrabhatKumar_ | B | Dec. 28, 2021, 3:03 p.m. | OK | GNU C++20 (64) | TESTS | 22 | 0 | 102400 | ||
140982005 | askd | B | Dec. 29, 2021, 5:19 a.m. | OK | GNU C++20 (64) | TESTS | 22 | 15 | 0 | ||
140976176 | Ltta113 | B | Dec. 29, 2021, 3:13 a.m. | OK | GNU C++20 (64) | TESTS | 22 | 15 | 0 | ||
140972590 | vaibhavg_21 | B | Dec. 29, 2021, 1:02 a.m. | OK | GNU C++20 (64) | TESTS | 22 | 15 | 0 | ||
140972521 | noname___ | B | Dec. 29, 2021, 12:59 a.m. | OK | GNU C++20 (64) | TESTS | 22 | 15 | 0 | ||
140972490 | noname___ | B | Dec. 29, 2021, 12:57 a.m. | OK | GNU C++20 (64) | TESTS | 22 | 15 | 0 | ||
140972157 | Alan233 | B | Dec. 29, 2021, 12:41 a.m. | OK | GNU C++20 (64) | TESTS | 22 | 15 | 0 | ||
140971667 | CloudZhang987 | B | Dec. 28, 2021, 11:53 p.m. | OK | GNU C++20 (64) | TESTS | 22 | 15 | 0 | ||
140980082 | Lhohelhohehmm | B | Dec. 29, 2021, 4:44 a.m. | OK | GNU C++20 (64) | TESTS | 22 | 15 | 0 | ||
140977742 | Boboge | B | Dec. 29, 2021, 3:51 a.m. | OK | GNU C++20 (64) | TESTS | 22 | 15 | 0 | ||
140984388 | pqhuy98 | B | Dec. 29, 2021, 5:58 a.m. | OK | Go | TESTS | 22 | 31 | 102400 | ||
140934309 | toomteps | B | Dec. 28, 2021, 3:03 p.m. | OK | Go | TESTS | 22 | 46 | 102400 | ||
140942263 | Dmohan | B | Dec. 28, 2021, 3:33 p.m. | OK | Go | TESTS | 22 | 46 | 204800 | ||
140957904 | Isha010 | B | Dec. 28, 2021, 6:19 p.m. | OK | Java 11 | TESTS | 22 | 186 | 0 | ||
140973126 | Wuya | B | Dec. 29, 2021, 1:27 a.m. | OK | Java 11 | TESTS | 22 | 202 | 0 | ||
140969114 | gumbymoo | B | Dec. 28, 2021, 10:07 p.m. | OK | Java 11 | TESTS | 22 | 202 | 0 | ||
140969536 | mphillotry | B | Dec. 28, 2021, 10:23 p.m. | OK | Java 11 | TESTS | 22 | 217 | 0 | ||
140958514 | MrBruh420 | B | Dec. 28, 2021, 6:27 p.m. | OK | Java 11 | TESTS | 22 | 218 | 0 | ||
140952416 | Srisaivamshi | B | Dec. 28, 2021, 5:13 p.m. | OK | Java 11 | TESTS | 22 | 218 | 0 | ||
140953118 | SaberXpro | B | Dec. 28, 2021, 5:21 p.m. | OK | Java 11 | TESTS | 22 | 218 | 0 | ||
140982868 | mrudul4935 | B | Dec. 29, 2021, 5:34 a.m. | OK | Java 11 | TESTS | 22 | 233 | 0 | ||
140978857 | white_harmony | B | Dec. 29, 2021, 4:18 a.m. | OK | Java 11 | TESTS | 22 | 233 | 0 | ||
140958822 | MrBruh420 | B | Dec. 28, 2021, 6:32 p.m. | OK | Java 11 | TESTS | 22 | 233 | 0 | ||
140933905 | Yuxiang | B | Dec. 28, 2021, 3:02 p.m. | OK | Java 8 | TESTS | 22 | 109 | 0 | ||
140955313 | rohantrix | B | Dec. 28, 2021, 5:47 p.m. | OK | Java 8 | TESTS | 22 | 124 | 0 | ||
140935259 | Main.Thread | B | Dec. 28, 2021, 3:07 p.m. | OK | Java 8 | TESTS | 22 | 124 | 0 | ||
140984481 | ocean09 | B | Dec. 29, 2021, 6 a.m. | OK | Java 8 | TESTS | 22 | 124 | 0 | ||
140960231 | AndreySiunov | B | Dec. 28, 2021, 6:52 p.m. | OK | Java 8 | TESTS | 22 | 124 | 0 | ||
140959933 | rohantrix | B | Dec. 28, 2021, 6:47 p.m. | OK | Java 8 | TESTS | 22 | 124 | 0 | ||
140959789 | AndreySiunov | B | Dec. 28, 2021, 6:45 p.m. | OK | Java 8 | TESTS | 22 | 124 | 0 | ||
140984446 | ocean09 | B | Dec. 29, 2021, 5:59 a.m. | OK | Java 8 | TESTS | 22 | 124 | 38502400 | ||
140944311 | Swapniltri | B | Dec. 28, 2021, 4:01 p.m. | OK | Java 8 | TESTS | 22 | 139 | 0 | ||
140970969 | jangkun217 | B | Dec. 28, 2021, 11:21 p.m. | OK | Java 8 | TESTS | 22 | 140 | 0 | ||
140938602 | dextron99 | B | Dec. 28, 2021, 3:20 p.m. | OK | Kotlin 1.4 | TESTS | 22 | 170 | 1331200 | ||
140934382 | mishagam | B | Dec. 28, 2021, 3:04 p.m. | OK | Kotlin 1.5 | TESTS | 22 | 249 | 1024000 | ||
140969381 | JohnCode | B | Dec. 28, 2021, 10:17 p.m. | OK | MS C++ 2017 | TESTS | 22 | 15 | 102400 | ||
140932604 | gerald422442 | B | Dec. 28, 2021, 2:57 p.m. | OK | MS C++ 2017 | TESTS | 22 | 30 | 0 | ||
140932116 | sgly33 | B | Dec. 28, 2021, 2:55 p.m. | OK | MS C++ 2017 | TESTS | 22 | 30 | 102400 | ||
140979973 | Agumon | B | Dec. 29, 2021, 4:42 a.m. | OK | MS C++ 2017 | TESTS | 22 | 30 | 12083200 | ||
140931850 | bhanu_nelluri | B | Dec. 28, 2021, 2:54 p.m. | OK | MS C++ 2017 | TESTS | 22 | 31 | 0 | ||
140948527 | Falcon-64 | B | Dec. 28, 2021, 4:32 p.m. | OK | MS C++ 2017 | TESTS | 22 | 31 | 0 | ||
140940675 | Rohit060903 | B | Dec. 28, 2021, 3:28 p.m. | OK | MS C++ 2017 | TESTS | 22 | 31 | 102400 | ||
140977676 | A_Pier | B | Dec. 29, 2021, 3:50 a.m. | OK | MS C++ 2017 | TESTS | 22 | 31 | 204800 | ||
140947152 | Fish_L | B | Dec. 28, 2021, 4:20 p.m. | OK | MS C++ 2017 | TESTS | 22 | 31 | 4505600 | ||
140978680 | vjudge4 | B | Dec. 29, 2021, 4:13 a.m. | OK | MS C++ 2017 | TESTS | 22 | 31 | 12083200 | ||
140935145 | davidsekar | B | Dec. 28, 2021, 3:06 p.m. | OK | .NET Core C# | TESTS | 22 | 108 | 716800 | ||
140934299 | thetansquared | B | Dec. 28, 2021, 3:03 p.m. | OK | .NET Core C# | TESTS | 22 | 624 | 716800 | ||
140948420 | rsFalse | B | Dec. 28, 2021, 4:31 p.m. | OK | Perl | TESTS | 22 | 468 | 409600 | ||
140947477 | OLOGY | B | Dec. 28, 2021, 4:23 p.m. | OK | PyPy 2 | TESTS | 22 | 77 | 1740800 | ||
140972211 | YMSeah | B | Dec. 29, 2021, 12:44 a.m. | OK | PyPy 3 | TESTS | 22 | 93 | 1843200 | ||
140940392 | prachir1501 | B | Dec. 28, 2021, 3:26 p.m. | OK | PyPy 3 | TESTS | 22 | 124 | 3072000 | ||
140931823 | BingHa | B | Dec. 28, 2021, 2:54 p.m. | OK | PyPy 3 | TESTS | 22 | 124 | 3072000 | ||
140972241 | wolfram_ | B | Dec. 29, 2021, 12:45 a.m. | OK | PyPy 3 | TESTS | 22 | 124 | 3481600 | ||
140945407 | Andrei_Kuz | B | Dec. 28, 2021, 4:07 p.m. | OK | PyPy 3 | TESTS | 22 | 139 | 4812800 | ||
140957278 | Liberator187 | B | Dec. 28, 2021, 6:11 p.m. | OK | PyPy 3 | TESTS | 22 | 140 | 3686400 | ||
140931049 | __chandler__ | B | Dec. 28, 2021, 2:52 p.m. | OK | PyPy 3 | TESTS | 22 | 140 | 3993600 | ||
140977236 | Youarenotgood | B | Dec. 29, 2021, 3:39 a.m. | OK | PyPy 3 | TESTS | 22 | 140 | 4812800 | ||
140979732 | sw_enthusiast | B | Dec. 29, 2021, 4:37 a.m. | OK | PyPy 3 | TESTS | 22 | 140 | 69324800 | ||
140929736 | bongcloud7777 | B | Dec. 28, 2021, 2:47 p.m. | OK | PyPy 3 | TESTS | 22 | 155 | 3481600 | ||
140957871 | nitish420 | B | Dec. 28, 2021, 6:19 p.m. | OK | PyPy 3-64 | TESTS | 22 | 124 | 2560000 | ||
140973408 | DippleThree | B | Dec. 29, 2021, 1:39 a.m. | OK | PyPy 3-64 | TESTS | 22 | 155 | 6963200 | ||
140937912 | ArtemOnium | B | Dec. 28, 2021, 3:17 p.m. | OK | PyPy 3-64 | TESTS | 22 | 171 | 8294400 | ||
140973246 | burita083 | B | Dec. 29, 2021, 1:32 a.m. | OK | PyPy 3-64 | TESTS | 22 | 171 | 18124800 | ||
140930959 | Haricharan_B | B | Dec. 28, 2021, 2:51 p.m. | OK | PyPy 3-64 | TESTS | 22 | 186 | 4812800 | ||
140931150 | mean9 | B | Dec. 28, 2021, 2:52 p.m. | OK | PyPy 3-64 | TESTS | 22 | 186 | 7168000 | ||
140931046 | sharingan000 | B | Dec. 28, 2021, 2:52 p.m. | OK | PyPy 3-64 | TESTS | 22 | 187 | 5734400 | ||
140948208 | rafaelpac | B | Dec. 28, 2021, 4:29 p.m. | OK | PyPy 3-64 | TESTS | 22 | 187 | 6758400 | ||
140947168 | Dinzbag | B | Dec. 28, 2021, 4:20 p.m. | OK | PyPy 3-64 | TESTS | 22 | 187 | 8806400 | ||
140973190 | burita083 | B | Dec. 29, 2021, 1:30 a.m. | OK | PyPy 3-64 | TESTS | 22 | 187 | 18432000 | ||
140947220 | OLOGY | B | Dec. 28, 2021, 4:21 p.m. | OK | Python 2 | TESTS | 22 | 46 | 409600 | ||
140944896 | OLOGY | B | Dec. 28, 2021, 4:04 p.m. | OK | Python 2 | TESTS | 22 | 46 | 409600 | ||
140946892 | OLOGY | B | Dec. 28, 2021, 4:18 p.m. | OK | Python 2 | TESTS | 22 | 124 | 409600 | ||
140948194 | ashish_chiks_75 | B | Dec. 28, 2021, 4:29 p.m. | OK | Python 3 | TESTS | 22 | 46 | 0 | ||
140944780 | aditya1050 | B | Dec. 28, 2021, 4:03 p.m. | OK | Python 3 | TESTS | 22 | 46 | 0 | ||
140976930 | Kal.El | B | Dec. 29, 2021, 3:32 a.m. | OK | Python 3 | TESTS | 22 | 61 | 0 | ||
140930477 | swapnilsingh421 | B | Dec. 28, 2021, 2:50 p.m. | OK | Python 3 | TESTS | 22 | 61 | 0 | ||
140946604 | _soni_ | B | Dec. 28, 2021, 4:16 p.m. | OK | Python 3 | TESTS | 22 | 61 | 307200 | ||
140952616 | _Shubham | B | Dec. 28, 2021, 5:15 p.m. | OK | Python 3 | TESTS | 22 | 62 | 0 | ||
140942260 | Sarthack | B | Dec. 28, 2021, 3:33 p.m. | OK | Python 3 | TESTS | 22 | 62 | 0 | ||
140937071 | machffud.thv | B | Dec. 28, 2021, 3:14 p.m. | OK | Python 3 | TESTS | 22 | 62 | 0 | ||
140962782 | the_emerging_coder | B | Dec. 28, 2021, 7:31 p.m. | OK | Python 3 | TESTS | 22 | 77 | 0 | ||
140933870 | SJOKER | B | Dec. 28, 2021, 3:02 p.m. | OK | Python 3 | TESTS | 22 | 77 | 0 | ||
140950406 | qwerty787788 | B | Dec. 28, 2021, 4:51 p.m. | OK | Rust 2021 | TESTS | 22 | 15 | 0 | ||
140954443 | takezawa | B | Dec. 28, 2021, 5:37 p.m. | OK | Rust 2021 | TESTS | 22 | 15 | 102400 | ||
140954368 | takezawa | B | Dec. 28, 2021, 5:36 p.m. | OK | Rust 2021 | TESTS | 22 | 15 | 102400 | ||
140972843 | Spheniscine | B | Dec. 29, 2021, 1:15 a.m. | OK | Rust 2021 | TESTS | 22 | 15 | 204800 | ||
140975608 | kiwiyou | B | Dec. 29, 2021, 2:57 a.m. | OK | Rust 2021 | TESTS | 22 | 30 | 102400 | ||
140930146 | clause | B | Dec. 28, 2021, 2:48 p.m. | OK | Rust 2021 | TESTS | 22 | 31 | 102400 |
Back to search problems