Codeforces Round 416 (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
811 Codeforces Round 416 (Div. 2) FINISHED False 7200 235945499 May 27, 2017, 9:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6510 ) B Vladik and Complicated Book PROGRAMMING implementation sortings 1300

B'Vladik had started reading a complicated book about algorithms containing n pages. To improve understanding of what is written, his friends advised him to read pages in some order given by permutation P xe2 x80 x89= xe2 x80 x89[p1, xe2 x80 x89p2, xe2 x80 x89..., xe2 x80 x89pn], where pi denotes the number of page that should be read i-th in turn. Sometimes Vladik xe2 x80 x99s mom sorted some subsegment of permutation P from position l to position r inclusive, because she loves the order. For every of such sorting Vladik knows number x -- what index of page in permutation he should read. He is wondered if the page, which he will read after sorting, has changed. In other words, has px changed? After every sorting Vladik return permutation to initial state, so you can assume that each sorting is independent from each other. First line contains two space-separated integers n, m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89104) -- length of permutation and number of times Vladik 's mom sorted some subsegment of the book. Second line contains n space-separated integers p1, xe2 x80 x89p2, xe2 x80 x89..., xe2 x80 x89pn (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89pi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) -- permutation P. Note that elements in permutation are distinct. Each of the next m lines contains three space-separated integers li, ri, xi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89xi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ri xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) -- left and right borders of sorted subsegment in i-th sorting and position that is interesting to Vladik. For each mom xe2 x80 x99s sorting on it xe2 x80 x99s own line print "Yes", if page which is interesting to Vladik hasn 't changed, or "No" otherwise. Explanation of first test case: '...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
27384868 nanae1914 B May 27, 2017, 11:15 a.m. OK D TESTS 91 124 4300800 1300
27374697 SirNickolas B May 27, 2017, 9:50 a.m. OK D TESTS 91 1388 102400 1300
27394799 ruban B May 27, 2017, 5:37 p.m. OK Delphi TESTS 91 624 8396800 1300
27394705 ruban B May 27, 2017, 5:30 p.m. OK Delphi TESTS 91 717 16793600 1300
28112702 Artemx B June 28, 2017, 9:50 a.m. OK FPC TESTS 91 327 1843200 1300
27378889 ndhp2000 B May 27, 2017, 10:15 a.m. OK FPC TESTS 91 358 921600 1300
30984210 Charleschenc B Oct. 4, 2017, 5:58 a.m. OK FPC TESTS 91 389 102400 1300
30984214 vjudge5 B Oct. 4, 2017, 5:58 a.m. OK FPC TESTS 91 390 102400 1300
27375867 darkkcyan B May 27, 2017, 9:56 a.m. OK FPC TESTS 91 420 102400 1300
27438291 KagamiharaNadeshiko B May 30, 2017, 1:58 a.m. OK FPC TESTS 91 451 102400 1300
27380259 yan_lazy B May 27, 2017, 10:26 a.m. OK FPC TESTS 91 483 102400 1300
27390170 Fred_Flintstone B May 27, 2017, 1:44 p.m. OK FPC TESTS 91 529 0 1300
27381358 luoxiaokan1527 B May 27, 2017, 10:38 a.m. OK FPC TESTS 91 529 0 1300
27926589 Grom9941 B June 20, 2017, 1:59 p.m. OK FPC TESTS 91 530 1638400 1300
27461113 KinKong1 B May 31, 2017, 7:24 a.m. OK GNU C TESTS 91 31 1331200 1300
27461082 KinKong1 B May 31, 2017, 7:21 a.m. OK GNU C TESTS 91 31 1331200 1300
27626469 django_kil B June 7, 2017, 6:25 a.m. OK GNU C TESTS 91 78 0 1300
27561789 vjudge5 B June 4, 2017, 11:22 a.m. OK GNU C TESTS 91 78 0 1300
27471184 Musfiq_Mridha B May 31, 2017, 4:34 p.m. OK GNU C TESTS 91 78 0 1300
27438685 JoeBlow B May 30, 2017, 2:43 a.m. OK GNU C TESTS 91 78 0 1300
27436822 Codematters B May 29, 2017, 10:20 p.m. OK GNU C TESTS 91 78 0 1300
27429487 frank_expert B May 29, 2017, 12:54 p.m. OK GNU C TESTS 91 78 0 1300
27427959 psh330327 B May 29, 2017, 11:09 a.m. OK GNU C TESTS 91 78 0 1300
27415634 vladislav_k B May 28, 2017, 3:19 p.m. OK GNU C TESTS 91 78 0 1300
27435932 krijgertje B May 29, 2017, 8:38 p.m. OK GNU C++ TESTS 91 15 307200 1300
27381880 Neymars B May 27, 2017, 10:43 a.m. OK GNU C++ TESTS 91 15 1228800 1300
27374805 samjia2000 B May 27, 2017, 9:51 a.m. OK GNU C++ TESTS 91 15 2457600 1300
29229065 Oxer11 B Aug. 6, 2017, 12:12 a.m. OK GNU C++ TESTS 91 15 2662400 1300
27379554 Merln B May 27, 2017, 10:20 a.m. OK GNU C++ TESTS 91 15 7577600 1300
27713071 DFPMTS B June 11, 2017, 1:03 a.m. OK GNU C++ TESTS 91 15 7782400 1300
27553655 EnjoyCallen B June 4, 2017, 1:29 a.m. OK GNU C++ TESTS 91 15 19865600 1300
28631826 vjudge1 B July 17, 2017, 7:41 a.m. OK GNU C++ TESTS 91 15 27340800 1300
27383383 catsworld B May 27, 2017, 10:59 a.m. OK GNU C++ TESTS 91 30 102400 1300
27626346 lgr745 B June 7, 2017, 6:17 a.m. OK GNU C++ TESTS 91 30 409600 1300
27486003 xiao-xiao B June 1, 2017, 1:50 p.m. OK GNU C11 TESTS 91 78 0 1300
27377729 f2lk6wf90d B May 27, 2017, 10:07 a.m. OK GNU C11 TESTS 91 93 0 1300
27392429 eajmain B May 27, 2017, 3:22 p.m. OK GNU C11 TESTS 91 109 0 1300
60585679 kaiboy B Sept. 14, 2019, 9:01 p.m. OK GNU C11 TESTS 91 109 0 1300
27484638 vjudge2 B June 1, 2017, 12:35 p.m. OK GNU C11 TESTS 91 124 0 1300
44405104 MiguelDoCarmo B Oct. 16, 2018, 2:30 p.m. OK GNU C11 TESTS 91 124 0 1300
27379064 PratikMandlecha B May 27, 2017, 10:16 a.m. OK GNU C11 TESTS 91 124 0 1300
27388290 abhinashjain B May 27, 2017, 12:43 p.m. OK GNU C11 TESTS 91 124 0 1300
27432993 ruined_shit B May 29, 2017, 5:07 p.m. OK GNU C11 TESTS 91 124 0 1300
27381166 sametgovercile B May 27, 2017, 10:35 a.m. OK GNU C11 TESTS 91 124 409600 1300
27462449 Rejur B May 31, 2017, 8:51 a.m. OK GNU C++11 TESTS 91 15 307200 1300
27580506 254886715 B June 5, 2017, 10:22 a.m. OK GNU C++11 TESTS 91 15 30822400 1300
27384067 problem-solved B May 27, 2017, 11:07 a.m. OK GNU C++11 TESTS 91 30 307200 1300
27379079 krzysiek27 B May 27, 2017, 10:16 a.m. OK GNU C++11 TESTS 91 30 716800 1300
27378136 CuriousCat.hzw B May 27, 2017, 10:10 a.m. OK GNU C++11 TESTS 91 31 102400 1300
27379162 rashish2202 B May 27, 2017, 10:17 a.m. OK GNU C++11 TESTS 91 31 307200 1300
29856488 kokarev B Aug. 29, 2017, 1:33 a.m. OK GNU C++11 TESTS 91 31 307200 1300
27377317 barriery B May 27, 2017, 10:04 a.m. OK GNU C++11 TESTS 91 31 307200 1300
27425910 mxzf0213 B May 29, 2017, 8:38 a.m. OK GNU C++11 TESTS 91 31 409600 1300
27460895 rajat1603 B May 31, 2017, 7:08 a.m. OK GNU C++11 TESTS 91 31 512000 1300
27379739 ReaLNero B May 27, 2017, 10:22 a.m. OK GNU C++14 TESTS 91 30 921600 1300
27379886 Boyou B May 27, 2017, 10:23 a.m. OK GNU C++14 TESTS 91 30 2457600 1300
34952720 Zlatan_05 B Feb. 5, 2018, 6:44 p.m. OK GNU C++14 TESTS 91 30 3174400 1300
27380671 Tumypmyp B May 27, 2017, 10:31 a.m. OK GNU C++14 TESTS 91 31 0 1300
27465352 abutoto B May 31, 2017, 11:30 a.m. OK GNU C++14 TESTS 91 31 307200 1300
27392290 misztsu B May 27, 2017, 3:16 p.m. OK GNU C++14 TESTS 91 31 409600 1300
27381392 _Mugiwara_ B May 27, 2017, 10:38 a.m. OK GNU C++14 TESTS 91 31 512000 1300
27478022 XenoAmess B June 1, 2017, 5:40 a.m. OK GNU C++14 TESTS 91 31 614400 1300
27477975 XenoAmess B June 1, 2017, 5:35 a.m. OK GNU C++14 TESTS 91 31 614400 1300
27385552 orz010orz B May 27, 2017, 11:23 a.m. OK GNU C++14 TESTS 91 31 1228800 1300
59247086 wjli B Aug. 22, 2019, 12:53 a.m. OK GNU C++17 TESTS 91 46 716800 1300
57851952 Rick1 B July 27, 2019, 1:28 p.m. OK GNU C++17 TESTS 91 46 32870400 1300
65347068 vjudge3 B Nov. 19, 2019, 12:57 p.m. OK GNU C++17 TESTS 91 77 409600 1300
39214756 Zihad_Bd B June 13, 2018, 11:32 a.m. OK GNU C++17 TESTS 91 78 0 1300
57138528 karansiwach360 B July 16, 2019, 9:56 a.m. OK GNU C++17 TESTS 91 92 307200 1300
50565927 vjudge2 B Feb. 27, 2019, 1:08 p.m. OK GNU C++17 TESTS 91 93 0 1300
59676472 IbraheemJanajreh B Aug. 29, 2019, 6:21 p.m. OK GNU C++17 TESTS 91 93 0 1300
57609255 marsupiale00 B July 23, 2019, 7:40 p.m. OK GNU C++17 TESTS 91 93 0 1300
64161849 Mai-sanBestWaifu B Nov. 3, 2019, 2:48 p.m. OK GNU C++17 TESTS 91 93 102400 1300
63090346 GustavoGuerra B Oct. 21, 2019, 6:11 p.m. OK GNU C++17 TESTS 91 93 102400 1300
37003394 samadhi B April 5, 2018, 4:54 p.m. OK Go TESTS 91 467 25497600 1300
44218947 Marii B Oct. 12, 2018, 4:45 p.m. OK Go TESTS 91 483 102400 1300
27377301 robostac B May 27, 2017, 10:04 a.m. OK Go TESTS 91 483 19968000 1300
27456525 Nesze B May 30, 2017, 10:31 p.m. OK Go TESTS 91 530 19251200 1300
27382481 Leonardone B May 27, 2017, 10:49 a.m. OK Go TESTS 91 1044 19148800 1300
27452226 bulda.e.bien B May 30, 2017, 4:36 p.m. OK Haskell TESTS 91 1419 8601600 1300
27469102 Killer45 B May 31, 2017, 2:36 p.m. OK Haskell TESTS 91 1497 8601600 1300
27392821 sl0th B May 27, 2017, 3:39 p.m. OK Haskell TESTS 91 1622 10649600 1300
66259428 its_aks_ulure B Dec. 4, 2019, 7:42 a.m. OK Java 11 TESTS 91 592 0 1300
27434328 catchup B May 29, 2017, 6:37 p.m. OK Java 8 TESTS 91 140 0 1300
27434252 catchup B May 29, 2017, 6:32 p.m. OK Java 8 TESTS 91 155 0 1300
27380517 aya_cool B May 27, 2017, 10:29 a.m. OK Java 8 TESTS 91 155 0 1300
27627973 donli B June 7, 2017, 7:54 a.m. OK Java 8 TESTS 91 187 0 1300
50328245 Ahmed_Diab B Feb. 22, 2019, 5:27 p.m. OK Java 8 TESTS 91 202 0 1300
49635546 ZeyadKhattab B Feb. 8, 2019, 6:30 p.m. OK Java 8 TESTS 91 202 0 1300
27378324 TheRenaissance B May 27, 2017, 10:11 a.m. OK Java 8 TESTS 91 202 0 1300
27519898 olya-chuchuk B June 2, 2017, 9:22 a.m. OK Java 8 TESTS 91 327 5939200 1300
27379836 Maulik_Patel B May 27, 2017, 10:23 a.m. OK Java 8 TESTS 91 373 0 1300
27377802 milap_shah B May 27, 2017, 10:07 a.m. OK Java 8 TESTS 91 404 0 1300
34819150 mayakin B Feb. 1, 2018, 7:59 p.m. OK JavaScript TESTS 91 592 7270400 1300
27556987 lcpcsky B June 4, 2017, 6:36 a.m. OK JavaScript TESTS 91 904 8806400 1300
27379268 dened B May 27, 2017, 10:18 a.m. OK Kotlin TESTS 91 280 716800 1300
27385073 yashk B May 27, 2017, 11:17 a.m. OK Kotlin TESTS 91 561 1126400 1300
27416047 Voudy B May 28, 2017, 3:47 p.m. OK Kotlin TESTS 91 1387 1024000 1300
27416053 Voudy B May 28, 2017, 3:48 p.m. OK Kotlin TESTS 91 1387 1228800 1300
27379480 serejkee B May 27, 2017, 10:19 a.m. OK Kotlin TESTS 91 1996 260403200 1300
27374663 peregrinus B May 27, 2017, 9:50 a.m. OK Mono C# TESTS 91 421 5632000 1300
27476067 krazyduck B June 1, 2017, 1:38 a.m. OK Mono C# TESTS 91 436 5632000 1300
27380416 mban259 B May 27, 2017, 10:28 a.m. OK Mono C# TESTS 91 451 3276800 1300
27384984 semera B May 27, 2017, 11:16 a.m. OK Mono C# TESTS 91 467 3379200 1300
27478669 csharpist B June 1, 2017, 6:25 a.m. OK Mono C# TESTS 91 483 5632000 1300
27478701 csharpist B June 1, 2017, 6:27 a.m. OK Mono C# TESTS 91 514 5632000 1300
27577563 Xtreemist B June 5, 2017, 7:12 a.m. OK Mono C# TESTS 91 654 3072000 1300
51217403 nemars B March 12, 2019, 11:11 a.m. OK Mono C# TESTS 91 1231 6963200 1300
27384626 mircea85 B May 27, 2017, 11:12 a.m. OK MS C# TESTS 91 249 2969600 1300
27394536 Samyrai B May 27, 2017, 5:18 p.m. OK MS C# TESTS 91 265 5836800 1300
27380114 AdMiRaLL B May 27, 2017, 10:25 a.m. OK MS C# TESTS 91 265 5836800 1300
27412011 artsin666 B May 28, 2017, 12:06 p.m. OK MS C# TESTS 91 389 3276800 1300
27400552 og.kostya B May 28, 2017, 4:20 a.m. OK MS C# TESTS 91 405 409600 1300
27400624 og.kostya B May 28, 2017, 4:26 a.m. OK MS C# TESTS 91 405 409600 1300
27382817 solw B May 27, 2017, 10:52 a.m. OK MS C# TESTS 91 421 3276800 1300
27422200 Sipher B May 29, 2017, 2:38 a.m. OK MS C# TESTS 91 436 5632000 1300
27447176 DmitriyMelyukhov B May 30, 2017, 11:36 a.m. OK MS C# TESTS 91 452 3072000 1300
27418168 CroDoc B May 28, 2017, 6:30 p.m. OK MS C# TESTS 91 452 5632000 1300
27383120 KOH B May 27, 2017, 10:56 a.m. OK MS C++ TESTS 91 31 41881600 1300
31725420 marszed B Oct. 25, 2017, 11:51 p.m. OK MS C++ TESTS 91 62 1331200 1300
27652449 Godfella B June 7, 2017, 3:29 p.m. OK MS C++ TESTS 91 62 2457600 1300
27379477 assassinysc B May 27, 2017, 10:19 a.m. OK MS C++ TESTS 91 187 307200 1300
31725451 marszed B Oct. 25, 2017, 11:53 p.m. OK MS C++ TESTS 91 187 2969600 1300
45054420 vjudge1 B Oct. 29, 2018, 12:07 p.m. OK MS C++ TESTS 91 265 102400 1300
31725472 marszed B Oct. 25, 2017, 11:56 p.m. OK MS C++ TESTS 91 296 512000 1300
27386848 miumiu B May 27, 2017, 11:34 a.m. OK MS C++ TESTS 91 327 102400 1300
27505785 Ccccccccccc B June 1, 2017, 5:08 p.m. OK MS C++ TESTS 91 327 204800 1300
27512715 merzgling B June 2, 2017, 12:57 a.m. OK MS C++ TESTS 91 327 204800 1300
27761582 Darooha B June 13, 2017, 6:51 p.m. OK Ocaml TESTS 91 93 307200 1300
27981182 mithi100 B June 23, 2017, 9:11 a.m. OK PyPy 2 TESTS 91 312 27545600 1300
34801214 laoliumang B Feb. 1, 2018, 11:59 a.m. OK PyPy 2 TESTS 91 482 27750400 1300
27382100 parth_satodiya B May 27, 2017, 10:45 a.m. OK PyPy 2 TESTS 91 919 2457600 1300
39687054 sasasagagaga B June 26, 2018, 10:30 p.m. OK PyPy 2 TESTS 91 1138 2764800 1300
27382183 xorio B May 27, 2017, 10:46 a.m. OK PyPy 2 TESTS 91 1169 6451200 1300
27964296 mithi100 B June 22, 2017, 11:50 a.m. OK PyPy 2 TESTS 91 1169 24371200 1300
27390627 cgfs10000 B May 27, 2017, 2:02 p.m. OK PyPy 2 TESTS 91 1170 1945600 1300
27388858 SIackbot B May 27, 2017, 12:57 p.m. OK PyPy 2 TESTS 91 1170 2560000 1300
27396153 saathvik782 B May 27, 2017, 7:29 p.m. OK PyPy 2 TESTS 91 1185 9523200 1300
27596986 ZoeCUR B June 5, 2017, 5:24 p.m. OK PyPy 2 TESTS 91 1201 2560000 1300
34987955 mola.mola B Feb. 7, 2018, 4:43 a.m. OK PyPy 3 TESTS 91 919 24166400 1300
36064321 ARMACOTY B March 8, 2018, 8:09 a.m. OK PyPy 3 TESTS 91 998 24678400 1300
68892196 sunnyorrainy B Jan. 16, 2020, 2:50 a.m. OK PyPy 3 TESTS 91 1029 5632000 1300
27383235 Punter B May 27, 2017, 10:57 a.m. OK PyPy 3 TESTS 91 1107 6656000 1300
66040261 DTUPIS B Nov. 30, 2019, 1:16 p.m. OK PyPy 3 TESTS 91 1107 7987200 1300
62074327 kchau B Oct. 7, 2019, 5:46 p.m. OK PyPy 3 TESTS 91 1123 11264000 1300
27446976 Gardiys B May 30, 2017, 11:24 a.m. OK PyPy 3 TESTS 91 1138 7270400 1300
51360286 saku7 B March 16, 2019, 6:53 a.m. OK PyPy 3 TESTS 91 1153 5427200 1300
34950258 Mad_Andrei B Feb. 5, 2018, 4:56 p.m. OK PyPy 3 TESTS 91 1153 25395200 1300
27397694 monvir B May 27, 2017, 10:24 p.m. OK PyPy 3 TESTS 91 1154 7065600 1300
40847039 orailly B July 27, 2018, 12:36 p.m. OK Python 3 TESTS 91 234 2662400 1300
27383788 htkb B May 27, 2017, 11:03 a.m. OK Python 3 TESTS 91 1232 1228800 1300
42131095 Mk_Python_v1 B Aug. 26, 2018, 6:39 p.m. OK Python 3 TESTS 91 1419 1024000 1300
29920793 Hillmouse B Aug. 30, 2017, 2:18 p.m. OK Rust TESTS 91 436 204800 1300

remove filters

Back to search problems