Avito Cool Challenge 2018

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
1081 Avito Cool Challenge 2018 FINISHED False 9000 192554723 Dec. 16, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7416 ) C Colorful Bricks PROGRAMMING combinatorics dp math 1600

B'On his free time, Chouti likes doing some housework. He has got one new task, paint some bricks in the yard. There are n bricks lined in a row on the ground. Chouti has got m paint buckets of different colors at hand, so he painted each brick in one of those m colors. Having finished painting all bricks, Chouti was satisfied. He stood back and decided to find something fun with these bricks. After some counting, he found there are k bricks with a color different from the color of the brick on its left (the first brick is not counted, for sure). So as usual, he needs your help in counting how many ways could he paint the bricks. Two ways of painting bricks are different if there is at least one brick painted in different colors in these two ways. Because the answer might be quite big, you only need to output the number of ways modulo 998 ,244 ,353 . The first and only line contains three integers n , m and k ( 1 <= q n,m <= q 2000, 0 <= q k <= q n-1 ) -- the number of bricks, the number of colors, and the number of bricks, such that its color differs from the color of brick to the left of it. Print one integer -- the number of ways to color bricks modulo 998 ,244 ,353 . In the first example, since k=0 , the color of every brick should be the same, so there will be exactly m=3 ways to color the bricks. In the second example, suppose the two colors in the buckets are yellow and lime, the following image shows all 4 possible colorings. '...

Tutorials

63888

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
47141786 helllo C Dec. 16, 2018, 8:36 p.m. OK Clang++17 Diagnostics TESTS 47 405 15974400 1600
62764101 72nuaq C Oct. 17, 2019, 7:59 a.m. OK FPC TESTS 47 31 0 1600
47376601 Khanh_Moriaty C Dec. 22, 2018, 5:45 p.m. OK FPC TESTS 47 31 0 1600
47270080 DKezik C Dec. 19, 2018, 4:13 p.m. OK FPC TESTS 47 46 32051200 1600
47134932 PAG C Dec. 16, 2018, 4:54 p.m. OK FPC TESTS 47 62 0 1600
47376354 Khanh_Moriaty C Dec. 22, 2018, 5:36 p.m. OK FPC TESTS 47 77 32358400 1600
47128371 ruban C Dec. 16, 2018, 4:01 p.m. OK FPC TESTS 47 78 148889600 1600
47147895 AlifSaddid C Dec. 17, 2018, 4:28 a.m. OK FPC TESTS 47 108 36249600 1600
47717436 MYNAMEISSHARIFUL C Dec. 30, 2018, 8:50 a.m. OK GNU C11 TESTS 47 31 0 1600
47120021 Kakalinn C Dec. 16, 2018, 3:10 p.m. OK GNU C11 TESTS 47 31 0 1600
47124574 sansen C Dec. 16, 2018, 3:34 p.m. OK GNU C11 TESTS 47 31 0 1600
47127535 jasshangoel C Dec. 16, 2018, 3:54 p.m. OK GNU C11 TESTS 47 46 0 1600
47163452 libra9z C Dec. 17, 2018, 11:17 a.m. OK GNU C11 TESTS 47 46 16076800 1600
47120787 freyes C Dec. 16, 2018, 3:14 p.m. OK GNU C11 TESTS 47 46 16076800 1600
47717395 MYNAMEISSHARIFUL C Dec. 30, 2018, 8:48 a.m. OK GNU C11 TESTS 47 46 16076800 1600
47541877 zarif_2002 C Dec. 27, 2018, 7:35 a.m. OK GNU C11 TESTS 47 46 32153600 1600
56150643 Shadow_Pikachu C June 27, 2019, 8:02 a.m. OK GNU C11 TESTS 47 46 32358400 1600
47871895 Horcrux1729 C Jan. 3, 2019, 1:20 p.m. OK GNU C11 TESTS 47 46 128307200 1600
47389873 yotin C Dec. 23, 2018, 7:26 a.m. OK GNU C++11 TESTS 47 30 0 1600
47536897 KobetheGOAT C Dec. 27, 2018, 3:07 a.m. OK GNU C++11 TESTS 47 30 102400 1600
61469051 TianZuiXing C Sept. 29, 2019, 11:35 a.m. OK GNU C++11 TESTS 47 31 0 1600
59780342 dado612 C Aug. 31, 2019, 2:45 a.m. OK GNU C++11 TESTS 47 31 0 1600
63944583 Ad03 C Oct. 31, 2019, 6:29 p.m. OK GNU C++11 TESTS 47 31 0 1600
64735876 BYsBro C Nov. 12, 2019, 10:18 a.m. OK GNU C++11 TESTS 47 31 0 1600
69190808 LHQing C Jan. 20, 2020, 1:26 p.m. OK GNU C++11 TESTS 47 31 0 1600
61469321 TianJianXing C Sept. 29, 2019, 11:41 a.m. OK GNU C++11 TESTS 47 31 0 1600
61445376 Big_Smoke C Sept. 28, 2019, 8:45 p.m. OK GNU C++11 TESTS 47 31 0 1600
61467546 TianZuiXing C Sept. 29, 2019, 11:01 a.m. OK GNU C++11 TESTS 47 31 0 1600
47145825 Batja_15 C Dec. 17, 2018, 2:11 a.m. OK GNU C++14 TESTS 47 15 0 1600
49616113 Treeone. C Feb. 8, 2019, 6:17 a.m. OK GNU C++14 TESTS 47 15 0 1600
55657797 DMCS C June 16, 2019, 6:27 p.m. OK GNU C++14 TESTS 47 30 0 1600
64907049 Ausmosian C Nov. 14, 2019, 11 p.m. OK GNU C++14 TESTS 47 30 0 1600
62378844 vjudge3 C Oct. 11, 2019, 6:19 p.m. OK GNU C++14 TESTS 47 30 0 1600
61860828 cboy C Oct. 4, 2019, 3:18 p.m. OK GNU C++14 TESTS 47 30 0 1600
60048832 koki C Sept. 4, 2019, 10:32 p.m. OK GNU C++14 TESTS 47 30 0 1600
51942488 TheCerberus C March 28, 2019, 3:06 p.m. OK GNU C++14 TESTS 47 30 0 1600
49302116 igorqs C Feb. 1, 2019, 3:47 a.m. OK GNU C++14 TESTS 47 30 0 1600
49033798 nic6200 C Jan. 27, 2019, 1:29 a.m. OK GNU C++14 TESTS 47 30 0 1600
47148165 AST_TheCoder C Dec. 17, 2018, 4:44 a.m. OK GNU C++17 TESTS 47 15 0 1600
47157985 AAATK C Dec. 17, 2018, 8:06 a.m. OK GNU C++17 TESTS 47 15 0 1600
47164234 mayank343 C Dec. 17, 2018, 11:41 a.m. OK GNU C++17 TESTS 47 15 0 1600
47362186 Cyber_Wizard C Dec. 22, 2018, 9:21 a.m. OK GNU C++17 TESTS 47 15 0 1600
47147058 Brijesh1in C Dec. 17, 2018, 3:35 a.m. OK GNU C++17 TESTS 47 15 0 1600
69220799 akshayanand729 C Jan. 21, 2020, 4:29 a.m. OK GNU C++17 TESTS 47 15 102400 1600
62820534 sarthakk_26 C Oct. 17, 2019, 4:37 p.m. OK GNU C++17 TESTS 47 30 0 1600
63250773 Rian_5900 C Oct. 23, 2019, 3:58 p.m. OK GNU C++17 TESTS 47 30 0 1600
68066363 Ccucumber12 C Jan. 2, 2020, 7:59 a.m. OK GNU C++17 TESTS 47 30 0 1600
68363326 genesiscentury C Jan. 7, 2020, 2:57 p.m. OK GNU C++17 TESTS 47 30 0 1600
47229768 sccs C Dec. 18, 2018, 5:35 p.m. OK Go TESTS 47 31 0 1600
47119886 caidodo0_0 C Dec. 16, 2018, 3:09 p.m. OK Go TESTS 47 108 32051200 1600
47174995 stefan.sakalik C Dec. 17, 2018, 5:02 p.m. OK Go TESTS 47 951 179200000 1600
69939108 CodAR C Feb. 1, 2020, 5:26 a.m. OK Java 11 TESTS 47 233 40038400 1600
69201953 ashanksingh1997 C Jan. 20, 2020, 4:50 p.m. OK Java 11 TESTS 47 296 40038400 1600
67494805 samuelbohl C Dec. 23, 2019, 9:41 p.m. OK Java 11 TESTS 47 373 39936000 1600
47186488 SrapZark C Dec. 18, 2018, 5 a.m. OK Java 8 TESTS 47 108 0 1600
47144435 poikniok C Dec. 17, 2018, 12:06 a.m. OK Java 8 TESTS 47 109 0 1600
47142642 Serh.kry C Dec. 16, 2018, 9:18 p.m. OK Java 8 TESTS 47 109 0 1600
47134132 thetansquared C Dec. 16, 2018, 4:47 p.m. OK Java 8 TESTS 47 109 0 1600
47117156 mikit C Dec. 16, 2018, 2:57 p.m. OK Java 8 TESTS 47 109 0 1600
47354266 SevenDeadlySins C Dec. 22, 2018, 5:18 a.m. OK Java 8 TESTS 47 124 0 1600
47334954 prakhar897 C Dec. 21, 2018, 2:41 p.m. OK Java 8 TESTS 47 124 0 1600
47238734 about C Dec. 18, 2018, 10:53 p.m. OK Java 8 TESTS 47 124 0 1600
47181078 StayAwayFromBitches C Dec. 17, 2018, 8:57 p.m. OK Java 8 TESTS 47 124 0 1600
47175263 Akash_UR C Dec. 17, 2018, 5:10 p.m. OK Java 8 TESTS 47 124 0 1600
47122866 zloi.timur C Dec. 16, 2018, 3:24 p.m. OK Kotlin TESTS 47 155 18534400 1600
47119496 Sergey.Bankevich C Dec. 16, 2018, 3:08 p.m. OK Kotlin TESTS 47 186 20275200 1600
47124895 konvpalto C Dec. 16, 2018, 3:36 p.m. OK Kotlin TESTS 47 498 77414400 1600
47146339 Coder_D C Dec. 17, 2018, 2:49 a.m. OK Mono C# TESTS 47 62 3072000 1600
59653283 og.kostya C Aug. 29, 2019, 9:13 a.m. OK Mono C# TESTS 47 77 0 1600
47161663 Mem C Dec. 17, 2018, 10:16 a.m. OK Mono C# TESTS 47 78 19558400 1600
47122452 omikad C Dec. 16, 2018, 3:22 p.m. OK Mono C# TESTS 47 93 32153600 1600
50295924 Mosyagin C Feb. 21, 2019, 8:30 p.m. OK Mono C# TESTS 47 109 15974400 1600
47135105 T-D-K C Dec. 16, 2018, 4:55 p.m. OK Mono C# TESTS 47 124 32256000 1600
49380762 scorpiowf C Feb. 3, 2019, 1:14 a.m. OK MS C++ TESTS 47 31 0 1600
47133680 karia C Dec. 16, 2018, 4:43 p.m. OK MS C++ TESTS 47 31 0 1600
52416095 vjudge2 C April 6, 2019, 3:12 p.m. OK MS C++ TESTS 47 31 0 1600
52446062 vjudge2 C April 7, 2019, 8:02 a.m. OK MS C++ TESTS 47 31 0 1600
52446192 vjudge1 C April 7, 2019, 8:05 a.m. OK MS C++ TESTS 47 31 0 1600
47123143 youx C Dec. 16, 2018, 3:26 p.m. OK MS C++ TESTS 47 46 0 1600
47371143 vjudge4 C Dec. 22, 2018, 2:20 p.m. OK MS C++ TESTS 47 46 16076800 1600
61852173 vjudge4 C Oct. 4, 2019, 1:01 p.m. OK MS C++ TESTS 47 46 32153600 1600
57834710 vjudge1 C July 27, 2019, 7:09 a.m. OK MS C++ TESTS 47 46 32256000 1600
61849002 vjudge4 C Oct. 4, 2019, 12:10 p.m. OK MS C++ TESTS 47 46 32256000 1600
59050587 Still_Theory C Aug. 18, 2019, 5:11 p.m. OK MS C++ 2017 TESTS 47 31 0 1600
57847447 shoulinniao C July 27, 2019, 11:46 a.m. OK MS C++ 2017 TESTS 47 62 39628800 1600
49606267 pill C Feb. 7, 2019, 7:39 p.m. OK MS C++ 2017 TESTS 47 93 32153600 1600
47141370 sk0 C Dec. 16, 2018, 8:18 p.m. OK Ocaml TESTS 47 592 86528000 1600
47124543 gmusya C Dec. 16, 2018, 3:34 p.m. OK PascalABC.NET TESTS 47 77 32256000 1600
47124783 rsFalse C Dec. 16, 2018, 3:36 p.m. OK Perl TESTS 47 374 24576000 1600
47124093 c1729 C Dec. 16, 2018, 3:32 p.m. OK PyPy 2 TESTS 47 140 204800 1600
51827914 soumyasarkar1998 C March 25, 2019, 2:47 p.m. OK PyPy 2 TESTS 47 155 9216000 1600
47195441 c1729 C Dec. 18, 2018, 2:18 p.m. OK PyPy 2 TESTS 47 171 102400 1600
56409856 kabeer27 C July 1, 2019, 10:26 p.m. OK PyPy 2 TESTS 47 186 102400 1600
47124184 pavankatta C Dec. 16, 2018, 3:32 p.m. OK PyPy 2 TESTS 47 249 35737600 1600
47126850 beched C Dec. 16, 2018, 3:49 p.m. OK PyPy 2 TESTS 47 264 9318400 1600
47116280 pajenegod C Dec. 16, 2018, 2:54 p.m. OK PyPy 2 TESTS 47 327 8089600 1600
47127677 Aparichit_Vyavasthapak C Dec. 16, 2018, 3:55 p.m. OK PyPy 2 TESTS 47 748 139673600 1600
50470578 cherry_su C Feb. 24, 2019, 11:57 p.m. OK PyPy 2 TESTS 47 857 140390400 1600
47118929 aeternalis1 C Dec. 16, 2018, 3:05 p.m. OK PyPy 2 TESTS 47 919 155750400 1600
48177273 SinYeeHang C Jan. 10, 2019, 10:20 a.m. OK PyPy 3 TESTS 47 124 0 1600
53316933 georgeroman C April 26, 2019, 10:55 a.m. OK PyPy 3 TESTS 47 124 1740800 1600
47520943 nik1996 C Dec. 26, 2018, 1:03 p.m. OK PyPy 3 TESTS 47 140 0 1600
47455701 czasem_tak_trzeba C Dec. 24, 2018, 12:26 p.m. OK PyPy 3 TESTS 47 140 0 1600
55572307 ragnar7 C June 14, 2019, 7:44 p.m. OK PyPy 3 TESTS 47 140 102400 1600
47119712 titia C Dec. 16, 2018, 3:09 p.m. OK PyPy 3 TESTS 47 140 512000 1600
60189731 sushant_verma C Sept. 6, 2019, 8:31 p.m. OK PyPy 3 TESTS 47 140 1228800 1600
56769029 Cigarette C July 9, 2019, 8:13 p.m. OK PyPy 3 TESTS 47 140 1433600 1600
49205437 mathdude42 C Jan. 30, 2019, 1:46 p.m. OK PyPy 3 TESTS 47 155 204800 1600
47166058 Evil__Coder C Dec. 17, 2018, 12:36 p.m. OK PyPy 3 TESTS 47 155 1126400 1600
47532914 nealzane C Dec. 26, 2018, 8:52 p.m. OK Python 2 TESTS 47 171 0 1600
47127607 sirjan13 C Dec. 16, 2018, 3:55 p.m. OK Python 2 TESTS 47 171 102400 1600
47195366 c1729 C Dec. 18, 2018, 2:15 p.m. OK Python 2 TESTS 47 171 204800 1600
47168528 xwtkdym C Dec. 17, 2018, 1:44 p.m. OK Python 2 TESTS 47 171 5017600 1600
47129218 alessandrosolbiati C Dec. 16, 2018, 4:07 p.m. OK Python 2 TESTS 47 186 102400 1600
47280433 danielfleischman C Dec. 19, 2018, 11:49 p.m. OK Python 2 TESTS 47 187 204800 1600
47127452 pa.n.ik C Dec. 16, 2018, 3:54 p.m. OK Python 2 TESTS 47 248 512000 1600
47132685 akshay125 C Dec. 16, 2018, 4:35 p.m. OK Python 2 TESTS 47 405 204800 1600
47116587 nwi C Dec. 16, 2018, 2:55 p.m. OK Python 2 TESTS 47 1138 0 1600
52378177 Annvv C April 6, 2019, 9:03 a.m. OK Python 3 TESTS 47 109 0 1600
51308696 LintuStorm C March 14, 2019, 6:08 p.m. OK Python 3 TESTS 47 109 0 1600
48374372 varun_raj C Jan. 14, 2019, 6:45 a.m. OK Python 3 TESTS 47 109 0 1600
47462140 antifaro C Dec. 24, 2018, 3:45 p.m. OK Python 3 TESTS 47 109 0 1600
47295753 sagami C Dec. 20, 2018, 11:53 a.m. OK Python 3 TESTS 47 109 0 1600
47183981 eugalt C Dec. 18, 2018, 1:42 a.m. OK Python 3 TESTS 47 109 0 1600
47161108 damaniac404 C Dec. 17, 2018, 9:56 a.m. OK Python 3 TESTS 47 109 0 1600
47157441 III_Wolverine_III C Dec. 17, 2018, 7:46 a.m. OK Python 3 TESTS 47 109 0 1600
56635838 RedRanger C July 6, 2019, 7:26 p.m. OK Python 3 TESTS 47 109 102400 1600
47171997 stylin_ C Dec. 17, 2018, 3:30 p.m. OK Python 3 TESTS 47 109 102400 1600
47141057 Jumnast C Dec. 16, 2018, 8:05 p.m. OK Ruby TESTS 47 62 2969600 1600
47124621 yakamoto C Dec. 16, 2018, 3:35 p.m. OK Scala TESTS 47 436 0 1600
47118577 limed C Dec. 16, 2018, 3:03 p.m. OK Scala TESTS 47 561 36044800 1600

remove filters

Back to search problems