Mail.Ru Cup 2018 Round 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
1055 Mail.Ru Cup 2018 Round 2 FINISHED False 9000 195578687 Nov. 10, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5081 ) B Alice and Hairdresser PROGRAMMING ds implementation 1300

B"Alice's hair is growing by leaps and bounds. Maybe the cause of it is the excess of vitamins, or maybe it is some black magic... To prevent this, Alice decided to go to the hairdresser. She wants for her hair length to be at most l centimeters after haircut, where l is her favorite number. Suppose, that the Alice's head is a straight line on which n hairlines grow. Let's number them from 1 to n . With one swing of the scissors the hairdresser can shorten all hairlines on any segment to the length l , given that all hairlines on that segment had length strictly greater than l . The hairdresser wants to complete his job as fast as possible, so he will make the least possible number of swings of scissors, since each swing of scissors takes one second. Alice hasn't decided yet when she would go to the hairdresser, so she asked you to calculate how much time the haircut would take depending on the time she would go to the hairdresser. In particular, you need to process queries of two types: Note, that in the request 0 Alice is interested in hypothetical scenario of taking a haircut now, so no hairlines change their length. The first line contains three integers n , m and l ( 1 <= n, m <= 100 ,000 , 1 <= l <= 10^9 ) -- the number of hairlines, the number of requests and the favorite number of Alice. The second line contains n integers a_i ( 1 <= a_i <= 10^9 ) -- the initial lengths of all hairlines of Alice. Each of the following m lines contains a request in the format described in the statement. The request description starts with an integer t_i . If t_i = 0 , then you need to find the time the haircut would take. Otherwise, t_i = 1 and in this moment one hairline grows. The rest of the line than contains two more integers: p_i and d_i ( 1 <= p_i <= n , 1 <= d_i <= 10^9 ) -- the number of the hairline and the length "...

Tutorials

Mail.Ru Cup 2018 Round 2 — analysis

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
45546658 llbra8z B Nov. 11, 2018, 2:21 a.m. OK D TESTS 47 62 0 1300
45519100 Gassa B Nov. 10, 2018, 2:57 p.m. OK D TESTS 47 140 4300800 1300
45670238 valerikk B Nov. 13, 2018, 10:09 a.m. OK Delphi TESTS 47 108 819200 1300
45801318 nasway B Nov. 16, 2018, 1:28 p.m. OK FPC TESTS 47 312 409600 1300
45554490 PandaIsTheBest B Nov. 11, 2018, 7:43 a.m. OK FPC TESTS 47 327 512000 1300
51264345 vippee B March 13, 2019, 2:49 p.m. OK FPC TESTS 47 327 819200 1300
51264317 afleonidallba B March 13, 2019, 2:48 p.m. OK FPC TESTS 47 327 819200 1300
48880031 Vasiliy_48 B Jan. 24, 2019, 9:50 a.m. OK FPC TESTS 47 327 819200 1300
45800957 nasway B Nov. 16, 2018, 1:16 p.m. OK FPC TESTS 47 342 409600 1300
45536375 PAG B Nov. 10, 2018, 4:57 p.m. OK FPC TESTS 47 342 819200 1300
45524939 TShT B Nov. 10, 2018, 3:29 p.m. OK FPC TESTS 47 358 96256000 1300
46824461 ishusharma B Dec. 9, 2018, 5:23 p.m. OK GNU C11 TESTS 47 358 409600 1300
45545375 Satnam_412 B Nov. 10, 2018, 11:38 p.m. OK GNU C11 TESTS 47 358 819200 1300
45756762 JwuonSue B Nov. 15, 2018, 6:27 a.m. OK GNU C11 TESTS 47 358 819200 1300
45525689 tomy2703 B Nov. 10, 2018, 3:34 p.m. OK GNU C11 TESTS 47 358 819200 1300
45530710 bokailya B Nov. 10, 2018, 4:11 p.m. OK GNU C11 TESTS 47 358 819200 1300
45524697 coderbd B Nov. 10, 2018, 3:27 p.m. OK GNU C11 TESTS 47 358 1228800 1300
45524469 dixitgarg B Nov. 10, 2018, 3:26 p.m. OK GNU C11 TESTS 47 373 819200 1300
45526197 madlad B Nov. 10, 2018, 3:37 p.m. OK GNU C11 TESTS 47 373 819200 1300
45524636 pyqjw B Nov. 10, 2018, 3:27 p.m. OK GNU C11 TESTS 47 374 819200 1300
46237208 vjudge4 B Nov. 26, 2018, 4:25 a.m. OK GNU C11 TESTS 47 374 819200 1300
45706280 byh B Nov. 14, 2018, 11:44 a.m. OK GNU C++11 TESTS 47 46 819200 1300
49353838 diolG B Feb. 2, 2019, 10:02 a.m. OK GNU C++11 TESTS 47 46 819200 1300
65662567 luogu_bot2 B Nov. 24, 2019, 12:59 p.m. OK GNU C++11 TESTS 47 46 819200 1300
45517488 copyright B Nov. 10, 2018, 2:51 p.m. OK GNU C++11 TESTS 47 46 819200 1300
47602831 luogu_bot3 B Dec. 28, 2018, 1:28 a.m. OK GNU C++11 TESTS 47 46 1228800 1300
47602069 fwat B Dec. 28, 2018, 12:22 a.m. OK GNU C++11 TESTS 47 46 1228800 1300
47601999 Althen B Dec. 28, 2018, 12:17 a.m. OK GNU C++11 TESTS 47 46 1228800 1300
54261217 SoiMae B May 17, 2019, 1:53 a.m. OK GNU C++11 TESTS 47 46 1228800 1300
45560790 Big_black_jujube B Nov. 11, 2018, 11:33 a.m. OK GNU C++11 TESTS 47 46 1638400 1300
58672610 wyy2004 B Aug. 12, 2019, 3:03 p.m. OK GNU C++11 TESTS 47 46 1638400 1300
45519335 wleung_bvg B Nov. 10, 2018, 2:58 p.m. OK GNU C++14 TESTS 47 46 1228800 1300
45516296 Linkus B Nov. 10, 2018, 2:46 p.m. OK GNU C++14 TESTS 47 46 8806400 1300
68630594 tingyu B Jan. 12, 2020, 2:32 a.m. OK GNU C++14 TESTS 47 77 409600 1300
45654769 ..vince B Nov. 13, 2018, 5:25 a.m. OK GNU C++14 TESTS 47 78 921600 1300
45515776 tataky B Nov. 10, 2018, 2:45 p.m. OK GNU C++14 TESTS 47 78 1228800 1300
45555875 yangshuang B Nov. 11, 2018, 8:30 a.m. OK GNU C++14 TESTS 47 78 1228800 1300
45525287 wangshu B Nov. 10, 2018, 3:31 p.m. OK GNU C++14 TESTS 47 78 5324800 1300
55526970 iShibly B June 13, 2019, 11:39 a.m. OK GNU C++14 TESTS 47 93 409600 1300
45517458 how_to_become_purple B Nov. 10, 2018, 2:50 p.m. OK GNU C++14 TESTS 47 93 409600 1300
45516219 I_love_chickpea B Nov. 10, 2018, 2:46 p.m. OK GNU C++14 TESTS 47 93 409600 1300
45516167 IgorSmirnov B Nov. 10, 2018, 2:46 p.m. OK GNU C++17 TESTS 47 46 614400 1300
61406592 situ B Sept. 28, 2019, 7:14 a.m. OK GNU C++17 TESTS 47 46 921600 1300
61406491 situ B Sept. 28, 2019, 7:12 a.m. OK GNU C++17 TESTS 47 46 921600 1300
45556131 DingJy666 B Nov. 11, 2018, 8:39 a.m. OK GNU C++17 TESTS 47 78 409600 1300
45557110 DingJy666 B Nov. 11, 2018, 9:14 a.m. OK GNU C++17 TESTS 47 78 409600 1300
65656717 onluZhao B Nov. 24, 2019, 10:51 a.m. OK GNU C++17 TESTS 47 93 819200 1300
45519323 GoogleBot B Nov. 10, 2018, 2:58 p.m. OK GNU C++17 TESTS 47 93 819200 1300
45534146 A.M.N B Nov. 10, 2018, 4:39 p.m. OK GNU C++17 TESTS 47 93 819200 1300
45567105 destaren B Nov. 11, 2018, 3:14 p.m. OK GNU C++17 TESTS 47 93 921600 1300
45544388 alexOLO B Nov. 10, 2018, 10:10 p.m. OK GNU C++17 TESTS 47 93 921600 1300
45530360 life_is_not_bed_of_roses B Nov. 10, 2018, 4:08 p.m. OK Go TESTS 47 156 5324800 1300
45532375 Flaker B Nov. 10, 2018, 4:24 p.m. OK Go TESTS 47 404 5222400 1300
45522122 avijit_agarwal B Nov. 10, 2018, 3:12 p.m. OK Java 8 TESTS 47 124 0 1300
53288678 aman28rwt B April 25, 2019, 2:50 p.m. OK Java 8 TESTS 47 124 0 1300
45686091 sooraj10 B Nov. 13, 2018, 6:22 p.m. OK Java 8 TESTS 47 124 0 1300
45684729 dhoni072 B Nov. 13, 2018, 5:25 p.m. OK Java 8 TESTS 47 124 0 1300
45540199 Srinivasa_Ramanujan B Nov. 10, 2018, 6:57 p.m. OK Java 8 TESTS 47 124 0 1300
53288657 aman28rwt B April 25, 2019, 2:50 p.m. OK Java 8 TESTS 47 140 0 1300
52361073 prituladima B April 5, 2019, 7:49 p.m. OK Java 8 TESTS 47 140 0 1300
45560695 bhautik_77 B Nov. 11, 2018, 11:30 a.m. OK Java 8 TESTS 47 140 0 1300
45540465 sumit.kumar B Nov. 10, 2018, 7:06 p.m. OK Java 8 TESTS 47 140 0 1300
45527263 abhi2601 B Nov. 10, 2018, 3:44 p.m. OK Java 8 TESTS 47 140 0 1300
45649093 v.kristina B Nov. 12, 2018, 10:16 p.m. OK JavaScript TESTS 47 499 32358400 1300
46511053 luigiop B Dec. 2, 2018, 1:21 p.m. OK JavaScript TESTS 47 514 25292800 1300
45516288 shaviava B Nov. 10, 2018, 2:46 p.m. OK Kotlin TESTS 47 187 0 1300
45541042 sash6589 B Nov. 10, 2018, 7:26 p.m. OK Kotlin TESTS 47 249 2355200 1300
45540705 sash6589 B Nov. 10, 2018, 7:14 p.m. OK Kotlin TESTS 47 951 7475200 1300
45522315 raynald B Nov. 10, 2018, 3:13 p.m. OK Kotlin TESTS 47 982 9113600 1300
45529879 mrfoxygmfr B Nov. 10, 2018, 4:04 p.m. OK Kotlin TESTS 47 998 0 1300
45520712 alexey.enkov B Nov. 10, 2018, 3:05 p.m. OK Kotlin TESTS 47 998 7577600 1300
55977260 og.kostya B June 23, 2019, 6:17 p.m. OK Mono C# TESTS 47 78 3174400 1300
45521946 Zvigintsev B Nov. 10, 2018, 3:11 p.m. OK Mono C# TESTS 47 124 12083200 1300
45523382 kuuso B Nov. 10, 2018, 3:19 p.m. OK Mono C# TESTS 47 187 21811200 1300
45524056 gonchenko B Nov. 10, 2018, 3:23 p.m. OK Mono C# TESTS 47 421 17715200 1300
45535413 kyosuke0924 B Nov. 10, 2018, 4:50 p.m. OK Mono C# TESTS 47 451 21196800 1300
45668889 reloader2003 B Nov. 13, 2018, 9:21 a.m. OK Mono C# TESTS 47 686 5939200 1300
45524618 tattosha_aptan B Nov. 10, 2018, 3:27 p.m. OK Mono C# TESTS 47 686 20172800 1300
45523705 Anastasiya_Andreevna B Nov. 10, 2018, 3:21 p.m. OK Mono C# TESTS 47 701 17203200 1300
45530537 tarptaeya B Nov. 10, 2018, 4:09 p.m. OK Mono C# TESTS 47 732 17100800 1300
45521540 MrPaul_TUser B Nov. 10, 2018, 3:09 p.m. OK Mono C# TESTS 47 732 21094400 1300
45544200 WoodMachine B Nov. 10, 2018, 9:58 p.m. OK MS C++ TESTS 47 62 1228800 1300
45588785 vjudge5 B Nov. 12, 2018, 10:58 a.m. OK MS C++ TESTS 47 77 512000 1300
45676791 wjfwjfwjf B Nov. 13, 2018, 1:30 p.m. OK MS C++ TESTS 47 77 819200 1300
45578463 vjudge2 B Nov. 12, 2018, 12:08 a.m. OK MS C++ TESTS 47 77 819200 1300
46199021 vjudge1 B Nov. 25, 2018, 10:12 a.m. OK MS C++ TESTS 47 77 819200 1300
46240890 vjudge5 B Nov. 26, 2018, 7:52 a.m. OK MS C++ TESTS 47 77 819200 1300
45527905 user B Nov. 10, 2018, 3:49 p.m. OK MS C++ TESTS 47 78 409600 1300
46027945 scorpiowf B Nov. 21, 2018, 12:16 p.m. OK MS C++ TESTS 47 78 409600 1300
65661051 vjudge5 B Nov. 24, 2019, 12:23 p.m. OK MS C++ TESTS 47 78 819200 1300
65661017 vjudge4 B Nov. 24, 2019, 12:23 p.m. OK MS C++ TESTS 47 78 819200 1300
65662296 vjudge1 B Nov. 24, 2019, 12:52 p.m. OK MS C++ 2017 TESTS 47 124 819200 1300
65694102 bekhasai B Nov. 25, 2019, 6:55 a.m. OK MS C++ 2017 TESTS 47 311 3276800 1300
56783164 Micu B July 10, 2019, 7:11 a.m. OK MS C++ 2017 TESTS 47 514 512000 1300
54833441 antofik B May 30, 2019, 9:51 a.m. OK MS C++ 2017 TESTS 47 514 819200 1300
67385340 Hapsidra B Dec. 21, 2019, 5:38 p.m. OK MS C++ 2017 TESTS 47 545 1024000 1300
49813189 Timonnable B Feb. 12, 2019, 3:21 a.m. OK MS C++ 2017 TESTS 47 545 3174400 1300
45542316 sk0 B Nov. 10, 2018, 8:17 p.m. OK Ocaml TESTS 47 124 2662400 1300
45544300 rsFalse B Nov. 10, 2018, 10:07 p.m. OK Perl TESTS 47 218 19353600 1300
45527182 rsFalse B Nov. 10, 2018, 3:44 p.m. OK Perl TESTS 47 249 15360000 1300
45533000 adromaryn B Nov. 10, 2018, 4:29 p.m. OK Perl TESTS 47 311 17100800 1300
45542915 katalama B Nov. 10, 2018, 8:43 p.m. OK PHP TESTS 47 374 12595200 1300
45557223 mayakin B Nov. 11, 2018, 9:18 a.m. OK PHP TESTS 47 405 12185600 1300
45524575 c1729 B Nov. 10, 2018, 3:27 p.m. OK PyPy 2 TESTS 47 326 19148800 1300
45527216 Onesh0t B Nov. 10, 2018, 3:44 p.m. OK PyPy 2 TESTS 47 389 13209600 1300
45575095 frederika B Nov. 11, 2018, 8:16 p.m. OK PyPy 2 TESTS 47 639 17920000 1300
45575039 frederika B Nov. 11, 2018, 8:14 p.m. OK PyPy 2 TESTS 47 639 17920000 1300
45575276 frederika B Nov. 11, 2018, 8:21 p.m. OK PyPy 2 TESTS 47 655 17715200 1300
45574934 frederika B Nov. 11, 2018, 8:11 p.m. OK PyPy 2 TESTS 47 795 12800000 1300
45584329 abhigyank B Nov. 12, 2018, 7:19 a.m. OK PyPy 2 TESTS 47 810 9011200 1300
45575133 frederika B Nov. 11, 2018, 8:17 p.m. OK PyPy 2 TESTS 47 810 9011200 1300
47711074 kgmkr00001 B Dec. 30, 2018, 3:32 a.m. OK PyPy 3 TESTS 47 421 14336000 1300
45524420 cgfs10000 B Nov. 10, 2018, 3:26 p.m. OK PyPy 3 TESTS 47 452 14336000 1300
45530778 LordVader B Nov. 10, 2018, 4:11 p.m. OK PyPy 3 TESTS 47 467 17100800 1300
65332925 RalorSell B Nov. 19, 2019, 7:22 a.m. OK PyPy 3 TESTS 47 468 11059200 1300
65396862 algdgn B Nov. 19, 2019, 7:28 p.m. OK PyPy 3 TESTS 47 483 10956800 1300
66218310 zgonnikov B Dec. 3, 2019, 9:54 a.m. OK PyPy 3 TESTS 47 498 11571200 1300
66200900 zgonnikov B Dec. 2, 2019, 9:01 p.m. OK PyPy 3 TESTS 47 514 11571200 1300
45524308 cpicard443 B Nov. 10, 2018, 3:25 p.m. OK PyPy 3 TESTS 47 514 13516800 1300
45584078 mug B Nov. 12, 2018, 7:05 a.m. OK PyPy 3 TESTS 47 545 14643200 1300
69265094 vk_76 B Jan. 21, 2020, 6:20 p.m. OK PyPy 3 TESTS 47 826 19046400 1300
45518668 nwi B Nov. 10, 2018, 2:55 p.m. OK Python 2 TESTS 47 374 7270400 1300
47857690 bhelkey B Jan. 3, 2019, 1:35 a.m. OK Python 2 TESTS 47 452 6451200 1300
45516949 agutowski B Nov. 10, 2018, 2:49 p.m. OK Python 2 TESTS 47 483 5836800 1300
47857724 adair B Jan. 3, 2019, 1:40 a.m. OK Python 2 TESTS 47 498 5734400 1300
51259852 seosprint7777 B March 13, 2019, 12:53 p.m. OK Python 2 TESTS 47 498 5836800 1300
45565825 FatherofBenoni B Nov. 11, 2018, 2:24 p.m. OK Python 2 TESTS 47 499 5734400 1300
45526648 raven_47 B Nov. 10, 2018, 3:40 p.m. OK Python 2 TESTS 47 499 5734400 1300
45526558 jaya_8896 B Nov. 10, 2018, 3:40 p.m. OK Python 2 TESTS 47 499 5836800 1300
45531000 abhishekm71 B Nov. 10, 2018, 4:13 p.m. OK Python 2 TESTS 47 499 28672000 1300
45584238 abhigyank B Nov. 12, 2018, 7:14 a.m. OK Python 2 TESTS 47 530 5836800 1300
45552031 bergus B Nov. 11, 2018, 6:12 a.m. OK Python 3 TESTS 47 296 14336000 1300
49061615 _itachi_uchiha B Jan. 27, 2019, 3:42 p.m. OK Python 3 TESTS 47 343 9830400 1300
45764678 Annvv B Nov. 15, 2018, 11:33 a.m. OK Python 3 TESTS 47 389 10649600 1300
47971799 Paydayzcool B Jan. 5, 2019, 3:13 p.m. OK Python 3 TESTS 47 405 8601600 1300
46453891 the_white_devil B Dec. 1, 2018, 5:10 p.m. OK Python 3 TESTS 47 420 8294400 1300
45784114 Devl1N B Nov. 15, 2018, 10:44 p.m. OK Python 3 TESTS 47 421 8601600 1300
45551578 bergus B Nov. 11, 2018, 5:47 a.m. OK Python 3 TESTS 47 421 9830400 1300
45540552 bergus B Nov. 10, 2018, 7:09 p.m. OK Python 3 TESTS 47 436 8601600 1300
45525104 gosipov B Nov. 10, 2018, 3:30 p.m. OK Python 3 TESTS 47 436 8601600 1300
45520407 Savit_Gupta B Nov. 10, 2018, 3:03 p.m. OK Python 3 TESTS 47 451 9728000 1300
45522032 AnandVeeramani B Nov. 10, 2018, 3:12 p.m. OK Ruby TESTS 47 498 19251200 1300
45541571 yakamoto B Nov. 10, 2018, 7:45 p.m. OK Scala TESTS 47 483 0 1300
45518705 limed B Nov. 10, 2018, 2:55 p.m. OK Scala TESTS 47 779 409600 1300

remove filters

Back to search problems