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 |
---|---|---|---|---|---|---|
1187 | Educational Codeforces Round 67 (Rated for Div. 2) | FINISHED | False | 7200 | 169917299 | June 30, 2019, 2:45 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 6379 ) | C | Vasya And Array | PROGRAMMING | constructive algorithms greedy implementation | 1800 |
B"Vasya has an array a_1, a_2, ... , a_n . You don't know this array, but he told you m facts about this array. The i -th fact is a triple of numbers t_i , l_i and r_i ( 0 <= t_i <= 1, 1 <= l_i < r_i <= n ) and it means: For example if a = [2, 1, 1, 3, 2] then he could give you three facts: t_1=1, l_1=2, r_1=4 (the subarray [a_2, a_3, a_4] = [1, 1, 3] is sorted), t_2=0, l_2=4, r_2=5 (the subarray [a_4, a_5] = [3, 2] is not sorted), and t_3=0, l_3=3, r_3=5 (the subarray [a_3, a_5] = [1, 3, 2] is not sorted). You don't know the array a . Find any array which satisfies all the given facts. The first line contains two integers n and m ( 2 <= n <= 1000, 1 <= m <= 1000 ). Each of the next m lines contains three integers t_i , l_i and r_i ( 0 <= t_i <= 1, 1 <= l_i < r_i <= n ). If t_i = 1 then subbarray a_{l_i}, a_{l_i + 1}, ... , a_{r_i} is sorted. Otherwise (if t_i = 0 ) subbarray a_{l_i}, a_{l_i + 1}, ... , a_{r_i} is not sorted. If there is no array that satisfies these facts in only line print NO (in any letter case). If there is a solution, print YES (in any letter case). In second line print n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ) -- the array a , satisfying all the given facts. If there are multiple satisfying arrays you can print any of them. "... |
Разбор Educational Codeforces Round 67 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
56535952 | szfck | C | July 5, 2019, 12:43 a.m. | OK | Clang++17 Diagnostics | TESTS | 71 | 62 | 8396800 | 1800 | |
56487052 | hieutony159357 | C | July 3, 2019, 6:57 p.m. | OK | FPC | TESTS | 71 | 31 | 0 | 1800 | |
56357418 | LaSWeeG | C | June 30, 2019, 5:40 p.m. | OK | FPC | TESTS | 71 | 31 | 0 | 1800 | |
64368234 | chaorenhaha | C | Nov. 6, 2019, 1:35 p.m. | OK | FPC | TESTS | 71 | 31 | 307200 | 1800 | |
56531199 | rainboy | C | July 4, 2019, 7:49 p.m. | OK | GNU C11 | TESTS | 71 | 31 | 0 | 1800 | |
56361893 | luciferkingofthehell | C | June 30, 2019, 7:43 p.m. | OK | GNU C11 | TESTS | 71 | 31 | 0 | 1800 | |
57576593 | Alfeh | C | July 23, 2019, 7:17 a.m. | OK | GNU C11 | TESTS | 71 | 31 | 0 | 1800 | |
56735413 | sansen | C | July 9, 2019, 4:52 a.m. | OK | GNU C11 | TESTS | 71 | 31 | 0 | 1800 | |
56464357 | vjudge3 | C | July 3, 2019, 8:15 a.m. | OK | GNU C++11 | TESTS | 71 | 30 | 0 | 1800 | |
58698690 | luogu_bot4 | C | Aug. 13, 2019, 7:03 a.m. | OK | GNU C++11 | TESTS | 71 | 30 | 0 | 1800 | |
56427487 | GaryMr | C | July 2, 2019, 10:22 a.m. | OK | GNU C++11 | TESTS | 71 | 30 | 0 | 1800 | |
69398243 | vjudge1 | C | Jan. 23, 2020, 7:19 a.m. | OK | GNU C++11 | TESTS | 71 | 31 | 0 | 1800 | |
69286489 | vjudge3 | C | Jan. 22, 2020, 8:25 a.m. | OK | GNU C++11 | TESTS | 71 | 31 | 0 | 1800 | |
69216567 | chenke | C | Jan. 21, 2020, 1:24 a.m. | OK | GNU C++11 | TESTS | 71 | 31 | 0 | 1800 | |
69885992 | ouuan | C | Jan. 31, 2020, 8:13 a.m. | OK | GNU C++11 | TESTS | 71 | 31 | 0 | 1800 | |
69942633 | kabbya | C | Feb. 1, 2020, 6:37 a.m. | OK | GNU C++11 | TESTS | 71 | 31 | 0 | 1800 | |
69617232 | Riesgo | C | Jan. 27, 2020, 1:27 p.m. | OK | GNU C++11 | TESTS | 71 | 31 | 0 | 1800 | |
69803864 | Daniel19Frenzy | C | Jan. 30, 2020, 12:23 a.m. | OK | GNU C++11 | TESTS | 71 | 31 | 0 | 1800 | |
56611106 | 0wner | C | July 6, 2019, 7:20 a.m. | OK | GNU C++14 | TESTS | 71 | 15 | 0 | 1800 | |
56404954 | krritik | C | July 1, 2019, 6:51 p.m. | OK | GNU C++14 | TESTS | 71 | 15 | 0 | 1800 | |
56382258 | rsan_god | C | July 1, 2019, 8:57 a.m. | OK | GNU C++14 | TESTS | 71 | 15 | 102400 | 1800 | |
57276103 | _vaibhav1999 | C | July 18, 2019, 10:54 a.m. | OK | GNU C++14 | TESTS | 71 | 15 | 102400 | 1800 | |
58378188 | divyajyoti | C | Aug. 6, 2019, 8:57 a.m. | OK | GNU C++14 | TESTS | 71 | 30 | 0 | 1800 | |
57341926 | LittleFall | C | July 19, 2019, 7:15 p.m. | OK | GNU C++14 | TESTS | 71 | 30 | 0 | 1800 | |
61556015 | gtostes | C | Sept. 30, 2019, 2:03 p.m. | OK | GNU C++14 | TESTS | 71 | 30 | 0 | 1800 | |
60501913 | obeliks | C | Sept. 13, 2019, 7:08 p.m. | OK | GNU C++14 | TESTS | 71 | 30 | 0 | 1800 | |
59934275 | Scut82 | C | Sept. 3, 2019, 8:47 a.m. | OK | GNU C++14 | TESTS | 71 | 30 | 0 | 1800 | |
58388064 | heyuhhh | C | Aug. 6, 2019, 12:42 p.m. | OK | GNU C++14 | TESTS | 71 | 30 | 0 | 1800 | |
56383576 | huxiaotaostasy | C | July 1, 2019, 9:32 a.m. | OK | GNU C++17 | TESTS | 71 | 15 | 0 | 1800 | |
56871029 | vvvb | C | July 12, 2019, 6:25 a.m. | OK | GNU C++17 | TESTS | 71 | 15 | 0 | 1800 | |
56494273 | yumi-yutaku | C | July 4, 2019, 1:41 a.m. | OK | GNU C++17 | TESTS | 71 | 15 | 0 | 1800 | |
60280515 | sarthakk_26 | C | Sept. 8, 2019, 8:30 p.m. | OK | GNU C++17 | TESTS | 71 | 15 | 102400 | 1800 | |
56779241 | KerakTelor | C | July 10, 2019, 5:14 a.m. | OK | GNU C++17 | TESTS | 71 | 15 | 204800 | 1800 | |
56403000 | Mama_Bullki | C | July 1, 2019, 5:47 p.m. | OK | GNU C++17 | TESTS | 71 | 15 | 204800 | 1800 | |
56408152 | vjudge2 | C | July 1, 2019, 8:51 p.m. | OK | GNU C++17 | TESTS | 71 | 15 | 409600 | 1800 | |
56368919 | peace_keeping_gunboat | C | July 1, 2019, 2:02 a.m. | OK | GNU C++17 | TESTS | 71 | 15 | 1126400 | 1800 | |
56359047 | PrateekkeetarP | C | June 30, 2019, 6:24 p.m. | OK | GNU C++17 | TESTS | 71 | 15 | 1638400 | 1800 | |
58505141 | satyajit97 | C | Aug. 9, 2019, 4:05 p.m. | OK | GNU C++17 | TESTS | 71 | 15 | 8396800 | 1800 | |
60798441 | sighduck | C | Sept. 18, 2019, 4:57 p.m. | OK | Go | TESTS | 71 | 46 | 0 | 1800 | |
60752301 | dtsarun | C | Sept. 18, 2019, 7:01 a.m. | OK | Java 8 | TESTS | 71 | 109 | 0 | 1800 | |
60340583 | jenish9599 | C | Sept. 10, 2019, 10:38 a.m. | OK | Java 8 | TESTS | 71 | 109 | 0 | 1800 | |
56428396 | YousseF_Diaa | C | July 2, 2019, 10:51 a.m. | OK | Java 8 | TESTS | 71 | 109 | 0 | 1800 | |
56423680 | Musin | C | July 2, 2019, 8:35 a.m. | OK | Java 8 | TESTS | 71 | 109 | 0 | 1800 | |
56382174 | yorky | C | July 1, 2019, 8:55 a.m. | OK | Java 8 | TESTS | 71 | 109 | 0 | 1800 | |
56381584 | Lovinix | C | July 1, 2019, 8:41 a.m. | OK | Java 8 | TESTS | 71 | 109 | 0 | 1800 | |
56372612 | abhi2601 | C | July 1, 2019, 4:45 a.m. | OK | Java 8 | TESTS | 71 | 109 | 0 | 1800 | |
56372411 | kuzan_aokiji | C | July 1, 2019, 4:36 a.m. | OK | Java 8 | TESTS | 71 | 109 | 0 | 1800 | |
56371715 | kuzan_aokiji | C | July 1, 2019, 4:05 a.m. | OK | Java 8 | TESTS | 71 | 109 | 0 | 1800 | |
56364031 | bhautik_77 | C | June 30, 2019, 9:09 p.m. | OK | Java 8 | TESTS | 71 | 109 | 0 | 1800 | |
56874278 | PugachAG | C | July 12, 2019, 7:42 a.m. | OK | Kotlin | TESTS | 71 | 140 | 102400 | 1800 | |
56397230 | Spheniscine | C | July 1, 2019, 3:09 p.m. | OK | Kotlin | TESTS | 71 | 155 | 307200 | 1800 | |
56529203 | amirrr | C | July 4, 2019, 6:44 p.m. | OK | Kotlin | TESTS | 71 | 155 | 716800 | 1800 | |
57061243 | sekti rattowitsch | C | July 14, 2019, 6:05 p.m. | OK | Kotlin | TESTS | 71 | 155 | 1228800 | 1800 | |
56364338 | knightL | C | June 30, 2019, 9:23 p.m. | OK | Kotlin | TESTS | 71 | 156 | 1228800 | 1800 | |
56492625 | mendel_vv | C | July 3, 2019, 11:53 p.m. | OK | Kotlin | TESTS | 71 | 170 | 204800 | 1800 | |
56535284 | Quaternion | C | July 4, 2019, 11:47 p.m. | OK | Kotlin | TESTS | 71 | 186 | 1536000 | 1800 | |
56360433 | sashamc | C | June 30, 2019, 7:03 p.m. | OK | Kotlin | TESTS | 71 | 187 | 1536000 | 1800 | |
56343745 | pavlo.liapota | C | June 30, 2019, 4:47 p.m. | OK | Kotlin | TESTS | 71 | 202 | 1433600 | 1800 | |
56402311 | sashamc | C | July 1, 2019, 5:27 p.m. | OK | Kotlin | TESTS | 71 | 202 | 1536000 | 1800 | |
56426058 | og.kostya | C | July 2, 2019, 9:41 a.m. | OK | Mono C# | TESTS | 71 | 62 | 204800 | 1800 | |
56426742 | almasip | C | July 2, 2019, 9:59 a.m. | OK | Mono C# | TESTS | 71 | 62 | 409600 | 1800 | |
56519391 | sevimlikedicik | C | July 4, 2019, 2:15 p.m. | OK | Mono C# | TESTS | 71 | 62 | 3891200 | 1800 | |
57081358 | XelMed | C | July 15, 2019, 7:20 a.m. | OK | Mono C# | TESTS | 71 | 77 | 3891200 | 1800 | |
56363536 | duronto | C | June 30, 2019, 8:45 p.m. | OK | Mono C# | TESTS | 71 | 77 | 3993600 | 1800 | |
57139679 | fastnoise | C | July 16, 2019, 10:27 a.m. | OK | Mono C# | TESTS | 71 | 77 | 6758400 | 1800 | |
68840433 | vjudge2 | C | Jan. 15, 2020, 5:35 a.m. | OK | MS C++ | TESTS | 71 | 31 | 0 | 1800 | |
69075628 | rures | C | Jan. 19, 2020, 2:51 a.m. | OK | MS C++ | TESTS | 71 | 31 | 0 | 1800 | |
66273288 | vjudge4 | C | Dec. 4, 2019, 1:07 p.m. | OK | MS C++ | TESTS | 71 | 31 | 0 | 1800 | |
64551169 | vjudge1 | C | Nov. 8, 2019, 11:28 p.m. | OK | MS C++ | TESTS | 71 | 31 | 0 | 1800 | |
64522883 | vjudge2 | C | Nov. 8, 2019, 12:52 p.m. | OK | MS C++ | TESTS | 71 | 31 | 0 | 1800 | |
58513994 | kevin19984 | C | Aug. 9, 2019, 9:07 p.m. | OK | MS C++ | TESTS | 71 | 31 | 0 | 1800 | |
57170245 | vjudge3 | C | July 17, 2019, 2:32 a.m. | OK | MS C++ | TESTS | 71 | 31 | 0 | 1800 | |
57126360 | vjudge1 | C | July 16, 2019, 4:41 a.m. | OK | MS C++ | TESTS | 71 | 31 | 0 | 1800 | |
57079947 | vjudge3 | C | July 15, 2019, 6:53 a.m. | OK | MS C++ | TESTS | 71 | 31 | 0 | 1800 | |
56879977 | asdkjc | C | July 12, 2019, 9:58 a.m. | OK | MS C++ | TESTS | 71 | 31 | 0 | 1800 | |
57581509 | vjudge3 | C | July 23, 2019, 9:02 a.m. | OK | MS C++ 2017 | TESTS | 71 | 31 | 0 | 1800 | |
57581140 | vjudge1 | C | July 23, 2019, 8:54 a.m. | OK | MS C++ 2017 | TESTS | 71 | 31 | 0 | 1800 | |
57580813 | vjudge1 | C | July 23, 2019, 8:48 a.m. | OK | MS C++ 2017 | TESTS | 71 | 31 | 0 | 1800 | |
57580176 | vjudge2 | C | July 23, 2019, 8:34 a.m. | OK | MS C++ 2017 | TESTS | 71 | 31 | 0 | 1800 | |
57816186 | alina_bulkina | C | July 26, 2019, 7:50 p.m. | OK | MS C++ 2017 | TESTS | 71 | 31 | 0 | 1800 | |
59094438 | nuchenghao | C | Aug. 19, 2019, 1:44 p.m. | OK | MS C++ 2017 | TESTS | 71 | 31 | 0 | 1800 | |
61602932 | CodeZYQ | C | Oct. 1, 2019, 11:43 a.m. | OK | MS C++ 2017 | TESTS | 71 | 31 | 0 | 1800 | |
61603127 | vjudge5 | C | Oct. 1, 2019, 11:47 a.m. | OK | MS C++ 2017 | TESTS | 71 | 31 | 0 | 1800 | |
68846541 | vjudge5 | C | Jan. 15, 2020, 7:36 a.m. | OK | MS C++ 2017 | TESTS | 71 | 31 | 0 | 1800 | |
69222575 | suun | C | Jan. 21, 2020, 5:33 a.m. | OK | MS C++ 2017 | TESTS | 71 | 31 | 0 | 1800 | |
56826080 | mojocerob | C | July 11, 2019, 4:22 a.m. | OK | Node.js | TESTS | 71 | 156 | 3993600 | 1800 | |
56449765 | mayakin | C | July 2, 2019, 9:09 p.m. | OK | PHP | TESTS | 71 | 46 | 0 | 1800 | |
56556379 | lostamok | C | July 5, 2019, 12:34 p.m. | OK | PHP | TESTS | 71 | 46 | 409600 | 1800 | |
56556272 | lostamok | C | July 5, 2019, 12:31 p.m. | OK | PHP | TESTS | 71 | 46 | 409600 | 1800 | |
56556166 | lostamok | C | July 5, 2019, 12:27 p.m. | OK | PHP | TESTS | 71 | 61 | 409600 | 1800 | |
57332538 | -Morass- | C | July 19, 2019, 2:46 p.m. | OK | PyPy 2 | TESTS | 71 | 124 | 409600 | 1800 | |
57139355 | raj1307 | C | July 16, 2019, 10:19 a.m. | OK | PyPy 2 | TESTS | 71 | 140 | 409600 | 1800 | |
56342127 | kabeer27 | C | June 30, 2019, 4:40 p.m. | OK | PyPy 2 | TESTS | 71 | 140 | 614400 | 1800 | |
56372419 | kuzan_aokiji | C | July 1, 2019, 4:37 a.m. | OK | PyPy 2 | TESTS | 71 | 155 | 307200 | 1800 | |
56371611 | kuzan_aokiji | C | July 1, 2019, 4:02 a.m. | OK | PyPy 2 | TESTS | 71 | 156 | 614400 | 1800 | |
56385663 | shehebe | C | July 1, 2019, 10:25 a.m. | OK | PyPy 2 | TESTS | 71 | 171 | 1536000 | 1800 | |
60073814 | ssk497 | C | Sept. 5, 2019, 11:59 a.m. | OK | PyPy 2 | TESTS | 71 | 296 | 8294400 | 1800 | |
64167379 | Whosyourjay | C | Nov. 3, 2019, 4:52 p.m. | OK | PyPy 3 | TESTS | 71 | 155 | 1740800 | 1800 | |
56360312 | aberent | C | June 30, 2019, 7 p.m. | OK | PyPy 3 | TESTS | 71 | 155 | 1740800 | 1800 | |
56444808 | sm1ley | C | July 2, 2019, 6:18 p.m. | OK | PyPy 3 | TESTS | 71 | 155 | 1843200 | 1800 | |
56360145 | ThePonyCoder | C | June 30, 2019, 6:56 p.m. | OK | PyPy 3 | TESTS | 71 | 155 | 1843200 | 1800 | |
56372182 | Pokeylope | C | July 1, 2019, 4:26 a.m. | OK | PyPy 3 | TESTS | 71 | 155 | 1945600 | 1800 | |
68239704 | vyassamir | C | Jan. 5, 2020, 12:20 p.m. | OK | PyPy 3 | TESTS | 71 | 156 | 2252800 | 1800 | |
56368897 | shyman | C | July 1, 2019, 2:01 a.m. | OK | PyPy 3 | TESTS | 71 | 170 | 2764800 | 1800 | |
56393297 | nik-in-au | C | July 1, 2019, 1:29 p.m. | OK | PyPy 3 | TESTS | 71 | 171 | 1638400 | 1800 | |
56364508 | MasterAnmol | C | June 30, 2019, 9:30 p.m. | OK | PyPy 3 | TESTS | 71 | 171 | 2457600 | 1800 | |
56360050 | MasterAnmol | C | June 30, 2019, 6:53 p.m. | OK | PyPy 3 | TESTS | 71 | 171 | 2457600 | 1800 | |
58923564 | Helli.code | C | Aug. 16, 2019, 6:18 p.m. | OK | Python 2 | TESTS | 71 | 186 | 102400 | 1800 | |
56424365 | anshuman16423 | C | July 2, 2019, 8:52 a.m. | OK | Python 2 | TESTS | 71 | 187 | 102400 | 1800 | |
56374855 | the_white_devil | C | July 1, 2019, 6:04 a.m. | OK | Python 3 | TESTS | 71 | 109 | 307200 | 1800 | |
58184195 | codershuvo | C | Aug. 2, 2019, 4:26 p.m. | OK | Python 3 | TESTS | 71 | 109 | 409600 | 1800 | |
56816887 | erickjohnross | C | July 10, 2019, 7:46 p.m. | OK | Python 3 | TESTS | 71 | 109 | 409600 | 1800 | |
56443696 | prmangal | C | July 2, 2019, 5:45 p.m. | OK | Python 3 | TESTS | 71 | 109 | 409600 | 1800 | |
63961152 | QuantumKnight | C | Nov. 1, 2019, 5:12 a.m. | OK | Python 3 | TESTS | 71 | 124 | 307200 | 1800 | |
58249060 | tomzhangyx2 | C | Aug. 4, 2019, 6:58 a.m. | OK | Python 3 | TESTS | 71 | 124 | 307200 | 1800 | |
56737978 | cqatcf | C | July 9, 2019, 6:22 a.m. | OK | Python 3 | TESTS | 71 | 124 | 307200 | 1800 | |
56432679 | sobik | C | July 2, 2019, 12:45 p.m. | OK | Python 3 | TESTS | 71 | 124 | 307200 | 1800 | |
56374105 | joe_joe | C | July 1, 2019, 5:41 a.m. | OK | Python 3 | TESTS | 71 | 124 | 307200 | 1800 | |
56359482 | elayla | C | June 30, 2019, 6:37 p.m. | OK | Python 3 | TESTS | 71 | 124 | 307200 | 1800 | |
56341731 | yakamoto | C | June 30, 2019, 4:38 p.m. | OK | Scala | TESTS | 71 | 452 | 0 | 1800 | |
57067702 | smas | C | July 14, 2019, 11:42 p.m. | OK | Scala | TESTS | 71 | 545 | 0 | 1800 |
Back to search problems