Codeforces Round 264 (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
463 Codeforces Round 264 (Div. 2) FINISHED False 7200 328228204 Aug. 30, 2014, 7:30 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8813 ) C Gargari and Bishops PROGRAMMING greedy hashing implementation 1800

B'Gargari is jealous that his friend Caisa won the game from the previous problem. He wants to prove that he is a genius. He has a n xe2 x80 x89 xc3 x97 xe2 x80 x89n chessboard. Each cell of the chessboard has a number written on it. Gargari wants to place two bishops on the chessboard in such a way that there is no cell that is attacked by both of them. Consider a cell with number x written on it, if this cell is attacked by one of the bishops Gargari will get x dollars for it. Tell Gargari, how to place bishops on the chessboard to get maximum amount of money. We assume a cell is attacked by a bishop, if the cell is located on the same diagonal with the bishop (the cell, where the bishop is, also considered attacked by it). The first line contains a single integer n (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892000). Each of the next n lines contains n integers aij (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89aij xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- description of the chessboard. On the first line print the maximal number of dollars Gargari will get. On the next line print four integers: x1, xe2 x80 x89y1, xe2 x80 x89x2, xe2 x80 x89y2 (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x1, xe2 x80 x89y1, xe2 x80 x89x2, xe2 x80 x89y2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n), where xi is the number of the row where the i-th bishop should be placed, yi is the number of the column where the i-th bishop should be placed. Consider rows are numbered from 1 to n from top to bottom, and columns are numbered from 1 to n from left to right. If there are several optimal solutions, you can print any of them.'...

Tutorials

CF 264 Div 2 Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
45422893 PavelChadnov C Nov. 7, 2018, 6:32 p.m. OK Clang++17 Diagnostics TESTS 23 2293 38604800 1800
11736574 aka.Sohieb C June 24, 2015, 1:05 p.m. OK Delphi TESTS 23 639 16281600 1800
10564453 AHTuTTuTyX C April 3, 2015, 9:24 p.m. OK Delphi TESTS 23 1029 160665600 1800
21195847 ice_tea C Oct. 4, 2016, 8:06 p.m. OK FPC TESTS 23 904 16076800 1800
42139208 chaorenhaha C Aug. 27, 2018, 3:26 a.m. OK FPC TESTS 23 1013 32460800 1800
18607198 Jicote C June 20, 2016, 12:52 a.m. OK FPC TESTS 23 1092 64409600 1800
11279757 Athee C May 26, 2015, 2:13 p.m. OK FPC TESTS 23 1138 216678400 1800
19593983 vkozlovs C Aug. 3, 2016, 8:34 a.m. OK FPC TESTS 23 1340 96460800 1800
12699133 glscale C Aug. 25, 2015, 5:55 p.m. OK FPC TESTS 23 1357 192819200 1800
14293568 abhilash007tt_ C Nov. 16, 2015, 6:22 a.m. OK GNU C TESTS 23 779 16179200 1800
11947696 NoSoul C July 6, 2015, 12:19 p.m. OK GNU C TESTS 23 795 16076800 1800
15607630 TsReaper C Jan. 27, 2016, 8:13 a.m. OK GNU C TESTS 23 795 16281600 1800
20675794 double301 C Sept. 17, 2016, 7:56 a.m. OK GNU C TESTS 23 826 125235200 1800
26347182 ananrohit C April 13, 2017, 8:40 p.m. OK GNU C TESTS 23 1013 33996800 1800
26998140 ayushrai09 C May 10, 2017, 2:31 p.m. OK GNU C TESTS 23 1013 112230400 1800
20675578 double301 C Sept. 17, 2016, 7:46 a.m. OK GNU C TESTS 23 1029 150323200 1800
20284834 rainboy C Aug. 30, 2016, 4:35 p.m. OK GNU C TESTS 23 1045 32153600 1800
18446439 aiswarya339 C June 14, 2016, 8:22 a.m. OK GNU C TESTS 23 1060 98099200 1800
20964939 MarcoXerox C Sept. 28, 2016, 10:44 a.m. OK GNU C TESTS 23 1091 32051200 1800
37278234 vjudge3 C April 13, 2018, 8:05 a.m. OK GNU C++ TESTS 23 62 37171200 1800
37278158 vjudge1 C April 13, 2018, 8:01 a.m. OK GNU C++ TESTS 23 140 37171200 1800
11761518 anshkhanna7 C June 25, 2015, 1:51 p.m. OK GNU C++ TESTS 23 218 16076800 1800
9964454 rincewind C Feb. 23, 2015, 12:26 a.m. OK GNU C++ TESTS 23 218 16076800 1800
9964418 rincewind C Feb. 23, 2015, 12:16 a.m. OK GNU C++ TESTS 23 218 16076800 1800
37277595 vjudge3 C April 13, 2018, 7:51 a.m. OK GNU C++ TESTS 23 218 19558400 1800
37275678 vjudge4 C April 13, 2018, 7:41 a.m. OK GNU C++ TESTS 23 233 20582400 1800
31311613 mengbierr C Oct. 14, 2017, 1 p.m. OK GNU C++ TESTS 23 233 64512000 1800
37272080 vjudge2 C April 13, 2018, 7:26 a.m. OK GNU C++ TESTS 23 234 36864000 1800
37277563 vjudge2 C April 13, 2018, 7:49 a.m. OK GNU C++ TESTS 23 249 20377600 1800
8950340 anatolat C Dec. 3, 2014, 9:50 a.m. OK GNU C++0x TESTS 23 654 16076800 1800
9446215 StretfordEnd C Jan. 16, 2015, 8:22 p.m. OK GNU C++0x TESTS 23 733 32358400 1800
10140390 zlzmsrhak C March 4, 2015, 4:19 a.m. OK GNU C++0x TESTS 23 795 15872000 1800
9950033 sahil140194 C Feb. 21, 2015, 4:01 p.m. OK GNU C++0x TESTS 23 795 15872000 1800
9422625 lazzy C Jan. 13, 2015, 9:57 a.m. OK GNU C++0x TESTS 23 795 16076800 1800
10237722 dhenp C March 11, 2015, 1:51 p.m. OK GNU C++0x TESTS 23 795 16179200 1800
10276274 joseph_sobhy C March 14, 2015, 5:42 p.m. OK GNU C++0x TESTS 23 795 16281600 1800
9838562 urusant C Feb. 14, 2015, 5:06 p.m. OK GNU C++0x TESTS 23 795 17100800 1800
9865268 SaMer C Feb. 15, 2015, 11:25 p.m. OK GNU C++0x TESTS 23 795 19865600 1800
9235682 JohStraat C Dec. 23, 2014, 7:25 p.m. OK GNU C++0x TESTS 23 810 16076800 1800
60051654 psaini C Sept. 5, 2019, 12:57 a.m. OK GNU C11 TESTS 23 701 16179200 1800
60342388 MAFIA_21 C Sept. 10, 2019, 11:22 a.m. OK GNU C11 TESTS 23 702 32153600 1800
43673191 inguz C Oct. 2, 2018, 6 a.m. OK GNU C11 TESTS 23 795 16179200 1800
43673989 inguz C Oct. 2, 2018, 6:26 a.m. OK GNU C11 TESTS 23 795 16486400 1800
43673829 inguz C Oct. 2, 2018, 6:21 a.m. OK GNU C11 TESTS 23 810 16179200 1800
43673865 inguz C Oct. 2, 2018, 6:22 a.m. OK GNU C11 TESTS 23 810 16486400 1800
35873866 ______n______ C March 3, 2018, 7:40 a.m. OK GNU C11 TESTS 23 811 33996800 1800
35873203 _____i_____ C March 3, 2018, 7:27 a.m. OK GNU C11 TESTS 23 811 33996800 1800
35873257 _____k_____ C March 3, 2018, 7:28 a.m. OK GNU C11 TESTS 23 811 33996800 1800
35873973 ______u______ C March 3, 2018, 7:40 a.m. OK GNU C11 TESTS 23 811 33996800 1800
40988042 ReaLNero1 C July 30, 2018, 9:42 p.m. OK GNU C++11 TESTS 23 31 17203200 1800
37279726 vjudge5 C April 13, 2018, 9:30 a.m. OK GNU C++11 TESTS 23 31 20992000 1800
37279722 huas_teble C April 13, 2018, 9:29 a.m. OK GNU C++11 TESTS 23 31 20992000 1800
37279818 vjudge4 C April 13, 2018, 9:35 a.m. OK GNU C++11 TESTS 23 31 20992000 1800
39077485 searcher7 C June 9, 2018, 7:41 p.m. OK GNU C++11 TESTS 23 93 32153600 1800
49232747 vjudge4 C Jan. 31, 2019, 6:20 a.m. OK GNU C++11 TESTS 23 186 16281600 1800
37280220 huas_teble C April 13, 2018, 9:59 a.m. OK GNU C++11 TESTS 23 202 19865600 1800
37279306 vjudge1 C April 13, 2018, 9:05 a.m. OK GNU C++11 TESTS 23 202 20992000 1800
37279332 vjudge5 C April 13, 2018, 9:07 a.m. OK GNU C++11 TESTS 23 202 20992000 1800
52632233 racoon C April 12, 2019, 7:48 a.m. OK GNU C++11 TESTS 23 202 32358400 1800
24802895 Bogdanisar C Feb. 19, 2017, 1:24 p.m. OK GNU C++14 TESTS 23 280 34508800 1800
24803035 Bogdanisar C Feb. 19, 2017, 1:32 p.m. OK GNU C++14 TESTS 23 296 18227200 1800
34040181 corba C Jan. 9, 2018, 4:27 a.m. OK GNU C++14 TESTS 23 296 19046400 1800
43467890 _4C3_ C Sept. 26, 2018, 7:46 p.m. OK GNU C++14 TESTS 23 342 32358400 1800
22852370 Vicennial C Dec. 10, 2016, 9:50 a.m. OK GNU C++14 TESTS 23 779 16179200 1800
20463231 amiro C Sept. 8, 2016, 5:21 p.m. OK GNU C++14 TESTS 23 780 16281600 1800
60171300 dp_n_k C Sept. 6, 2019, 12:59 p.m. OK GNU C++14 TESTS 23 810 17203200 1800
67684218 daggerag10 C Dec. 27, 2019, 8:05 a.m. OK GNU C++14 TESTS 23 826 17408000 1800
27953774 goyalbanna C June 21, 2017, 10:44 p.m. OK GNU C++14 TESTS 23 826 18124800 1800
31566300 hamtory C Oct. 21, 2017, 10:36 a.m. OK GNU C++14 TESTS 23 826 19148800 1800
44330619 madhusudangm C Oct. 14, 2018, 6:12 p.m. OK GNU C++17 TESTS 23 31 17408000 1800
44330672 madhusudangm C Oct. 14, 2018, 6:14 p.m. OK GNU C++17 TESTS 23 77 33587200 1800
40499071 vjudge2 C July 18, 2018, 4:44 a.m. OK GNU C++17 TESTS 23 280 32460800 1800
40499014 vjudge5 C July 18, 2018, 4:41 a.m. OK GNU C++17 TESTS 23 280 32460800 1800
40499099 teble C July 18, 2018, 4:45 a.m. OK GNU C++17 TESTS 23 280 32460800 1800
40499106 teble C July 18, 2018, 4:46 a.m. OK GNU C++17 TESTS 23 280 32460800 1800
40499000 vjudge1 C July 18, 2018, 4:40 a.m. OK GNU C++17 TESTS 23 296 32460800 1800
45426565 PavelChadnov C Nov. 7, 2018, 9:32 p.m. OK GNU C++17 TESTS 23 296 33484800 1800
40502134 teble C July 18, 2018, 6:46 a.m. OK GNU C++17 TESTS 23 311 32460800 1800
44330488 madhusudangm C Oct. 14, 2018, 6:08 p.m. OK GNU C++17 TESTS 23 545 32460800 1800
15035491 OutSide C Dec. 26, 2015, 5:41 p.m. OK Go TESTS 23 451 16998400 1800
11381608 OutSide C June 1, 2015, 5:05 p.m. OK Go TESTS 23 483 16896000 1800
11379931 OutSide C June 1, 2015, 2:20 p.m. OK Go TESTS 23 1122 16896000 1800
11381429 OutSide C June 1, 2015, 4:43 p.m. OK Go TESTS 23 1201 16998400 1800
11381489 OutSide C June 1, 2015, 4:51 p.m. OK Go TESTS 23 1294 16896000 1800
11381482 OutSide C June 1, 2015, 4:50 p.m. OK Go TESTS 23 1294 16998400 1800
11379880 OutSide C June 1, 2015, 2:16 p.m. OK Go TESTS 23 1310 16896000 1800
11379910 OutSide C June 1, 2015, 2:18 p.m. OK Go TESTS 23 1340 16896000 1800
11379842 OutSide C June 1, 2015, 2:14 p.m. OK Go TESTS 23 1341 16896000 1800
11379836 OutSide C June 1, 2015, 2:13 p.m. OK Go TESTS 23 1356 16896000 1800
66441403 minhly C Dec. 7, 2019, 8:03 a.m. OK Java 11 TESTS 23 1045 18636800 1800
67500219 CodAR C Dec. 24, 2019, 3:56 a.m. OK Java 11 TESTS 23 1637 161280000 1800
9301089 xiaowuc1 C Dec. 29, 2014, 8:32 p.m. OK Java 6 TESTS 23 1013 14233600 1800
11986901 Hartha C July 9, 2015, 2:24 p.m. OK Java 7 TESTS 23 701 14336000 1800
8891584 megaspazz C Nov. 29, 2014, 2:49 p.m. OK Java 7 TESTS 23 982 14540800 1800
9070571 sweiss C Dec. 10, 2014, 10:43 a.m. OK Java 7 TESTS 23 1013 14233600 1800
10305490 gpita C March 16, 2015, 9:37 p.m. OK Java 7 TESTS 23 1029 53964800 1800
9287320 7IDO C Dec. 27, 2014, 9:21 p.m. OK Java 7 TESTS 23 1045 14131200 1800
10176606 monsterspy C March 6, 2015, 12:28 p.m. OK Java 7 TESTS 23 1045 52940800 1800
10054665 kimox2 C Feb. 27, 2015, 5:05 p.m. OK Java 7 TESTS 23 1060 14438400 1800
10305511 Zyflair C March 16, 2015, 9:40 p.m. OK Java 7 TESTS 23 1060 53043200 1800
15718943 suigingin C Jan. 31, 2016, 7:33 p.m. OK Java 7 TESTS 23 1091 14233600 1800
15284956 MedoN11 C Jan. 11, 2016, 12:45 a.m. OK Java 7 TESTS 23 1092 95846400 1800
62502971 johnny16 C Oct. 13, 2019, 11:20 a.m. OK Java 8 TESTS 23 249 16896000 1800
45981635 mantis_0604 C Nov. 20, 2018, 12:37 a.m. OK Java 8 TESTS 23 311 38809600 1800
31600633 ViciousCoder C Oct. 22, 2017, 10:34 a.m. OK Java 8 TESTS 23 311 39526400 1800
55214359 saurabhs1206 C June 6, 2019, 4:01 p.m. OK Java 8 TESTS 23 342 75776000 1800
51337077 Ikari_stream C March 15, 2019, 2:39 p.m. OK Java 8 TESTS 23 373 37990400 1800
68066933 Firepaw C Jan. 2, 2020, 8:20 a.m. OK Java 8 TESTS 23 374 16896000 1800
60581319 Black_Arrow502 C Sept. 14, 2019, 6:37 p.m. OK Java 8 TESTS 23 389 75980800 1800
43167479 prabhat236218 C Sept. 21, 2018, 6:04 a.m. OK Java 8 TESTS 23 389 84275200 1800
30802379 parth_15 C Sept. 28, 2017, 11:17 a.m. OK Java 8 TESTS 23 421 38502400 1800
39749851 prathmesh_01 C June 28, 2018, 5:35 p.m. OK Java 8 TESTS 23 436 16793600 1800
23265304 JoeBlow C Dec. 24, 2016, 6:44 a.m. OK Kotlin TESTS 23 1106 40038400 1800
23275464 JoeBlow C Dec. 24, 2016, 4:19 p.m. OK Kotlin TESTS 23 1278 39526400 1800
51585898 nemars C March 20, 2019, 4:21 p.m. OK Mono C# TESTS 23 1543 36659200 1800
9618165 Rustam_3 C Jan. 29, 2015, 5:32 p.m. OK MS C# TESTS 23 1512 79155200 1800
23227393 pomjuice C Dec. 22, 2016, 2:44 p.m. OK MS C# TESTS 23 1794 45056000 1800
49234200 vjudge2 C Jan. 31, 2019, 7:07 a.m. OK MS C++ TESTS 23 638 16179200 1800
49235578 vjudge2 C Jan. 31, 2019, 7:50 a.m. OK MS C++ TESTS 23 654 48435200 1800
12894835 SmileDog C Sept. 8, 2015, 9:24 a.m. OK MS C++ TESTS 23 748 33689600 1800
12156901 vjudge5 C July 22, 2015, 2:04 a.m. OK MS C++ TESTS 23 748 48435200 1800
12706201 vjudge5 C Aug. 26, 2015, 10:19 a.m. OK MS C++ TESTS 23 763 16179200 1800
15571840 Q_Qhy C Jan. 25, 2016, 11:14 a.m. OK MS C++ TESTS 23 795 35430400 1800
40848960 vjudge1 C July 27, 2018, 1:34 p.m. OK MS C++ TESTS 23 795 48435200 1800
41462513 vjudge4 C Aug. 11, 2018, 9:12 a.m. OK MS C++ TESTS 23 811 16179200 1800
9510480 Apt C Jan. 23, 2015, 9:45 a.m. OK MS C++ TESTS 23 826 32358400 1800
12478633 BRAD_BIT C Aug. 12, 2015, 11:33 a.m. OK MS C++ TESTS 23 826 128819200 1800
53808079 Timonnable C May 6, 2019, 3:34 a.m. OK MS C++ 2017 TESTS 23 2901 32256000 1800
50552827 YESMAths C Feb. 27, 2019, 5:58 a.m. OK PyPy 2 TESTS 23 1263 34201600 1800
63229009 amigunova C Oct. 23, 2019, 10:18 a.m. OK PyPy 2 TESTS 23 1294 26009600 1800
63229162 amigunova C Oct. 23, 2019, 10:21 a.m. OK PyPy 2 TESTS 23 1372 26009600 1800
50552778 YESMAths C Feb. 27, 2019, 5:55 a.m. OK PyPy 2 TESTS 23 1372 34201600 1800
67072164 ashok123 C Dec. 17, 2019, 1:09 p.m. OK PyPy 2 TESTS 23 1403 41881600 1800
63740195 chaudhary_19 C Oct. 29, 2019, 4:40 p.m. OK PyPy 2 TESTS 23 1419 41881600 1800
61893581 vjudge2 C Oct. 5, 2019, 6:34 a.m. OK PyPy 2 TESTS 23 1434 27136000 1800
61926306 Wizmann C Oct. 5, 2019, 2:44 p.m. OK PyPy 2 TESTS 23 1450 27136000 1800
66336226 pac-man21 C Dec. 5, 2019, 3:15 p.m. OK PyPy 2 TESTS 23 1606 39219200 1800
33897220 pavankatta C Jan. 4, 2018, 6:40 a.m. OK PyPy 2 TESTS 23 1684 67584000 1800

remove filters

Back to search problems