ICM Technex 2017 and Codeforces Round 400 (Div. 1 + Div. 2, combined)

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
776 ICM Technex 2017 and Codeforces Round 400 (Div. 1 + Div. 2, combined) FINISHED False 7800 249664524 Feb. 23, 2017, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5993 ) C Molly's Chemicals PROGRAMMING binary search brute force data structures implementation math 1800

B'Molly Hooper has n different kinds of chemicals arranged in a line. Each of the chemicals has an affection value, The i-th of them has affection value ai. Molly wants Sherlock to fall in love with her. She intends to do this by mixing a contiguous segment of chemicals together to make a love potion with total affection value as a non-negative integer power of k. Total affection value of a continuous segment of chemicals is the sum of affection values of each chemical in that segment. Help her to do so in finding the total number of such segments. The first line of input contains two integers, n and k, the number of chemicals and the number, such that the total affection value is a non-negative power of this number k. (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|k| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910). Next line contains n integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an ( xe2 x80 x89- xe2 x80 x89109 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- affection values of chemicals. Output a single integer -- the number of valid segments. Do keep in mind that k0 xe2 x80 x89= xe2 x80 x891. In the first sample, Molly can get following different affection values: Out of these, 2, 4 and 8 are powers of k xe2 x80 x89= xe2 x80 x892. Therefore, the answer is 8. In the second sample, Molly can choose segments [1, xe2 x80 x892], [3, xe2 x80 x893], [3, xe2 x80 x894]. '...

Tutorials

ICM Technex 2017 and Codeforces Round #400 (Div. 1 + Div. 2, combined) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
50767753 rr_ C March 4, 2019, 12:31 a.m. OK D TESTS 110 218 22425600 1800
50767717 rr_ C March 4, 2019, 12:28 a.m. OK D TESTS 110 233 22425600 1800
24946177 Zeron C Feb. 23, 2017, 7:04 p.m. OK FPC TESTS 110 233 13721600 1800
25308687 nikih.10 C March 7, 2017, 6:34 a.m. OK FPC TESTS 110 670 13619200 1800
40104582 chaorenhaha C July 9, 2018, 7:43 a.m. OK FPC TESTS 110 904 20172800 1800
40096861 hxz12345 C July 9, 2018, 12:15 a.m. OK FPC TESTS 110 904 20172800 1800
24955114 jkxjkx1031 C Feb. 24, 2017, 5:24 a.m. OK GNU C TESTS 110 342 166195200 1800
25166360 vjudge5 C March 3, 2017, 9:31 a.m. OK GNU C TESTS 110 452 18841600 1800
24971597 liuyiluxun C Feb. 24, 2017, 11:12 a.m. OK GNU C++ TESTS 110 155 4300800 1800
24952077 caidongxiao C Feb. 24, 2017, 1:56 a.m. OK GNU C++ TESTS 110 187 8089600 1800
24953828 yjh C Feb. 24, 2017, 3:51 a.m. OK GNU C++ TESTS 110 187 8704000 1800
33370926 Suffoquer_Fang C Dec. 18, 2017, 7:13 a.m. OK GNU C++ TESTS 110 234 4608000 1800
27398277 150420 C May 28, 2017, 12:17 a.m. OK GNU C++ TESTS 110 249 5632000 1800
25080297 shawnXYD C Feb. 27, 2017, 2:48 p.m. OK GNU C++ TESTS 110 249 6963200 1800
33367665 orzakf C Dec. 18, 2017, 3:55 a.m. OK GNU C++ TESTS 110 264 4812800 1800
24954003 lkmcfj C Feb. 24, 2017, 4:02 a.m. OK GNU C++ TESTS 110 280 6144000 1800
24944207 wumaodang C Feb. 23, 2017, 6:10 p.m. OK GNU C++ TESTS 110 280 7680000 1800
28640388 littleming C July 17, 2017, 1:11 p.m. OK GNU C++ TESTS 110 280 30208000 1800
24987694 Straw C Feb. 24, 2017, 3:59 p.m. OK GNU C++11 TESTS 110 93 3686400 1800
24945509 long10024070 C Feb. 23, 2017, 6:40 p.m. OK GNU C++11 TESTS 110 93 3686400 1800
24991797 CSPWinterPrince C Feb. 24, 2017, 6:32 p.m. OK GNU C++11 TESTS 110 109 5324800 1800
25029839 klokan C Feb. 26, 2017, 6:51 a.m. OK GNU C++11 TESTS 110 124 6656000 1800
25029819 klokan C Feb. 26, 2017, 6:50 a.m. OK GNU C++11 TESTS 110 124 6656000 1800
25029796 klokan C Feb. 26, 2017, 6:48 a.m. OK GNU C++11 TESTS 110 124 6860800 1800
25029727 klokan C Feb. 26, 2017, 6:43 a.m. OK GNU C++11 TESTS 110 124 6963200 1800
38808853 RalphHan C May 31, 2018, 4:53 p.m. OK GNU C++11 TESTS 110 124 10444800 1800
25029522 klokan C Feb. 26, 2017, 6:30 a.m. OK GNU C++11 TESTS 110 140 6963200 1800
25029367 klokan C Feb. 26, 2017, 6:21 a.m. OK GNU C++11 TESTS 110 140 7168000 1800
51652981 dmit.lysenko C March 21, 2019, 7:43 p.m. OK GNU C++14 TESTS 110 78 1740800 1800
24946687 hpfdf C Feb. 23, 2017, 7:26 p.m. OK GNU C++14 TESTS 110 78 3686400 1800
32893830 Sabdul C Dec. 3, 2017, 8:11 a.m. OK GNU C++14 TESTS 110 93 3686400 1800
40982209 ReaLNero1 C July 30, 2018, 6:19 p.m. OK GNU C++14 TESTS 110 93 3993600 1800
35148457 bonfire C Feb. 11, 2018, 10:02 a.m. OK GNU C++14 TESTS 110 108 7680000 1800
25029806 klokan C Feb. 26, 2017, 6:49 a.m. OK GNU C++14 TESTS 110 124 6860800 1800
25029853 klokan C Feb. 26, 2017, 6:52 a.m. OK GNU C++14 TESTS 110 140 6553600 1800
35148443 bonfire C Feb. 11, 2018, 10:01 a.m. OK GNU C++14 TESTS 110 156 6553600 1800
35148418 bonfire C Feb. 11, 2018, 10 a.m. OK GNU C++14 TESTS 110 202 6758400 1800
24943819 eagle93 C Feb. 23, 2017, 6:02 p.m. OK GNU C++14 TESTS 110 202 6963200 1800
54538525 cxsy C May 23, 2019, 9:54 p.m. OK GNU C++17 TESTS 110 93 1740800 1800
36314511 Hash_Mallow C March 16, 2018, 1:20 a.m. OK GNU C++17 TESTS 110 93 5120000 1800
52451262 Not-Afraid C April 7, 2019, 9:51 a.m. OK GNU C++17 TESTS 110 171 8294400 1800
67251946 The_Original_Popeye C Dec. 19, 2019, 7:33 p.m. OK GNU C++17 TESTS 110 202 7680000 1800
67252430 The_Original_Popeye C Dec. 19, 2019, 7:47 p.m. OK GNU C++17 TESTS 110 202 8806400 1800
64174653 yuhta C Nov. 3, 2019, 8:10 p.m. OK GNU C++17 TESTS 110 233 5427200 1800
49997605 Narut C Feb. 16, 2019, 3:45 p.m. OK GNU C++17 TESTS 110 234 4403200 1800
49996976 Narut C Feb. 16, 2019, 3:25 p.m. OK GNU C++17 TESTS 110 234 4608000 1800
61760417 mangojunior C Oct. 3, 2019, 6:55 a.m. OK GNU C++17 TESTS 110 234 5017600 1800
52922437 Not-Afraid C April 17, 2019, 6:29 p.m. OK GNU C++17 TESTS 110 234 5017600 1800
24939721 gchebanov C Feb. 23, 2017, 4:41 p.m. OK Go TESTS 110 296 10854400 1800
60347293 elkadymohammed01 C Sept. 10, 2019, 1:02 p.m. OK Java 8 TESTS 110 358 3174400 1800
52132755 Ahmed.Shawky C March 31, 2019, 10:15 p.m. OK Java 8 TESTS 110 358 4812800 1800
49815456 Mooncrater C Feb. 12, 2019, 5:34 a.m. OK Java 8 TESTS 110 358 8192000 1800
33233002 coderbond007 C Dec. 14, 2017, 7:47 a.m. OK Java 8 TESTS 110 373 25292800 1800
33232963 coderbond007 C Dec. 14, 2017, 7:46 a.m. OK Java 8 TESTS 110 374 25292800 1800
31218444 ShafinKhadem C Oct. 11, 2017, 2:06 p.m. OK Java 8 TESTS 110 389 5427200 1800
24945001 jonsnow7 C Feb. 23, 2017, 6:26 p.m. OK Java 8 TESTS 110 389 27340800 1800
25027531 CrazyBBB C Feb. 26, 2017, 3:47 a.m. OK Java 8 TESTS 110 389 27852800 1800
25127191 aya_cool C March 1, 2017, 3:25 p.m. OK Java 8 TESTS 110 389 28364800 1800
25116808 jwozniak C March 1, 2017, 7:13 a.m. OK Java 8 TESTS 110 390 26214400 1800
50777955 Mem C March 4, 2019, 9:41 a.m. OK Mono C# TESTS 110 670 37171200 1800
64186903 hibatibati C Nov. 4, 2019, 5:46 a.m. OK Mono C# TESTS 110 716 44134400 1800
41502407 mid_or_feed C Aug. 11, 2018, 5:58 p.m. OK Mono C# TESTS 110 1497 25804800 1800
41502439 mid_or_feed C Aug. 11, 2018, 5:59 p.m. OK Mono C# TESTS 110 1731 25804800 1800
24955709 og.kostya C Feb. 24, 2017, 6 a.m. OK MS C# TESTS 110 140 12492800 1800
24958660 azukun C Feb. 24, 2017, 8:27 a.m. OK MS C# TESTS 110 233 33280000 1800
24939189 mircea85 C Feb. 23, 2017, 4:38 p.m. OK MS C# TESTS 110 234 29184000 1800
24945418 Neverauskas C Feb. 23, 2017, 6:38 p.m. OK MS C# TESTS 110 280 31744000 1800
24943698 Taube C Feb. 23, 2017, 6 p.m. OK MS C++ TESTS 110 234 8704000 1800
24960324 xsc C Feb. 24, 2017, 9:37 a.m. OK MS C++ TESTS 110 249 8192000 1800
24942971 DimonK C Feb. 23, 2017, 5:49 p.m. OK MS C++ TESTS 110 249 8806400 1800
24942900 SlavaSSU C Feb. 23, 2017, 5:48 p.m. OK MS C++ TESTS 110 249 9830400 1800
27668473 Cabpacob C June 8, 2017, 10:08 a.m. OK MS C++ TESTS 110 280 5529600 1800
24998299 -osdajigu- C Feb. 25, 2017, 12:11 a.m. OK MS C++ TESTS 110 280 7372800 1800
24943348 noxwell C Feb. 23, 2017, 5:54 p.m. OK MS C++ TESTS 110 280 7884800 1800
25001498 dastan C Feb. 25, 2017, 4:42 a.m. OK MS C++ TESTS 110 280 8294400 1800
27668793 Cabpacob C June 8, 2017, 10:25 a.m. OK MS C++ TESTS 110 327 5529600 1800
24948683 knight-erraunt C Feb. 23, 2017, 9:10 p.m. OK MS C++ TESTS 110 343 8192000 1800
52343807 haylee C April 5, 2019, 11:46 a.m. OK MS C++ 2017 TESTS 110 717 4915200 1800
52374003 haylee C April 6, 2019, 7:30 a.m. OK MS C++ 2017 TESTS 110 748 4096000 1800
68696802 vjudge2 C Jan. 13, 2020, 8:11 a.m. OK MS C++ 2017 TESTS 110 1543 198144000 1800
51824115 CodeZYQ C March 25, 2019, 1:20 p.m. OK MS C++ 2017 TESTS 110 1669 9932800 1800
68652164 vjudge4 C Jan. 12, 2020, 11:06 a.m. OK MS C++ 2017 TESTS 110 1669 206233600 1800
58202071 vjudge5 C Aug. 3, 2019, 4:58 a.m. OK MS C++ 2017 TESTS 110 1934 8806400 1800
58202333 vjudge2 C Aug. 3, 2019, 5:08 a.m. OK MS C++ 2017 TESTS 110 1950 8704000 1800
25450126 s_p C March 13, 2017, 9:13 a.m. OK Perl TESTS 110 2089 33382400 1800
25437562 cgfs10000 C March 12, 2017, 2:59 p.m. OK PyPy 2 TESTS 110 795 40243200 1800
24955936 truckski C Feb. 24, 2017, 6:12 a.m. OK PyPy 2 TESTS 110 810 40652800 1800
24955857 truckski C Feb. 24, 2017, 6:08 a.m. OK PyPy 2 TESTS 110 919 40652800 1800
24945002 rajuknit C Feb. 23, 2017, 6:26 p.m. OK PyPy 2 TESTS 110 1029 37273600 1800
24945138 rajuknit C Feb. 23, 2017, 6:30 p.m. OK PyPy 2 TESTS 110 1138 41267200 1800
24958527 har_vi C Feb. 24, 2017, 8:21 a.m. OK PyPy 2 TESTS 110 1450 43315200 1800
25068787 TangentOfA C Feb. 27, 2017, 4:21 a.m. OK PyPy 2 TESTS 110 1762 36864000 1800
49953859 noob77777 C Feb. 15, 2019, 3:09 p.m. OK PyPy 2 TESTS 110 2058 29184000 1800
36443522 vjudge1 C March 20, 2018, 11:02 p.m. OK PyPy 2 TESTS 110 2480 72601600 1800
39808774 homoeconomicus C June 30, 2018, 10:31 p.m. OK PyPy 3 TESTS 110 826 22835200 1800
25437579 cgfs10000 C March 12, 2017, 3 p.m. OK PyPy 3 TESTS 110 1044 40345600 1800
52740550 saku7 C April 14, 2019, 8:47 a.m. OK PyPy 3 TESTS 110 1060 16588800 1800
25007337 nanae1914 C Feb. 25, 2017, 8:49 a.m. OK PyPy 3 TESTS 110 1107 40550400 1800
24955551 truckski C Feb. 24, 2017, 5:50 a.m. OK PyPy 3 TESTS 110 1107 43724800 1800
27148556 nanae1914 C May 16, 2017, 2:36 a.m. OK PyPy 3 TESTS 110 1123 16998400 1800
24957128 F.A.H.I.M C Feb. 24, 2017, 7:09 a.m. OK PyPy 3 TESTS 110 1138 40448000 1800
24996304 yudgin070707 C Feb. 24, 2017, 9:08 p.m. OK PyPy 3 TESTS 110 1200 40140800 1800
68484241 Firepaw C Jan. 10, 2020, 9:02 a.m. OK PyPy 3 TESTS 110 1294 24678400 1800
54735612 Aidos C May 28, 2019, 4:41 a.m. OK PyPy 3 TESTS 110 1809 41472000 1800
24943166 jrying C Feb. 23, 2017, 5:52 p.m. OK Python 2 TESTS 110 1777 15872000 1800
25094873 franckmy C Feb. 28, 2017, 7:26 a.m. OK Python 2 TESTS 110 1949 13619200 1800
31329232 isgulkov C Oct. 15, 2017, 5:31 a.m. OK Python 2 TESTS 110 1949 14540800 1800
25091954 nealzane C Feb. 28, 2017, 3:17 a.m. OK Python 2 TESTS 110 2012 13619200 1800
25888286 biltharesatyendra C March 29, 2017, 5:55 a.m. OK Python 2 TESTS 110 2152 13619200 1800
27148741 nanae1914 C May 16, 2017, 2:53 a.m. OK Python 3 TESTS 110 1341 12697600 1800
51937901 r57shell C March 28, 2019, 1:14 p.m. OK Python 3 TESTS 110 1403 12083200 1800
24937847 raven38 C Feb. 23, 2017, 4:30 p.m. OK Python 3 TESTS 110 1669 16691200 1800
33518307 yongzx C Dec. 22, 2017, 7:07 p.m. OK Python 3 TESTS 110 1700 17305600 1800
31042655 yugle7 C Oct. 5, 2017, 5:31 p.m. OK Python 3 TESTS 110 1715 13209600 1800
33518141 manhphamnguyen C Dec. 22, 2017, 7:02 p.m. OK Python 3 TESTS 110 1731 17305600 1800
42141202 Mk_Python_v1 C Aug. 27, 2018, 5:37 a.m. OK Python 3 TESTS 110 1793 11673600 1800
24938380 Ferume C Feb. 23, 2017, 4:33 p.m. OK Python 3 TESTS 110 1887 16281600 1800
24983356 hq9907 C Feb. 24, 2017, 1:40 p.m. OK Python 3 TESTS 110 1933 16588800 1800
25437506 cgfs10000 C March 12, 2017, 2:56 p.m. OK Python 3 TESTS 110 2230 14643200 1800
25031506 tkain C Feb. 26, 2017, 8:10 a.m. OK Ruby TESTS 110 2090 33996800 1800
25133648 voxl C March 1, 2017, 6:42 p.m. OK Rust TESTS 110 1419 9932800 1800

remove filters

Back to search problems