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 |
---|---|---|---|---|---|---|
1485 | Codeforces Round 701 (Div. 2) | FINISHED | False | 7200 | 118681799 | Feb. 12, 2021, 2:50 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 17139 ) | B | Replace and Keep Sorted | PROGRAMMING | dp implementation math | 1200 |
B'Given a positive integer k , two arrays are called k -similar if: You are given an integer k , a strictly increasing array a and q queries. For each query, you are given two integers l_i <= q r_i . Your task is to find how many arrays b exist, such that b is k -similar to array [a_{l_i},a_{l_i+1} ldots,a_{r_i}] . The first line contains three integers n , q and k ( 1 <= q n, q <= q 10^5 , n <= q k <= q 10^9 ) -- the length of array a , the number of queries and number k . The second line contains n integers a_1, a_2, ldots,a_n ( 1 <= q a_i <= q k ). This array is strictly increasing -- a_1 < a_2 < ldots < a_n . Each of the following q lines contains two integers l_i , r_i ( 1 <= q l_i <= q r_i <= q n ). Print q lines. The i -th of them should contain the answer to the i -th query. In the first example: In the first query there are 4 arrays that are 5 -similar to [2,4] : [1,4],[3,4],[2,3],[2,5] . In the second query there are 3 arrays that are 5 -similar to [4,5] : [1,5],[2,5],[3,5] . '... |
Editorial of Codeforces Round #701 (Div. 2) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
107234439 | Beku.sh | B | Feb. 12, 2021, 6:01 p.m. | OK | GNU C11 | TESTS | 29 | 436 | 409600 | 1200 | |
107226392 | apsinghnsa | B | Feb. 12, 2021, 4:43 p.m. | OK | GNU C11 | TESTS | 29 | 451 | 409600 | 1200 | |
107235279 | Beku.sh | B | Feb. 12, 2021, 6:14 p.m. | OK | GNU C11 | TESTS | 29 | 452 | 409600 | 1200 | |
107252658 | nk.ramakrishnan | B | Feb. 13, 2021, 4:12 a.m. | OK | GNU C11 | TESTS | 29 | 452 | 1638400 | 1200 | |
107222042 | yingmanji | B | Feb. 12, 2021, 4:26 p.m. | OK | GNU C11 | TESTS | 29 | 452 | 4812800 | 1200 | |
107237990 | Guangyaochenyu | B | Feb. 12, 2021, 6:56 p.m. | OK | GNU C11 | TESTS | 29 | 467 | 409600 | 1200 | |
107225203 | TrandeLik | B | Feb. 12, 2021, 4:39 p.m. | OK | GNU C11 | TESTS | 29 | 467 | 819200 | 1200 | |
107219959 | Guangyaochenyu | B | Feb. 12, 2021, 4:17 p.m. | OK | GNU C11 | TESTS | 29 | 468 | 819200 | 1200 | |
107221032 | Darkened_Sky | B | Feb. 12, 2021, 4:22 p.m. | OK | GNU C11 | TESTS | 29 | 483 | 1638400 | 1200 | |
107249643 | linkfqy | B | Feb. 13, 2021, 2:29 a.m. | OK | GNU C++11 | TESTS | 29 | 46 | 1536000 | 1200 | |
107248884 | Anonymous31416 | B | Feb. 13, 2021, 1:57 a.m. | OK | GNU C++11 | TESTS | 29 | 46 | 1638400 | 1200 | |
107231823 | qdnoip | B | Feb. 12, 2021, 5:33 p.m. | OK | GNU C++11 | TESTS | 29 | 46 | 3174400 | 1200 | |
107250979 | register-Gen | B | Feb. 13, 2021, 3:20 a.m. | OK | GNU C++11 | TESTS | 29 | 46 | 22016000 | 1200 | |
107248765 | TwilightShadow | B | Feb. 13, 2021, 1:50 a.m. | OK | GNU C++11 | TESTS | 29 | 61 | 409600 | 1200 | |
107249206 | fhqTreap | B | Feb. 13, 2021, 2:11 a.m. | OK | GNU C++11 | TESTS | 29 | 61 | 819200 | 1200 | |
107232874 | over_blue_sky | B | Feb. 12, 2021, 5:43 p.m. | OK | GNU C++11 | TESTS | 29 | 61 | 1638400 | 1200 | |
107252123 | Aestas16 | B | Feb. 13, 2021, 3:55 a.m. | OK | GNU C++11 | TESTS | 29 | 61 | 2252800 | 1200 | |
107247223 | yzx1798106406 | B | Feb. 13, 2021, 12:23 a.m. | OK | GNU C++11 | TESTS | 29 | 62 | 819200 | 1200 | |
107248589 | szhlg | B | Feb. 13, 2021, 1:41 a.m. | OK | GNU C++11 | TESTS | 29 | 62 | 819200 | 1200 | |
107243915 | PoseiDon_10 | B | Feb. 12, 2021, 9:26 p.m. | OK | GNU C++14 | TESTS | 29 | 93 | 819200 | 1200 | |
107244520 | racsosabe | B | Feb. 12, 2021, 9:50 p.m. | OK | GNU C++14 | TESTS | 29 | 93 | 1228800 | 1200 | |
107238395 | new_LZJ | B | Feb. 12, 2021, 7:03 p.m. | OK | GNU C++14 | TESTS | 29 | 93 | 1228800 | 1200 | |
107248527 | NicoCulini | B | Feb. 13, 2021, 1:37 a.m. | OK | GNU C++14 | TESTS | 29 | 108 | 409600 | 1200 | |
107232907 | Splashing | B | Feb. 12, 2021, 5:43 p.m. | OK | GNU C++14 | TESTS | 29 | 108 | 1228800 | 1200 | |
107247407 | exode4 | B | Feb. 13, 2021, 12:35 a.m. | OK | GNU C++14 | TESTS | 29 | 108 | 1638400 | 1200 | |
107247961 | zw_xiaohao | B | Feb. 13, 2021, 1:07 a.m. | OK | GNU C++14 | TESTS | 29 | 108 | 2457600 | 1200 | |
107250248 | RHliu | B | Feb. 13, 2021, 2:53 a.m. | OK | GNU C++14 | TESTS | 29 | 108 | 40038400 | 1200 | |
107253178 | freakinrameez9 | B | Feb. 13, 2021, 4:28 a.m. | OK | GNU C++14 | TESTS | 29 | 109 | 409600 | 1200 | |
107253195 | Codermonk | B | Feb. 13, 2021, 4:29 a.m. | OK | GNU C++14 | TESTS | 29 | 109 | 409600 | 1200 | |
107223699 | j9x19y | B | Feb. 12, 2021, 4:33 p.m. | OK | GNU C++17 | TESTS | 29 | 93 | 409600 | 1200 | |
107235592 | noomaK | B | Feb. 12, 2021, 6:18 p.m. | OK | GNU C++17 | TESTS | 29 | 93 | 409600 | 1200 | |
107226639 | windy7926778 | B | Feb. 12, 2021, 4:44 p.m. | OK | GNU C++17 | TESTS | 29 | 93 | 1228800 | 1200 | |
107249351 | SongGG | B | Feb. 13, 2021, 2:18 a.m. | OK | GNU C++17 | TESTS | 29 | 108 | 409600 | 1200 | |
107254272 | onesunny | B | Feb. 13, 2021, 5 a.m. | OK | GNU C++17 | TESTS | 29 | 108 | 409600 | 1200 | |
107227751 | dou_ji_ | B | Feb. 12, 2021, 4:47 p.m. | OK | GNU C++17 | TESTS | 29 | 108 | 819200 | 1200 | |
107227951 | HandlyHwaEsmy | B | Feb. 12, 2021, 4:48 p.m. | OK | GNU C++17 | TESTS | 29 | 108 | 819200 | 1200 | |
107229760 | Messywind | B | Feb. 12, 2021, 5:20 p.m. | OK | GNU C++17 | TESTS | 29 | 108 | 1945600 | 1200 | |
107254801 | Lehe | B | Feb. 13, 2021, 5:12 a.m. | OK | GNU C++17 | TESTS | 29 | 109 | 409600 | 1200 | |
107252869 | mdstoy | B | Feb. 13, 2021, 4:19 a.m. | OK | GNU C++17 | TESTS | 29 | 109 | 409600 | 1200 | |
107238593 | JohnSmith0081 | B | Feb. 12, 2021, 7:08 p.m. | OK | GNU C++17 (64) | TESTS | 29 | 46 | 4300800 | 1200 | |
107246266 | Sakuyalove | B | Feb. 12, 2021, 11:22 p.m. | OK | GNU C++17 (64) | TESTS | 29 | 46 | 5529600 | 1200 | |
107245856 | AnandOza | B | Feb. 12, 2021, 10:57 p.m. | OK | GNU C++17 (64) | TESTS | 29 | 77 | 409600 | 1200 | |
107253149 | LethalPuppy | B | Feb. 13, 2021, 4:28 a.m. | OK | GNU C++17 (64) | TESTS | 29 | 77 | 819200 | 1200 | |
107231805 | Tanbin_Hasan | B | Feb. 12, 2021, 5:33 p.m. | OK | GNU C++17 (64) | TESTS | 29 | 77 | 819200 | 1200 | |
107247254 | smax | B | Feb. 13, 2021, 12:25 a.m. | OK | GNU C++17 (64) | TESTS | 29 | 77 | 1228800 | 1200 | |
107229821 | madlogic | B | Feb. 12, 2021, 5:20 p.m. | OK | GNU C++17 (64) | TESTS | 29 | 77 | 2457600 | 1200 | |
107230294 | keijak | B | Feb. 12, 2021, 5:22 p.m. | OK | GNU C++17 (64) | TESTS | 29 | 77 | 2457600 | 1200 | |
107257020 | yuji9511 | B | Feb. 13, 2021, 5:58 a.m. | OK | GNU C++17 (64) | TESTS | 29 | 77 | 3276800 | 1200 | |
107232658 | Meul | B | Feb. 12, 2021, 5:41 p.m. | OK | GNU C++17 (64) | TESTS | 29 | 77 | 24064000 | 1200 | |
107251945 | pohzipohzi | B | Feb. 13, 2021, 3:50 a.m. | OK | Go | TESTS | 29 | 93 | 4505600 | 1200 | |
107248333 | pohzipohzi | B | Feb. 13, 2021, 1:28 a.m. | OK | Go | TESTS | 29 | 93 | 4608000 | 1200 | |
107219060 | sumit.dhull610 | B | Feb. 12, 2021, 4:14 p.m. | OK | Go | TESTS | 29 | 530 | 4505600 | 1200 | |
107253063 | gAyan17 | B | Feb. 13, 2021, 4:25 a.m. | OK | Java 11 | TESTS | 29 | 187 | 0 | 1200 | |
107251676 | tushar_patil | B | Feb. 13, 2021, 3:42 a.m. | OK | Java 11 | TESTS | 29 | 249 | 0 | 1200 | |
107237978 | kiberKotleta2009 | B | Feb. 12, 2021, 6:56 p.m. | OK | Java 11 | TESTS | 29 | 264 | 0 | 1200 | |
107236367 | aym_05 | B | Feb. 12, 2021, 6:31 p.m. | OK | Java 11 | TESTS | 29 | 264 | 0 | 1200 | |
107232805 | onlytrall | B | Feb. 12, 2021, 5:42 p.m. | OK | Java 11 | TESTS | 29 | 265 | 0 | 1200 | |
107225817 | urlaubsreif_sumin | B | Feb. 12, 2021, 4:41 p.m. | OK | Java 11 | TESTS | 29 | 265 | 0 | 1200 | |
107255223 | saurabh_kl | B | Feb. 13, 2021, 5:21 a.m. | OK | Java 11 | TESTS | 29 | 265 | 0 | 1200 | |
107254723 | pikachu_pika_pika | B | Feb. 13, 2021, 5:10 a.m. | OK | Java 11 | TESTS | 29 | 265 | 0 | 1200 | |
107244721 | teenGraph | B | Feb. 12, 2021, 9:58 p.m. | OK | Java 11 | TESTS | 29 | 265 | 0 | 1200 | |
107253123 | prateeek_coder | B | Feb. 13, 2021, 4:27 a.m. | OK | Java 11 | TESTS | 29 | 280 | 0 | 1200 | |
107230111 | gagan_6730 | B | Feb. 12, 2021, 5:21 p.m. | OK | Java 8 | TESTS | 29 | 202 | 0 | 1200 | |
107221930 | pavel.v.shlyk | B | Feb. 12, 2021, 4:26 p.m. | OK | Java 8 | TESTS | 29 | 202 | 0 | 1200 | |
107244779 | MrMainThread | B | Feb. 12, 2021, 10:01 p.m. | OK | Java 8 | TESTS | 29 | 202 | 0 | 1200 | |
107241230 | nandit | B | Feb. 12, 2021, 8:07 p.m. | OK | Java 8 | TESTS | 29 | 202 | 0 | 1200 | |
107231431 | twoBit | B | Feb. 12, 2021, 5:30 p.m. | OK | Java 8 | TESTS | 29 | 202 | 0 | 1200 | |
107228232 | Extends | B | Feb. 12, 2021, 4:48 p.m. | OK | Java 8 | TESTS | 29 | 202 | 0 | 1200 | |
107230357 | kocko | B | Feb. 12, 2021, 5:22 p.m. | OK | Java 8 | TESTS | 29 | 217 | 0 | 1200 | |
107227215 | HideBeyondYou | B | Feb. 12, 2021, 4:46 p.m. | OK | Java 8 | TESTS | 29 | 217 | 0 | 1200 | |
107248793 | I_love_dp | B | Feb. 13, 2021, 1:51 a.m. | OK | Java 8 | TESTS | 29 | 218 | 0 | 1200 | |
107248455 | tiwariabhishek | B | Feb. 13, 2021, 1:34 a.m. | OK | Java 8 | TESTS | 29 | 218 | 6041600 | 1200 | |
107247154 | Spheniscine | B | Feb. 13, 2021, 12:19 a.m. | OK | Kotlin | TESTS | 29 | 171 | 0 | 1200 | |
107230393 | koboshi | B | Feb. 12, 2021, 5:22 p.m. | OK | Kotlin | TESTS | 29 | 233 | 204800 | 1200 | |
107222204 | Potassium | B | Feb. 12, 2021, 4:27 p.m. | OK | Kotlin | TESTS | 29 | 982 | 4812800 | 1200 | |
107225132 | vladisov | B | Feb. 12, 2021, 4:39 p.m. | OK | Kotlin | TESTS | 29 | 1076 | 4812800 | 1200 | |
107219500 | DMN | B | Feb. 12, 2021, 4:16 p.m. | OK | Mono C# | TESTS | 29 | 561 | 227020800 | 1200 | |
107256198 | SuperMurloc | B | Feb. 13, 2021, 5:41 a.m. | OK | MS C++ 2017 | TESTS | 29 | 124 | 716800 | 1200 | |
107222174 | 2019112325 | B | Feb. 12, 2021, 4:27 p.m. | OK | MS C++ 2017 | TESTS | 29 | 124 | 819200 | 1200 | |
107248971 | njtech1921147136 | B | Feb. 13, 2021, 2:01 a.m. | OK | MS C++ 2017 | TESTS | 29 | 124 | 8294400 | 1200 | |
107224535 | AmalSN | B | Feb. 12, 2021, 4:36 p.m. | OK | MS C++ 2017 | TESTS | 29 | 140 | 1024000 | 1200 | |
107218902 | porridge_tl | B | Feb. 12, 2021, 4:13 p.m. | OK | MS C++ 2017 | TESTS | 29 | 140 | 2662400 | 1200 | |
107249058 | njtech1921147136 | B | Feb. 13, 2021, 2:05 a.m. | OK | MS C++ 2017 | TESTS | 29 | 156 | 11264000 | 1200 | |
107222039 | icey_z | B | Feb. 12, 2021, 4:26 p.m. | OK | MS C++ 2017 | TESTS | 29 | 264 | 2048000 | 1200 | |
107231105 | kws04004 | B | Feb. 12, 2021, 5:27 p.m. | OK | MS C++ 2017 | TESTS | 29 | 296 | 1228800 | 1200 | |
107231224 | Albertplus007 | B | Feb. 12, 2021, 5:28 p.m. | OK | MS C++ 2017 | TESTS | 29 | 311 | 409600 | 1200 | |
107230452 | rishikeshjoshi123 | B | Feb. 12, 2021, 5:23 p.m. | OK | MS C++ 2017 | TESTS | 29 | 312 | 1228800 | 1200 | |
107223159 | ravinem1 | B | Feb. 12, 2021, 4:31 p.m. | OK | .NET Core C# | TESTS | 29 | 186 | 19558400 | 1200 | |
107226511 | NorDDay | B | Feb. 12, 2021, 4:43 p.m. | OK | .NET Core C# | TESTS | 29 | 748 | 19046400 | 1200 | |
107238324 | tennisru | B | Feb. 12, 2021, 7:02 p.m. | OK | Node.js | TESTS | 29 | 904 | 33177600 | 1200 | |
107231625 | vvedant99 | B | Feb. 12, 2021, 5:31 p.m. | OK | PyPy 3 | TESTS | 29 | 249 | 14438400 | 1200 | |
107256674 | feelme | B | Feb. 13, 2021, 5:51 a.m. | OK | PyPy 3 | TESTS | 29 | 249 | 14848000 | 1200 | |
107245040 | deepanshu_pali | B | Feb. 12, 2021, 10:13 p.m. | OK | PyPy 3 | TESTS | 29 | 249 | 14848000 | 1200 | |
107234500 | Kaleab_Asfaw | B | Feb. 12, 2021, 6:02 p.m. | OK | PyPy 3 | TESTS | 29 | 264 | 18022400 | 1200 | |
107233933 | wdyk70825 | B | Feb. 12, 2021, 5:54 p.m. | OK | PyPy 3 | TESTS | 29 | 265 | 59596800 | 1200 | |
107234234 | sk_loves_Ritika | B | Feb. 12, 2021, 5:58 p.m. | OK | PyPy 3 | TESTS | 29 | 280 | 14438400 | 1200 | |
107231359 | Akhil_Rautela | B | Feb. 12, 2021, 5:29 p.m. | OK | PyPy 3 | TESTS | 29 | 280 | 14848000 | 1200 | |
107234256 | wdyk70825 | B | Feb. 12, 2021, 5:58 p.m. | OK | PyPy 3 | TESTS | 29 | 295 | 60006400 | 1200 | |
107233726 | jimm89 | B | Feb. 12, 2021, 5:52 p.m. | OK | PyPy 3 | TESTS | 29 | 296 | 17408000 | 1200 | |
107232377 | wdyk70825 | B | Feb. 12, 2021, 5:38 p.m. | OK | PyPy 3 | TESTS | 29 | 296 | 59801600 | 1200 | |
107229700 | colicon | B | Feb. 12, 2021, 5:20 p.m. | OK | Python 3 | TESTS | 29 | 467 | 8499200 | 1200 | |
107240381 | LameCoder_38 | B | Feb. 12, 2021, 7:45 p.m. | OK | Python 3 | TESTS | 29 | 468 | 8601600 | 1200 | |
107240216 | MasterKali | B | Feb. 12, 2021, 7:41 p.m. | OK | Python 3 | TESTS | 29 | 483 | 9011200 | 1200 | |
107251185 | shiviDON | B | Feb. 13, 2021, 3:26 a.m. | OK | Python 3 | TESTS | 29 | 483 | 10752000 | 1200 | |
107238902 | aayush_1607 | B | Feb. 12, 2021, 7:13 p.m. | OK | Python 3 | TESTS | 29 | 529 | 9932800 | 1200 | |
107226573 | Mikasa_Nagashika | B | Feb. 12, 2021, 4:44 p.m. | OK | Python 3 | TESTS | 29 | 546 | 8499200 | 1200 | |
107226512 | samuellito | B | Feb. 12, 2021, 4:43 p.m. | OK | Python 3 | TESTS | 29 | 561 | 8499200 | 1200 | |
107221750 | no_cry | B | Feb. 12, 2021, 4:25 p.m. | OK | Python 3 | TESTS | 29 | 576 | 9625600 | 1200 | |
107230729 | recuraki | B | Feb. 12, 2021, 5:24 p.m. | OK | Python 3 | TESTS | 29 | 623 | 9625600 | 1200 | |
107224665 | nsharc4 | B | Feb. 12, 2021, 4:37 p.m. | OK | Python 3 | TESTS | 29 | 779 | 9011200 | 1200 |
Back to search problems