Codeforces Round 276 (Div. 1)

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
484 Codeforces Round 276 (Div. 1) FINISHED False 9000 316618199 Nov. 5, 2014, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7077 ) B Maximum Value PROGRAMMING binary search math sortings two pointers 2100

B'You are given a sequence a consisting of n integers. Find the maximum possible value of (integer remainder of ai divided by aj), where 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i, xe2 x80 x89j xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n and ai xe2 x80 x89 xe2 x89 xa5 xe2 x80 x89aj. The first line contains integer n -- the length of the sequence (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7105). The second line contains n space-separated integers ai (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106). Print the answer to the problem.'...

Tutorials

Codeforces Round #276 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
8579623 AHTuTTuTyX B Nov. 5, 2014, 9:26 p.m. OK Delphi TESTS 45 545 32153600 2100
8581659 _The_Mastermind_ B Nov. 6, 2014, 1:56 a.m. OK FPC TESTS 45 46 5529600 2100
8753663 graceoflives B Nov. 19, 2014, 8:53 a.m. OK FPC TESTS 45 46 5939200 2100
8741802 LanHuong B Nov. 18, 2014, 4:34 a.m. OK FPC TESTS 45 62 1945600 2100
8583144 hoangtheanhhp B Nov. 6, 2014, 4:36 a.m. OK FPC TESTS 45 93 10137600 2100
8629186 greatsaiyanman B Nov. 10, 2014, 8:19 a.m. OK FPC TESTS 45 93 16179200 2100
13087044 vuathegioi99 B Sept. 18, 2015, 1:28 p.m. OK FPC TESTS 45 109 5939200 2100
8772514 LeKhacHuy08 B Nov. 21, 2014, 9:23 a.m. OK FPC TESTS 45 109 9625600 2100
12327722 ThereIsNoSalvationForMe B Aug. 3, 2015, 3:29 p.m. OK FPC TESTS 45 109 9830400 2100
8711798 seek B Nov. 16, 2014, 2:34 p.m. OK FPC TESTS 45 109 16179200 2100
8629164 greatsaiyanman B Nov. 10, 2014, 8:15 a.m. OK FPC TESTS 45 109 16179200 2100
10262877 mortadha B March 13, 2015, 8:46 p.m. OK GNU C TESTS 45 77 15974400 2100
8993900 ahmedmed B Dec. 5, 2014, 5:50 p.m. OK GNU C TESTS 45 77 15974400 2100
13536810 dhruvtanwar B Oct. 10, 2015, 9:09 p.m. OK GNU C TESTS 45 93 1638400 2100
8986642 VOID_01 B Dec. 4, 2014, 11:47 p.m. OK GNU C TESTS 45 202 16793600 2100
9346955 vjudge3 B Jan. 2, 2015, 3:11 p.m. OK GNU C TESTS 45 233 16076800 2100
8581534 ivanilos B Nov. 6, 2014, 1:37 a.m. OK GNU C TESTS 45 233 16793600 2100
8581525 ivanilos B Nov. 6, 2014, 1:35 a.m. OK GNU C TESTS 45 249 16793600 2100
8599312 festivus B Nov. 7, 2014, 7:03 a.m. OK GNU C TESTS 45 530 4812800 2100
8974140 deamoon B Dec. 3, 2014, 8:55 p.m. OK GNU C TESTS 45 732 4812800 2100
9916319 mrloser B Feb. 18, 2015, 3:41 p.m. OK GNU C TESTS 45 764 819200 2100
9276560 pseudo B Dec. 26, 2014, 2:21 p.m. OK GNU C++ TESTS 45 31 2969600 2100
18062000 TRiddle B May 24, 2016, 5:14 p.m. OK GNU C++ TESTS 45 31 3072000 2100
8754515 house1993 B Nov. 19, 2014, 11:10 a.m. OK GNU C++ TESTS 45 31 4812800 2100
8669528 DuymanhIT B Nov. 12, 2014, 9:41 a.m. OK GNU C++ TESTS 45 46 819200 2100
9280091 pseudo B Dec. 27, 2014, 2:07 a.m. OK GNU C++ TESTS 45 46 2969600 2100
18061966 TRiddle B May 24, 2016, 5:12 p.m. OK GNU C++ TESTS 45 46 3072000 2100
8598375 354898002 B Nov. 7, 2014, 4:11 a.m. OK GNU C++ TESTS 45 46 4812800 2100
16967294 vjudge1 B March 27, 2016, 8:06 a.m. OK GNU C++ TESTS 45 46 7065600 2100
9970663 vjudge4 B Feb. 23, 2015, 3:23 p.m. OK GNU C++ TESTS 45 46 8806400 2100
9242353 iwtwiioi B Dec. 24, 2014, 9:16 a.m. OK GNU C++ TESTS 45 46 10035200 2100
8611296 whn6325689 B Nov. 8, 2014, 3:41 a.m. OK GNU C++0x TESTS 45 31 7987200 2100
8716502 newSolar B Nov. 17, 2014, 8:23 a.m. OK GNU C++0x TESTS 45 46 819200 2100
8685879 Duxar B Nov. 13, 2014, 3:40 p.m. OK GNU C++0x TESTS 45 46 819200 2100
8619242 Chiba B Nov. 9, 2014, 2:16 a.m. OK GNU C++0x TESTS 45 46 819200 2100
8611341 whn6325689 B Nov. 8, 2014, 3:51 a.m. OK GNU C++0x TESTS 45 46 3993600 2100
8596230 MinakoKojima B Nov. 6, 2014, 8:49 p.m. OK GNU C++0x TESTS 45 46 3993600 2100
8673594 SeyedParsa B Nov. 12, 2014, 3:51 p.m. OK GNU C++0x TESTS 45 46 8806400 2100
8583051 stan B Nov. 6, 2014, 4:26 a.m. OK GNU C++0x TESTS 45 46 10035200 2100
8596005 MinakoKojima B Nov. 6, 2014, 8:23 p.m. OK GNU C++0x TESTS 45 46 11980800 2100
8676890 zhangxipeng B Nov. 13, 2014, 1:14 a.m. OK GNU C++0x TESTS 45 62 819200 2100
58348766 rainboy B Aug. 5, 2019, 4:14 p.m. OK GNU C11 TESTS 45 124 3993600 2100
23943185 Iney B Jan. 19, 2017, 11:24 a.m. OK GNU C++11 TESTS 45 31 2969600 2100
20040675 UoA_ZQC B Aug. 22, 2016, 7:33 a.m. OK GNU C++11 TESTS 45 31 2969600 2100
23943450 Iney B Jan. 19, 2017, 11:40 a.m. OK GNU C++11 TESTS 45 31 2969600 2100
61555610 _Nova B Sept. 30, 2019, 1:56 p.m. OK GNU C++11 TESTS 45 46 819200 2100
61555833 luogu_bot2 B Sept. 30, 2019, 2 p.m. OK GNU C++11 TESTS 45 46 819200 2100
43519355 Codeforces_Round509 B Sept. 28, 2018, 7:18 a.m. OK GNU C++11 TESTS 45 46 1126400 2100
23943444 Iney B Jan. 19, 2017, 11:39 a.m. OK GNU C++11 TESTS 45 46 2969600 2100
40987727 ReaLNero1 B July 30, 2018, 9:26 p.m. OK GNU C++11 TESTS 45 61 7987200 2100
14052122 gourmet B Nov. 4, 2015, 6:22 a.m. OK GNU C++11 TESTS 45 62 614400 2100
46302409 vjudge4 B Nov. 28, 2018, 7:54 a.m. OK GNU C++11 TESTS 45 62 819200 2100
34951960 OkRint B Feb. 5, 2018, 6:12 p.m. OK GNU C++14 TESTS 45 62 9932800 2100
22425776 Lixoskywalker B Nov. 23, 2016, 2:52 p.m. OK GNU C++14 TESTS 45 77 7987200 2100
34602629 terminator B Jan. 27, 2018, 10:44 a.m. OK GNU C++14 TESTS 45 77 19968000 2100
21863537 Georeth B Oct. 29, 2016, 4:47 a.m. OK GNU C++14 TESTS 45 78 819200 2100
20972208 JoeBlow B Sept. 28, 2016, 3:45 p.m. OK GNU C++14 TESTS 45 78 819200 2100
68052850 victor142 B Jan. 1, 2020, 7:56 p.m. OK GNU C++14 TESTS 45 78 819200 2100
62346959 namanjain0501 B Oct. 11, 2019, 7:57 a.m. OK GNU C++14 TESTS 45 78 2457600 2100
31935697 victoragnez B Nov. 1, 2017, 12:12 a.m. OK GNU C++14 TESTS 45 78 4096000 2100
36468043 JustInCase B March 22, 2018, 3:06 a.m. OK GNU C++14 TESTS 45 78 4198400 2100
37476730 kataki B April 20, 2018, 3:47 a.m. OK GNU C++14 TESTS 45 78 4198400 2100
43662046 JewRaper B Oct. 1, 2018, 7:42 p.m. OK GNU C++17 TESTS 45 62 224460800 2100
55006327 intruder_p B June 3, 2019, 7:44 a.m. OK GNU C++17 TESTS 45 78 819200 2100
53457290 donjar B April 28, 2019, 4:08 a.m. OK GNU C++17 TESTS 45 78 819200 2100
49998746 ivan100sic B Feb. 16, 2019, 4:21 p.m. OK GNU C++17 TESTS 45 78 819200 2100
61611897 vjudge5 B Oct. 1, 2019, 2:22 p.m. OK GNU C++17 TESTS 45 78 819200 2100
64562961 Dont_Give_Up B Nov. 9, 2019, 6:42 a.m. OK GNU C++17 TESTS 45 78 4812800 2100
67625487 twangal B Dec. 25, 2019, 9:22 p.m. OK GNU C++17 TESTS 45 78 5017600 2100
68705822 Alchemist0 B Jan. 13, 2020, 11:15 a.m. OK GNU C++17 TESTS 45 78 6656000 2100
49842571 Taam B Feb. 12, 2019, 7:17 p.m. OK GNU C++17 TESTS 45 78 7987200 2100
69570983 Dhruv_Rana B Jan. 26, 2020, 2:04 p.m. OK GNU C++17 TESTS 45 93 819200 2100
23658546 togatoga B Jan. 9, 2017, 1:46 a.m. OK Go TESTS 45 467 45363200 2100
8625465 cojna B Nov. 9, 2014, 6:25 p.m. OK Haskell TESTS 45 280 9523200 2100
8594132 cojna B Nov. 6, 2014, 5:24 p.m. OK Haskell TESTS 45 514 5324800 2100
69146782 jst_forfun B Jan. 19, 2020, 4:01 p.m. OK Java 11 TESTS 45 405 29388800 2100
68077485 kashishsingh8700 B Jan. 2, 2020, 1:08 p.m. OK Java 11 TESTS 45 685 17305600 2100
65724393 Mirbek_aka B Nov. 25, 2019, 9:22 p.m. OK Java 11 TESTS 45 717 17305600 2100
8570995 sroyal B Nov. 5, 2014, 5:58 p.m. OK Java 6 TESTS 45 218 8294400 2100
9228138 abababab B Dec. 22, 2014, 9:23 p.m. OK Java 6 TESTS 45 483 23961600 2100
8880551 marcose18 B Nov. 28, 2014, 3:55 p.m. OK Java 6 TESTS 45 779 307200 2100
9083805 tyuan73 B Dec. 11, 2014, 4:44 p.m. OK Java 7 TESTS 45 93 0 2100
11271497 Amr_Hassan B May 25, 2015, 10:56 p.m. OK Java 7 TESTS 45 109 0 2100
8593161 ixxa B Nov. 6, 2014, 4:10 p.m. OK Java 7 TESTS 45 109 204800 2100
8593122 ixxa B Nov. 6, 2014, 4:08 p.m. OK Java 7 TESTS 45 109 204800 2100
8591958 ixxa B Nov. 6, 2014, 2:41 p.m. OK Java 7 TESTS 45 124 204800 2100
8578898 Junior94 B Nov. 5, 2014, 8:38 p.m. OK Java 7 TESTS 45 171 204800 2100
8647282 Betlista B Nov. 11, 2014, 10:17 a.m. OK Java 7 TESTS 45 187 204800 2100
9078550 tyuan73 B Dec. 11, 2014, 6:50 a.m. OK Java 7 TESTS 45 202 0 2100
8591992 ixxa B Nov. 6, 2014, 2:42 p.m. OK Java 7 TESTS 45 202 204800 2100
8594392 pitfall B Nov. 6, 2014, 5:49 p.m. OK Java 7 TESTS 45 202 3481600 2100
31186562 7dan B Oct. 10, 2017, 10:18 a.m. OK Java 8 TESTS 45 140 0 2100
63398828 egaeus B Oct. 25, 2019, 5:35 p.m. OK Java 8 TESTS 45 187 14643200 2100
42260337 I_love_Harpae B Aug. 30, 2018, 2:34 a.m. OK Java 8 TESTS 45 248 5836800 2100
60148866 Sasuke-u B Sept. 6, 2019, 2:33 a.m. OK Java 8 TESTS 45 248 7168000 2100
64900351 sonusingh.nitaa B Nov. 14, 2019, 6:35 p.m. OK Java 8 TESTS 45 248 11059200 2100
29431742 vjudge2 B Aug. 13, 2017, 11:11 a.m. OK Java 8 TESTS 45 249 33894400 2100
29431716 freestyle4568 B Aug. 13, 2017, 11:10 a.m. OK Java 8 TESTS 45 249 33894400 2100
68822181 mj101 B Jan. 14, 2020, 5:49 p.m. OK Java 8 TESTS 45 264 8806400 2100
64900501 sonusingh.nitaa B Nov. 14, 2019, 6:39 p.m. OK Java 8 TESTS 45 264 11059200 2100
10820689 MVesterli B April 22, 2015, 9:40 a.m. OK Java 8 TESTS 45 265 46182400 2100
14637868 og.kostya B Dec. 3, 2015, 5:51 p.m. OK MS C# TESTS 45 93 819200 2100
10534232 freepvps B March 31, 2015, 2:44 p.m. OK MS C# TESTS 45 296 17305600 2100
8633566 azukun B Nov. 10, 2014, 6:45 p.m. OK MS C# TESTS 45 296 31129600 2100
18118547 yu3mars B May 27, 2016, 1:03 p.m. OK MS C# TESTS 45 343 55808000 2100
68590557 vjudge3 B Jan. 11, 2020, 12:32 p.m. OK MS C++ TESTS 45 62 819200 2100
8743236 a88027180 B Nov. 18, 2014, 8 a.m. OK MS C++ TESTS 45 62 819200 2100
8599416 ingress B Nov. 7, 2014, 7:20 a.m. OK MS C++ TESTS 45 62 3993600 2100
8894236 Seyaua B Nov. 29, 2014, 10:13 p.m. OK MS C++ TESTS 45 62 5222400 2100
17015300 vjudge4 B March 29, 2016, 7:19 a.m. OK MS C++ TESTS 45 62 50176000 2100
17015632 liuyuhong B March 29, 2016, 7:49 a.m. OK MS C++ TESTS 45 62 50278400 2100
8590904 wadefk B Nov. 6, 2014, 1:37 p.m. OK MS C++ TESTS 45 77 3993600 2100
8590072 AnnKats93 B Nov. 6, 2014, 12:46 p.m. OK MS C++ TESTS 45 77 4812800 2100
8586455 Death_Knight_DK B Nov. 6, 2014, 8:43 a.m. OK MS C++ TESTS 45 77 9625600 2100
8567500 SCUTE B Nov. 5, 2014, 5:15 p.m. OK MS C++ TESTS 45 77 16076800 2100
60693393 CtrlAlt B Sept. 16, 2019, 6:21 p.m. OK MS C++ 2017 TESTS 45 124 8806400 2100
51957827 Deadly_Brace B March 29, 2019, 4:21 a.m. OK MS C++ 2017 TESTS 45 904 1228800 2100
60413416 pajenegod B Sept. 12, 2019, 12:02 a.m. OK PyPy 2 TESTS 45 296 35328000 2100
60413362 pajenegod B Sept. 11, 2019, 11:59 p.m. OK PyPy 2 TESTS 45 451 35328000 2100
40905059 homoeconomicus B July 29, 2018, 4:47 a.m. OK PyPy 3 TESTS 45 421 20377600 2100
40904933 homoeconomicus B July 29, 2018, 4:40 a.m. OK PyPy 3 TESTS 45 576 20684800 2100
31187999 yugle7 B Oct. 10, 2017, 11:29 a.m. OK PyPy 3 TESTS 45 576 26214400 2100
25684444 DanielAnderson B March 21, 2017, 9:10 a.m. OK PyPy 3 TESTS 45 717 45363200 2100
68437642 Firepaw B Jan. 9, 2020, 9:35 a.m. OK PyPy 3 TESTS 45 795 32460800 2100
25066780 pranet B Feb. 27, 2017, 12:24 a.m. OK PyPy 3 TESTS 45 967 42496000 2100
25066694 pranet B Feb. 27, 2017, 12:13 a.m. OK PyPy 3 TESTS 45 998 42393600 2100
9449691 Misaki_Nakahara B Jan. 17, 2015, 11:16 a.m. OK Python 2 TESTS 45 374 17203200 2100
15984074 shangtai B Feb. 13, 2016, 8:41 a.m. OK Python 2 TESTS 45 451 16793600 2100
9216922 orailly B Dec. 21, 2014, 3:57 p.m. OK Python 3 TESTS 45 374 18227200 2100
9216962 orailly B Dec. 21, 2014, 4:02 p.m. OK Python 3 TESTS 45 404 18329600 2100
9216943 orailly B Dec. 21, 2014, 3:59 p.m. OK Python 3 TESTS 45 405 18227200 2100
9216827 orailly B Dec. 21, 2014, 3:47 p.m. OK Python 3 TESTS 45 405 18227200 2100
11124841 sicon54 B May 17, 2015, 9:59 a.m. OK Python 3 TESTS 45 421 18329600 2100
45753152 noelcowm B Nov. 15, 2018, 3:25 a.m. OK Python 3 TESTS 45 436 17817600 2100
32534650 nowyyz B Nov. 21, 2017, 7:51 p.m. OK Python 3 TESTS 45 468 18227200 2100
9216952 orailly B Dec. 21, 2014, 4:01 p.m. OK Python 3 TESTS 45 483 18329600 2100
31187615 yugle7 B Oct. 10, 2017, 11:10 a.m. OK Python 3 TESTS 45 498 18124800 2100
35875205 ______u______ B March 3, 2018, 8:09 a.m. OK Python 3 TESTS 45 530 23449600 2100
8579181 limed B Nov. 5, 2014, 8:53 p.m. OK Scala TESTS 45 904 4300800 2100
8579216 limed B Nov. 5, 2014, 8:56 p.m. OK Scala TESTS 45 936 2867200 2100

remove filters

Back to search problems