Codeforces Round 312 (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
558 Codeforces Round 312 (Div. 2) FINISHED False 7200 300725404 July 14, 2015, 3:10 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7910 ) B Amr and The Large Array PROGRAMMING implementation 1400

B"Amr has got a large array of size n. Amr doesn't like large arrays so he intends to make it smaller. Amr doesn't care about anything in the array except the beauty of it. The beauty of the array is defined to be the maximum number of times that some number occurs in this array. He wants to choose the smallest subsegment of this array such that the beauty of it will be the same as the original array. Help Amr by choosing the smallest subsegment possible. The first line contains one number n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), the size of the array. The second line contains n integers ai (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106), representing elements of the array. Output two integers l, xe2 x80 x89r (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n), the beginning and the end of the subsegment chosen respectively. If there are several possible answers you may output any of them. A subsegment B of an array A from l to r is an array of size r xe2 x80 x89- xe2 x80 x89l xe2 x80 x89+ xe2 x80 x891 where Bi xe2 x80 x89= xe2 x80 x89Al xe2 x80 x89+ xe2 x80 x89i xe2 x80 x89- xe2 x80 x891 for all 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r xe2 x80 x89- xe2 x80 x89l xe2 x80 x89+ xe2 x80 x891"...

Tutorials

Codeforces Round #312 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
12066458 SirNickolas B July 15, 2015, 6:24 a.m. OK D TESTS 49 93 12288000 1400
12144966 dr.ikros B July 21, 2015, 9:30 a.m. OK D TESTS 49 93 16076800 1400
12108741 favstovol B July 18, 2015, 4:10 p.m. OK Delphi TESTS 49 31 11980800 1400
12060808 Emgariko B July 14, 2015, 6:43 p.m. OK Delphi TESTS 49 46 12492800 1400
12060795 garipov.roma B July 14, 2015, 6:42 p.m. OK Delphi TESTS 49 46 32153600 1400
12065118 xuanquang1999 B July 15, 2015, 4:50 a.m. OK FPC TESTS 49 31 4505600 1400
13932682 Gray_58 B Oct. 29, 2015, 12:15 p.m. OK FPC TESTS 49 31 12083200 1400
19357490 dailong B July 23, 2016, 6:26 a.m. OK FPC TESTS 49 31 12390400 1400
12071332 WeaverOrFeed B July 15, 2015, 12:27 p.m. OK FPC TESTS 49 31 12390400 1400
12614212 Kudai B Aug. 20, 2015, 10:17 a.m. OK FPC TESTS 49 31 13516800 1400
15768872 RokeZZZ B Feb. 3, 2016, 1:04 p.m. OK FPC TESTS 49 31 16076800 1400
12071416 Ferume B July 15, 2015, 12:34 p.m. OK FPC TESTS 49 31 16076800 1400
12069227 namjr B July 15, 2015, 9:20 a.m. OK FPC TESTS 49 31 17817600 1400
12546585 Passenger B Aug. 15, 2015, 11:22 a.m. OK FPC TESTS 49 31 20070400 1400
12084286 yan_lazy B July 16, 2015, 1:24 p.m. OK FPC TESTS 49 31 20070400 1400
12204976 ankush11smart B July 23, 2015, 7 p.m. OK GNU C TESTS 49 31 7987200 1400
12098839 deepprakash345 B July 17, 2015, 8:22 p.m. OK GNU C TESTS 49 31 7987200 1400
18510973 Rizro B June 16, 2016, 3:14 a.m. OK GNU C TESTS 49 31 11980800 1400
12073423 dheerajsingh B July 15, 2015, 3:41 p.m. OK GNU C TESTS 49 31 11980800 1400
13809321 yigezhe B Oct. 23, 2015, 1:33 p.m. OK GNU C TESTS 49 31 12390400 1400
26633458 Takik B April 24, 2017, 5:10 a.m. OK GNU C TESTS 49 31 13926400 1400
12063171 vaibhav2510 B July 15, 2015, 1:16 a.m. OK GNU C TESTS 49 46 819200 1400
12068222 robin_0 B July 15, 2015, 8:14 a.m. OK GNU C TESTS 49 46 5222400 1400
13818486 102020031 B Oct. 24, 2015, 5:52 a.m. OK GNU C TESTS 49 46 7987200 1400
13802778 102020031 B Oct. 23, 2015, 5:42 a.m. OK GNU C TESTS 49 46 7987200 1400
12225027 CHXER B July 25, 2015, 2:05 p.m. OK GNU C++ TESTS 49 30 7987200 1400
12156510 20144856 B July 22, 2015, 12:48 a.m. OK GNU C++ TESTS 49 30 7987200 1400
12063179 hackssssss B July 15, 2015, 1:18 a.m. OK GNU C++ TESTS 49 30 8089600 1400
12329118 MosharrafOshy B Aug. 3, 2015, 5:28 p.m. OK GNU C++ TESTS 49 30 12390400 1400
12145430 sswzfly B July 21, 2015, 10:20 a.m. OK GNU C++ TESTS 49 31 4198400 1400
14931916 nacisey314 B Dec. 23, 2015, 12:36 a.m. OK GNU C++ TESTS 49 31 4403200 1400
12159629 vjudge2 B July 22, 2015, 6:59 a.m. OK GNU C++ TESTS 49 31 5222400 1400
15624704 NENU_John_Z B Jan. 28, 2016, 7:50 a.m. OK GNU C++ TESTS 49 31 7782400 1400
15595331 vjudge3 B Jan. 26, 2016, 2:35 p.m. OK GNU C++ TESTS 49 31 7782400 1400
13887441 130705009 B Oct. 27, 2015, 8:56 a.m. OK GNU C++ TESTS 49 31 7782400 1400
12159964 YukiSora B July 22, 2015, 7:18 a.m. OK GNU C11 TESTS 49 46 7987200 1400
60162539 You_Know_Who B Sept. 6, 2019, 9:31 a.m. OK GNU C11 TESTS 49 46 7987200 1400
13728510 wearelp B Oct. 19, 2015, 1:01 p.m. OK GNU C11 TESTS 49 46 11980800 1400
13874330 rookE B Oct. 26, 2015, 2:42 p.m. OK GNU C11 TESTS 49 46 11980800 1400
62390101 kaiboy B Oct. 12, 2019, 1 a.m. OK GNU C11 TESTS 49 46 11980800 1400
12073218 merolish B July 15, 2015, 3:21 p.m. OK GNU C11 TESTS 49 46 11980800 1400
12091025 Argo B July 17, 2015, 4:42 a.m. OK GNU C11 TESTS 49 46 11980800 1400
12429384 Sajid_Hasan_Apon B Aug. 9, 2015, 7:16 p.m. OK GNU C11 TESTS 49 46 11980800 1400
12440295 tomodachi B Aug. 10, 2015, 3:04 p.m. OK GNU C11 TESTS 49 46 11980800 1400
12138469 nemoload B July 20, 2015, 11:25 p.m. OK GNU C11 TESTS 49 46 12083200 1400
12331972 Duxar B Aug. 4, 2015, 1:40 a.m. OK GNU C++11 TESTS 49 30 819200 1400
12163159 kwazar B July 22, 2015, 11:46 a.m. OK GNU C++11 TESTS 49 30 8089600 1400
26680197 JNS B April 26, 2017, 11:16 a.m. OK GNU C++11 TESTS 49 30 14950400 1400
12626234 Dirak jiyutian FHW_SO_WALL B Aug. 21, 2015, 10:18 a.m. OK GNU C++11 TESTS 49 31 614400 1400
12295051 Ahmed_Salama B July 31, 2015, 5:53 p.m. OK GNU C++11 TESTS 49 31 7782400 1400
13892573 happycat B Oct. 27, 2015, 2:49 p.m. OK GNU C++11 TESTS 49 31 7782400 1400
22035455 dream-boy B Nov. 4, 2016, 1:40 p.m. OK GNU C++11 TESTS 49 31 7987200 1400
27238253 Sdite B May 20, 2017, 5:30 p.m. OK GNU C++11 TESTS 49 31 7987200 1400
27005771 Taohidul_Islam B May 11, 2017, 3:51 a.m. OK GNU C++11 TESTS 49 31 7987200 1400
13876797 kshitijgupta B Oct. 26, 2015, 5:23 p.m. OK GNU C++11 TESTS 49 31 7987200 1400
34072641 Shellhead96 B Jan. 10, 2018, 4 p.m. OK GNU C++14 TESTS 49 31 9932800 1400
32742924 Harshad B Nov. 28, 2017, 7:26 a.m. OK GNU C++14 TESTS 49 31 10240000 1400
27567131 danya.smelskiy B June 4, 2017, 3:54 p.m. OK GNU C++14 TESTS 49 46 819200 1400
27384712 Antoine B May 27, 2017, 11:13 a.m. OK GNU C++14 TESTS 49 46 4096000 1400
34126720 rosklin B Jan. 13, 2018, 12:21 p.m. OK GNU C++14 TESTS 49 46 4812800 1400
27762823 above_you B June 13, 2017, 8:18 p.m. OK GNU C++14 TESTS 49 46 6041600 1400
26797217 gigime B May 2, 2017, 6:23 a.m. OK GNU C++14 TESTS 49 46 6451200 1400
29696127 pingponggame B Aug. 23, 2017, 1:51 a.m. OK GNU C++14 TESTS 49 46 7987200 1400
29793725 avdeshk19 B Aug. 25, 2017, 11:09 p.m. OK GNU C++14 TESTS 49 46 7987200 1400
29696274 pingponggame B Aug. 23, 2017, 2:04 a.m. OK GNU C++14 TESTS 49 46 7987200 1400
65574282 r57shell B Nov. 23, 2019, 8:51 a.m. OK GNU C++17 TESTS 49 46 7987200 1400
65110614 Abdelrhman_Akram B Nov. 15, 2019, 10:10 p.m. OK GNU C++17 TESTS 49 46 7987200 1400
61256802 chenxiaosongcr7 B Sept. 25, 2019, 10:23 a.m. OK GNU C++17 TESTS 49 46 7987200 1400
56782235 vjudge1 B July 10, 2019, 6:47 a.m. OK GNU C++17 TESTS 49 46 7987200 1400
51537994 Umm B March 19, 2019, 5:28 p.m. OK GNU C++17 TESTS 49 46 7987200 1400
47545972 IAM_NOOB B Dec. 27, 2018, 10:10 a.m. OK GNU C++17 TESTS 49 46 7987200 1400
58940692 nikits B Aug. 17, 2019, 6:47 a.m. OK GNU C++17 TESTS 49 46 9932800 1400
45546052 exe B Nov. 11, 2018, 1:13 a.m. OK GNU C++17 TESTS 49 46 11980800 1400
54793953 valerikk B May 29, 2019, 8:42 a.m. OK GNU C++17 TESTS 49 46 12083200 1400
67063930 wladw B Dec. 17, 2019, 10:20 a.m. OK GNU C++17 TESTS 49 46 12083200 1400
12164470 deletelazy B July 22, 2015, 1:58 p.m. OK Go TESTS 49 61 12083200 1400
12141468 binhuq B July 21, 2015, 4:33 a.m. OK Go TESTS 49 62 14950400 1400
12164474 deletelazy B July 22, 2015, 1:58 p.m. OK Go TESTS 49 78 12083200 1400
15902721 ximo B Feb. 8, 2016, 9:22 p.m. OK Go TESTS 49 155 35737600 1400
66456348 akifpathan B Dec. 7, 2019, 1:17 p.m. OK Java 11 TESTS 49 264 10240000 1400
12605946 tyuan73 B Aug. 19, 2015, 3:55 p.m. OK Java 7 TESTS 49 93 0 1400
12072377 saket9450 B July 15, 2015, 2:04 p.m. OK Java 7 TESTS 49 93 0 1400
12072161 saket9450 B July 15, 2015, 1:39 p.m. OK Java 7 TESTS 49 93 13209600 1400
12127410 Tamtomus B July 20, 2015, 9:11 a.m. OK Java 7 TESTS 49 109 8294400 1400
12127339 Tamtomus B July 20, 2015, 9:06 a.m. OK Java 7 TESTS 49 109 8294400 1400
12079956 skyrim B July 16, 2015, 7:39 a.m. OK Java 7 TESTS 49 109 13721600 1400
12065517 Azat_Yusupov B July 15, 2015, 5:28 a.m. OK Java 7 TESTS 49 109 13721600 1400
12274770 mikcorer B July 30, 2015, 11:53 a.m. OK Java 7 TESTS 49 109 15052800 1400
12274786 Just_kiy B July 30, 2015, 11:55 a.m. OK Java 7 TESTS 49 109 15052800 1400
12086425 pepradere B July 16, 2015, 4:29 p.m. OK Java 7 TESTS 49 109 15052800 1400
12315949 vidyut_1 B Aug. 2, 2015, 2:35 p.m. OK Java 8 TESTS 49 124 14643200 1400
14323233 FUCK_YOU_BITCH B Nov. 18, 2015, 9:12 a.m. OK Java 8 TESTS 49 139 0 1400
14415376 NhanNguyenGR B Nov. 22, 2015, 2:43 p.m. OK Java 8 TESTS 49 140 0 1400
12243957 dima.13 B July 27, 2015, 6:43 p.m. OK Java 8 TESTS 49 140 0 1400
12064844 poikniok B July 15, 2015, 4:08 a.m. OK Java 8 TESTS 49 140 0 1400
12062478 Lewin B July 14, 2015, 11:34 p.m. OK Java 8 TESTS 49 140 0 1400
41316340 wrong_lemma B Aug. 7, 2018, 7:49 p.m. OK Java 8 TESTS 49 140 6451200 1400
27670723 karanjobanputra B June 8, 2017, 12:03 p.m. OK Java 8 TESTS 49 140 6451200 1400
12060175 akorzun B July 14, 2015, 6:16 p.m. OK Java 8 TESTS 49 140 7680000 1400
16452290 kubusgol B March 1, 2016, 6:42 p.m. OK Java 8 TESTS 49 140 7884800 1400
12194068 ILTLH B July 23, 2015, 5:04 a.m. OK JavaScript TESTS 49 109 22016000 1400
12194767 ILTLH B July 23, 2015, 6:34 a.m. OK JavaScript TESTS 49 155 48230400 1400
12209453 ILTLH B July 24, 2015, 6:13 a.m. OK JavaScript TESTS 49 280 38707200 1400
42601650 Skndr801 B Sept. 7, 2018, 5:11 a.m. OK Mono C# TESTS 49 93 17612800 1400
61855127 boookva B Oct. 4, 2019, 1:51 p.m. OK Mono C# TESTS 49 109 22016000 1400
12208665 UESTC_ElemeNtLz B July 24, 2015, 5 a.m. OK Mono C# TESTS 49 109 25804800 1400
50611493 nemars B Feb. 28, 2019, 5:08 p.m. OK Mono C# TESTS 49 140 25907200 1400
12086697 Beresta B July 16, 2015, 4:54 p.m. OK MS C# TESTS 49 77 12595200 1400
16745409 Arcey B March 16, 2016, 1:19 p.m. OK MS C# TESTS 49 77 21504000 1400
12070160 sicon54 B July 15, 2015, 10:49 a.m. OK MS C# TESTS 49 77 24780800 1400
12125567 ACE347 B July 20, 2015, 5:49 a.m. OK MS C# TESTS 49 92 14950400 1400
12106388 navymn B July 18, 2015, 1:19 p.m. OK MS C# TESTS 49 93 17305600 1400
13079473 seeva92 B Sept. 18, 2015, 2:08 a.m. OK MS C# TESTS 49 93 21708800 1400
20295303 Chubcheg B Aug. 31, 2016, 6:36 a.m. OK MS C# TESTS 49 93 24780800 1400
12162967 devilsanek B July 22, 2015, 11:23 a.m. OK MS C# TESTS 49 93 24883200 1400
27446779 ShowStopper728 B May 30, 2017, 11:13 a.m. OK MS C# TESTS 49 93 25292800 1400
14938658 dzeranov1995 B Dec. 23, 2015, 12:59 p.m. OK MS C# TESTS 49 93 26419200 1400
12069826 MiserableWisdom B July 15, 2015, 10:16 a.m. OK MS C++ TESTS 49 31 7987200 1400
12069759 zhuyi13 B July 15, 2015, 10:09 a.m. OK MS C++ TESTS 49 31 11980800 1400
15593289 vjudge4 B Jan. 26, 2016, 12:52 p.m. OK MS C++ TESTS 49 31 12083200 1400
15596010 vjudge2 B Jan. 26, 2016, 3:07 p.m. OK MS C++ TESTS 49 31 12390400 1400
12259527 daisyhey B July 29, 2015, 5:29 a.m. OK MS C++ TESTS 49 31 12390400 1400
12082544 acka1357 B July 16, 2015, 11:09 a.m. OK MS C++ TESTS 49 31 12390400 1400
26747144 vjudge1 B April 29, 2017, 12:13 p.m. OK MS C++ TESTS 49 31 14131200 1400
28552196 scorpiowf B July 14, 2017, 3:38 p.m. OK MS C++ TESTS 49 31 16486400 1400
29298052 scorpiowf B Aug. 9, 2017, 5 a.m. OK MS C++ TESTS 49 31 16793600 1400
32969317 vjudge5 B Dec. 6, 2017, 8:25 a.m. OK MS C++ TESTS 49 31 18124800 1400
63894500 vjudge4 B Oct. 31, 2019, 12:55 a.m. OK MS C++ 2017 TESTS 49 46 12288000 1400
59646485 vjudge1 B Aug. 29, 2019, 6:05 a.m. OK MS C++ 2017 TESTS 49 109 8396800 1400
55309111 0-jij-0 B June 8, 2019, 4:25 p.m. OK MS C++ 2017 TESTS 49 109 13414400 1400
59904732 CtrlAlt B Sept. 2, 2019, 2:54 p.m. OK MS C++ 2017 TESTS 49 156 10444800 1400
12061217 rsFalse B July 14, 2015, 7:08 p.m. OK Perl TESTS 49 327 37478400 1400
12085049 Blacking B July 16, 2015, 2:23 p.m. OK PHP TESTS 49 155 40038400 1400
16536395 mayakin B March 5, 2016, 2:59 p.m. OK PHP TESTS 49 280 45056000 1400
25223167 Unlenin B March 4, 2017, 5:49 p.m. OK PyPy 2 TESTS 49 140 41881600 1400
22853618 Trunks B Dec. 10, 2016, 11:21 a.m. OK PyPy 2 TESTS 49 155 19660800 1400
26651555 TangentOfA B April 25, 2017, 1:59 a.m. OK PyPy 2 TESTS 49 171 37683200 1400
12067426 vitux B July 15, 2015, 7:24 a.m. OK PyPy 2 TESTS 49 311 29593600 1400
34577777 honeysingh123 B Jan. 26, 2018, 2:02 p.m. OK PyPy 3 TESTS 49 171 35635200 1400
12820801 SteelRaven B Sept. 2, 2015, 8:47 p.m. OK PyPy 3 TESTS 49 217 14643200 1400
53862839 I_love_Kim_Possible B May 7, 2019, 11:15 p.m. OK PyPy 3 TESTS 49 233 18636800 1400
66601097 jagadeesh19 B Dec. 10, 2019, 4:33 p.m. OK PyPy 3 TESTS 49 249 17408000 1400
12149962 Denzed B July 21, 2015, 2:57 p.m. OK PyPy 3 TESTS 49 264 14643200 1400
63884049 kchau B Oct. 30, 2019, 11:06 p.m. OK PyPy 3 TESTS 49 265 34918400 1400
17318684 yashar_sb_sb B April 14, 2016, 6:21 p.m. OK PyPy 3 TESTS 49 311 16486400 1400
49656167 ashok123 B Feb. 9, 2019, 10:02 a.m. OK PyPy 3 TESTS 49 311 19968000 1400
60711851 kopok2 B Sept. 17, 2019, 8:45 a.m. OK PyPy 3 TESTS 49 312 26112000 1400
12060592 n_knuu B July 14, 2015, 6:33 p.m. OK PyPy 3 TESTS 49 327 15462400 1400
14192058 trunghieu11 B Nov. 11, 2015, 4:16 a.m. OK Python 2 TESTS 49 186 14643200 1400
12063383 youngitachi B July 15, 2015, 1:41 a.m. OK Python 2 TESTS 49 186 15360000 1400
33703842 laoliumang B Dec. 28, 2017, 7:55 a.m. OK Python 2 TESTS 49 187 15667200 1400
12063726 intspt B July 15, 2015, 2:20 a.m. OK Python 2 TESTS 49 187 17408000 1400
12889528 xrisk B Sept. 7, 2015, 7:45 p.m. OK Python 2 TESTS 49 202 16896000 1400
12227061 diegoado B July 25, 2015, 8:40 p.m. OK Python 2 TESTS 49 217 11161600 1400
12430001 r95 B Aug. 9, 2015, 9:04 p.m. OK Python 2 TESTS 49 217 13926400 1400
12087953 lifespark B July 16, 2015, 7:27 p.m. OK Python 2 TESTS 49 217 14848000 1400
12268672 diegoado B July 29, 2015, 7:44 p.m. OK Python 2 TESTS 49 218 11161600 1400
12077890 venkatesh_p B July 16, 2015, 4:26 a.m. OK Python 2 TESTS 49 218 13721600 1400
12642987 ValenKof B Aug. 22, 2015, 1:33 p.m. OK Python 3 TESTS 49 202 13209600 1400
12120671 orailly B July 19, 2015, 9:21 p.m. OK Python 3 TESTS 49 202 16486400 1400
12090323 ACkf B July 17, 2015, 2:55 a.m. OK Python 3 TESTS 49 202 17612800 1400
28021344 PAPICHbogdoti2 B June 25, 2017, 11:36 a.m. OK Python 3 TESTS 49 202 19353600 1400
35888198 ______u______ B March 3, 2018, 2:18 p.m. OK Python 3 TESTS 49 202 21606400 1400
35888005 ______n______ B March 3, 2018, 2:14 p.m. OK Python 3 TESTS 49 202 21606400 1400
35887619 _____k_____ B March 3, 2018, 2:07 p.m. OK Python 3 TESTS 49 202 21606400 1400
35886651 _____i_____ B March 3, 2018, 1:50 p.m. OK Python 3 TESTS 49 202 21606400 1400
35882852 ______h______ B March 3, 2018, 12:45 p.m. OK Python 3 TESTS 49 202 21606400 1400
35875463 ______k______ B March 3, 2018, 8:18 a.m. OK Python 3 TESTS 49 202 21606400 1400
12074394 cielavenir B July 15, 2015, 5:37 p.m. OK Ruby TESTS 49 280 35635200 1400
12901676 kk91 B Sept. 8, 2015, 6:13 p.m. OK Ruby TESTS 49 327 32665600 1400
12105344 ninoseki B July 18, 2015, 11:25 a.m. OK Ruby TESTS 49 358 29081600 1400
13335587 sbaldrich B Oct. 1, 2015, 7:50 p.m. OK Scala TESTS 49 390 15974400 1400
12061031 tomoki B July 14, 2015, 6:57 p.m. OK Scala TESTS 49 452 16691200 1400
12108855 Dreimon B July 18, 2015, 4:23 p.m. OK Scala TESTS 49 468 18329600 1400
15058089 Dimorph B Dec. 27, 2015, 3:25 p.m. OK Scala TESTS 49 483 13209600 1400
13335398 sbaldrich B Oct. 1, 2015, 7:32 p.m. OK Scala TESTS 49 514 15974400 1400

remove filters

Back to search problems