Manthan, Codefest 18 (rated, Div. 1 + 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
1037 Manthan, Codefest 18 (rated, Div. 1 + Div. 2) FINISHED False 7200 195924299 Sept. 2, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1149 ) F Maximum Reduction PROGRAMMING combinatorics data structures math 2400

B'Given an array a of n integers and an integer k ( 2 <= k <= n ), where each element of the array is denoted by a_i ( 0 <= i < n ). Perform the operation z given below on a and print the value of z(a,k) modulo 10^{9}+7 . The first line of input contains two integers n and k ( 2 <= k <= n <= 10^6 ) -- the length of the initial array a and the parameter k . The second line of input contains n integers a_0, a_1, ldots, a_{n - 1} ( 1 <= a_{i} <= 10^9 ) -- the elements of the array a . Output the only integer, the value of z(a,k) modulo 10^9+7 . In the first example: So the returned value is 19+10+0=29 . In the second example: So the returned value is 25+9+0=34 . '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
42419325 rainy_season F Sept. 3, 2018, 9:14 a.m. OK GNU C++ TESTS 33 108 48128000 2400
42425163 lqz F Sept. 3, 2018, 12:21 p.m. OK GNU C++ TESTS 33 109 19865600 2400
42411637 HugeGun F Sept. 3, 2018, 1:44 a.m. OK GNU C++ TESTS 33 264 16076800 2400
42452810 ccosi F Sept. 4, 2018, 9:17 a.m. OK GNU C++ TESTS 33 264 24064000 2400
42457236 Ronnie007 F Sept. 4, 2018, 12:05 p.m. OK GNU C++ TESTS 33 312 24268800 2400
42429095 hangyesheng F Sept. 3, 2018, 2:01 p.m. OK GNU C++ TESTS 33 326 16281600 2400
42451653 170104100115 F Sept. 4, 2018, 8:32 a.m. OK GNU C++ TESTS 33 327 16076800 2400
42451220 170104100115 F Sept. 4, 2018, 8:14 a.m. OK GNU C++ TESTS 33 327 16076800 2400
42452735 ccosi F Sept. 4, 2018, 9:13 a.m. OK GNU C++ TESTS 33 342 24064000 2400
42424669 616156 F Sept. 3, 2018, 12:06 p.m. OK GNU C++ TESTS 33 358 23859200 2400
42555492 Anson529 F Sept. 6, 2018, 1:59 p.m. OK GNU C++11 TESTS 33 93 16076800 2400
60681059 luogu_bot3 F Sept. 16, 2019, 1:56 p.m. OK GNU C++11 TESTS 33 93 20070400 2400
42695990 ReaLNero1 F Sept. 9, 2018, 7:12 a.m. OK GNU C++11 TESTS 33 93 20070400 2400
42415096 Shedneryan F Sept. 3, 2018, 6:36 a.m. OK GNU C++11 TESTS 33 93 20070400 2400
42467120 cb_Adam F Sept. 4, 2018, 4:29 p.m. OK GNU C++11 TESTS 33 109 16076800 2400
46673319 ZredXNy F Dec. 6, 2018, 8:17 a.m. OK GNU C++11 TESTS 33 124 20070400 2400
42448557 TianCaiJieJieZhenKeAi F Sept. 4, 2018, 6:10 a.m. OK GNU C++11 TESTS 33 139 16281600 2400
46673447 luogu_bot4 F Dec. 6, 2018, 8:21 a.m. OK GNU C++11 TESTS 33 140 16076800 2400
46673422 Althen F Dec. 6, 2018, 8:20 a.m. OK GNU C++11 TESTS 33 140 16076800 2400
42477550 goldgenius F Sept. 5, 2018, 12:55 a.m. OK GNU C++11 TESTS 33 140 16076800 2400
51446166 mayaohua2003 F March 18, 2019, 12:35 p.m. OK GNU C++14 TESTS 33 296 16281600 2400
42489035 iaNTU F Sept. 5, 2018, 10:59 a.m. OK GNU C++14 TESTS 33 311 24985600 2400
50307460 RNS_MHB F Feb. 22, 2019, 7:08 a.m. OK GNU C++14 TESTS 33 312 11980800 2400
46683084 aid F Dec. 6, 2018, 12:54 p.m. OK GNU C++14 TESTS 33 312 18329600 2400
50309732 RNS_KSB F Feb. 22, 2019, 8:37 a.m. OK GNU C++14 TESTS 33 327 11980800 2400
42422978 hiep622032001 F Sept. 3, 2018, 11:17 a.m. OK GNU C++14 TESTS 33 327 16076800 2400
43108770 hicodeworld F Sept. 20, 2018, 10:30 a.m. OK GNU C++14 TESTS 33 327 20070400 2400
42413140 ShakuganSky F Sept. 3, 2018, 4:32 a.m. OK GNU C++14 TESTS 33 327 20480000 2400
69043532 yan-zp F Jan. 18, 2020, 10:35 a.m. OK GNU C++14 TESTS 33 327 22323200 2400
62038870 baohiep F Oct. 7, 2019, 5:09 a.m. OK GNU C++14 TESTS 33 327 26419200 2400
42418066 lxn F Sept. 3, 2018, 8:28 a.m. OK GNU C++17 TESTS 33 108 24371200 2400
42851124 q234rty F Sept. 14, 2018, 5:45 a.m. OK GNU C++17 TESTS 33 108 44134400 2400
42967837 DZYO F Sept. 17, 2018, 3:08 a.m. OK GNU C++17 TESTS 33 109 16281600 2400
45065471 LiChenKoh F Oct. 29, 2018, 4:48 p.m. OK GNU C++17 TESTS 33 171 58982400 2400
64164654 Mai-sanBestWaifu F Nov. 3, 2019, 3:49 p.m. OK GNU C++17 TESTS 33 280 20070400 2400
45192238 tEMMIE.w. F Nov. 2, 2018, 3:38 a.m. OK GNU C++17 TESTS 33 295 28262400 2400
53879786 Jester F May 8, 2019, 2 p.m. OK GNU C++17 TESTS 33 311 20480000 2400
44942773 user202729_ F Oct. 27, 2018, 8:40 a.m. OK GNU C++17 TESTS 33 327 14643200 2400
53878276 Jester F May 8, 2019, 1:13 p.m. OK GNU C++17 TESTS 33 327 20480000 2400
44357035 vjudge2 F Oct. 15, 2018, 12:53 p.m. OK GNU C++17 TESTS 33 327 21094400 2400
42486454 BaZ_ F Sept. 5, 2018, 9:22 a.m. OK Java 8 TESTS 33 233 30720000 2400
42448250 emo F Sept. 4, 2018, 5:55 a.m. OK Java 8 TESTS 33 249 14336000 2400
42451160 BaZ_ F Sept. 4, 2018, 8:12 a.m. OK Java 8 TESTS 33 264 14643200 2400
42488578 BaZ_ F Sept. 5, 2018, 10:44 a.m. OK Java 8 TESTS 33 296 14643200 2400
42458406 xodiac F Sept. 4, 2018, 12:36 p.m. OK Java 8 TESTS 33 358 6144000 2400
42440132 vadimmm F Sept. 3, 2018, 8 p.m. OK Java 8 TESTS 33 468 77926400 2400
67139993 dalt F Dec. 18, 2019, 6:19 a.m. OK Java 8 TESTS 33 561 268390400 2400
43360530 happybelly F Sept. 24, 2018, 9:01 a.m. OK Java 8 TESTS 33 592 6144000 2400
67140179 dalt F Dec. 18, 2019, 6:23 a.m. OK Java 8 TESTS 33 592 268390400 2400
42437226 StayAwayFromBitches F Sept. 3, 2018, 6:04 p.m. OK Java 8 TESTS 33 608 40960000 2400
42445899 leign F Sept. 4, 2018, 3:14 a.m. OK Mono C# TESTS 33 1731 122470400 2400
42418047 lxn F Sept. 3, 2018, 8:27 a.m. OK MS C++ TESTS 33 124 24371200 2400
50897913 vjudge2 F March 6, 2019, 3:55 p.m. OK MS C++ TESTS 33 249 24064000 2400
51127615 vjudge5 F March 10, 2019, 12:24 p.m. OK MS C++ TESTS 33 374 26726400 2400
42418020 lxn F Sept. 3, 2018, 8:26 a.m. OK MS C++ TESTS 33 452 24371200 2400
42417930 lxn F Sept. 3, 2018, 8:23 a.m. OK MS C++ TESTS 33 498 24268800 2400
42416981 lxn F Sept. 3, 2018, 7:46 a.m. OK MS C++ TESTS 33 561 24678400 2400
44740947 test616.cpp F Oct. 23, 2018, 2:41 p.m. OK PyPy 2 TESTS 33 842 70451200 2400

remove filters

Back to search problems