Codeforces Round 511 (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
1034 Codeforces Round 511 (Div. 1) FINISHED False 7200 199985124 Sept. 21, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2168 ) B Little C Loves 3 II PROGRAMMING brute force constructive algorithms flows graph matchings 2100

B'Little C loves number xc2 xab3 xc2 xbb very much. He loves all things about it. Now he is playing a game on a chessboard of size n x m . The cell in the x -th row and in the y -th column is called (x,y) . Initially, The chessboard is empty. Each time, he places two chessmen on two different empty cells, the Manhattan distance between which is exactly 3 . The Manhattan distance between two cells (x_i,y_i) and (x_j,y_j) is defined as |x_i-x_j|+|y_i-y_j| . He want to place as many chessmen as possible on the chessboard. Please help him find the maximum number of chessmen he can place. A single line contains two integers n and m ( 1 <= q n,m <= q 10^9 ) -- the number of rows and the number of columns of the chessboard. Print one integer -- the maximum number of chessmen Little C can place. In the first example, the Manhattan distance between any two cells is smaller than 3 , so the answer is 0 . In the second example, a possible solution is (1,1)(3,2) , (1,2)(3,3) , (2,1)(1,3) , (3,1)(2,3) . '...

Tutorials

Codeforces Round #511 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
49532569 PhuongPeu B Feb. 6, 2019, 2:27 p.m. OK FPC TESTS 52 31 102400 2100
46637963 CrazyTeaMajor B Dec. 5, 2018, 7:56 a.m. OK GNU C++11 TESTS 52 30 0 2100
45082589 luogu_bot4 B Oct. 30, 2018, 4:37 a.m. OK GNU C++11 TESTS 52 30 0 2100
43206446 IHHI B Sept. 21, 2018, 3:48 p.m. OK GNU C++11 TESTS 52 30 0 2100
43196639 GoForIt B Sept. 21, 2018, 3:06 p.m. OK GNU C++11 TESTS 52 30 0 2100
43352923 hwa1996 B Sept. 24, 2018, 3:57 a.m. OK GNU C++11 TESTS 52 30 102400 2100
67432355 vjudge4 B Dec. 22, 2019, 3:41 p.m. OK GNU C++11 TESTS 52 31 0 2100
69446823 geneanlyz B Jan. 24, 2020, 3:39 a.m. OK GNU C++11 TESTS 52 31 0 2100
67510692 F-Mu B Dec. 24, 2019, 9:02 a.m. OK GNU C++11 TESTS 52 31 0 2100
67432396 Pyqe B Dec. 22, 2019, 3:41 p.m. OK GNU C++11 TESTS 52 31 0 2100
67430585 vjudge2 B Dec. 22, 2019, 3:03 p.m. OK GNU C++11 TESTS 52 31 0 2100
64731170 kunj017 B Nov. 12, 2019, 8:29 a.m. OK GNU C++14 TESTS 52 15 0 2100
43284131 polequoll B Sept. 23, 2018, 7:19 a.m. OK GNU C++14 TESTS 52 15 0 2100
45769567 w446506278 B Nov. 15, 2018, 1:48 p.m. OK GNU C++14 TESTS 52 30 0 2100
52639820 Tosic B April 12, 2019, 11:59 a.m. OK GNU C++14 TESTS 52 30 0 2100
51324940 mayaohua2003 B March 15, 2019, 9:14 a.m. OK GNU C++14 TESTS 52 30 0 2100
49042317 sfialok98 B Jan. 27, 2019, 7:03 a.m. OK GNU C++14 TESTS 52 30 0 2100
46782987 __ShaW B Dec. 9, 2018, 4:17 a.m. OK GNU C++14 TESTS 52 30 0 2100
46669966 Vijaykrishna B Dec. 6, 2018, 5:55 a.m. OK GNU C++14 TESTS 52 30 0 2100
46101566 kfqg B Nov. 23, 2018, 6:16 a.m. OK GNU C++14 TESTS 52 30 0 2100
45148614 RedNextCentury B Oct. 31, 2018, 6:21 p.m. OK GNU C++14 TESTS 52 30 0 2100
43696048 lovro B Oct. 2, 2018, 4:30 p.m. OK GNU C++17 TESTS 52 15 0 2100
62176346 Jefe B Oct. 9, 2019, 4:17 a.m. OK GNU C++17 TESTS 52 15 0 2100
58693418 pengge66 B Aug. 13, 2019, 4:45 a.m. OK GNU C++17 TESTS 52 15 0 2100
43225657 roman.kolganov B Sept. 21, 2018, 8:51 p.m. OK GNU C++17 TESTS 52 15 0 2100
43228142 VladaMG98 B Sept. 21, 2018, 10:54 p.m. OK GNU C++17 TESTS 52 30 0 2100
56964835 Arpa B July 13, 2019, 7:59 a.m. OK GNU C++17 TESTS 52 30 0 2100
53813630 wwwxxxddd B May 6, 2019, 8:45 a.m. OK GNU C++17 TESTS 52 30 0 2100
43276104 hell_hacker B Sept. 22, 2018, 11:02 p.m. OK GNU C++17 TESTS 52 30 0 2100
43260204 mibig B Sept. 22, 2018, 2:35 p.m. OK GNU C++17 TESTS 52 30 0 2100
43206437 natsugiri B Sept. 21, 2018, 3:48 p.m. OK GNU C++17 TESTS 52 30 0 2100
49194261 wadissimo B Jan. 30, 2019, 9:38 a.m. OK Java 8 TESTS 52 109 0 2100
67848886 Harpae B Dec. 29, 2019, 12:39 a.m. OK Java 8 TESTS 52 109 0 2100
63095053 Garrus B Oct. 21, 2019, 8:08 p.m. OK Java 8 TESTS 52 109 0 2100
57156694 Xylenox B July 16, 2019, 5 p.m. OK Java 8 TESTS 52 109 0 2100
44166187 xodiac B Oct. 12, 2018, 1:45 a.m. OK Java 8 TESTS 52 109 0 2100
63658481 yaoct B Oct. 28, 2019, 1:24 p.m. OK Java 8 TESTS 52 124 0 2100
43206457 Egor B Sept. 21, 2018, 3:48 p.m. OK Java 8 TESTS 52 140 0 2100
43204497 amnesiac_dusk B Sept. 21, 2018, 3:39 p.m. OK Java 8 TESTS 52 155 0 2100
46103112 PatrickJohn B Nov. 23, 2018, 7:21 a.m. OK Java 8 TESTS 52 171 0 2100
43215027 indy256 B Sept. 21, 2018, 4:28 p.m. OK Java 8 TESTS 52 233 0 2100
43223418 leign B Sept. 21, 2018, 7:46 p.m. OK Mono C# TESTS 52 62 0 2100
43823660 sister_what_hate_most B Oct. 5, 2018, 10:41 a.m. OK MS C++ TESTS 52 31 0 2100
59127309 1970966462 B Aug. 20, 2019, 9:37 a.m. OK MS C++ TESTS 52 31 0 2100
58906016 1970966462 B Aug. 16, 2019, 11:10 a.m. OK MS C++ TESTS 52 31 0 2100
44244949 vjudge5 B Oct. 13, 2018, 8:18 a.m. OK MS C++ TESTS 52 31 0 2100
43201956 orz B Sept. 21, 2018, 3:28 p.m. OK MS C++ TESTS 52 31 204800 2100
43221882 mandinga B Sept. 21, 2018, 7:08 p.m. OK MS C++ TESTS 52 31 307200 2100
43214159 math957963 B Sept. 21, 2018, 4:24 p.m. OK MS C++ TESTS 52 31 307200 2100
44021629 LoneFox B Oct. 9, 2018, 4:47 a.m. OK MS C++ TESTS 52 31 307200 2100
43208835 wa1tz719 B Sept. 21, 2018, 3:59 p.m. OK MS C++ TESTS 52 31 307200 2100
56251995 BessieTheCow B June 29, 2019, 4 a.m. OK MS C++ 2017 TESTS 52 30 0 2100
62082609 j2v B Oct. 7, 2019, 9:57 p.m. OK MS C++ 2017 TESTS 52 46 0 2100
48841195 YESMAths B Jan. 23, 2019, 4:08 p.m. OK PyPy 2 TESTS 52 124 0 2100
43208294 pajenegod B Sept. 21, 2018, 3:57 p.m. OK PyPy 2 TESTS 52 187 0 2100
43220462 rareone0602 B Sept. 21, 2018, 6:42 p.m. OK PyPy 3 TESTS 52 187 0 2100
43229329 WNG B Sept. 22, 2018, 12:14 a.m. OK Python 2 TESTS 52 186 0 2100
43219231 wangkan2001 B Sept. 21, 2018, 6:28 p.m. OK Python 2 TESTS 52 187 0 2100
43197449 nwi B Sept. 21, 2018, 3:09 p.m. OK Python 2 TESTS 52 202 0 2100
43203357 Neil B Sept. 21, 2018, 3:34 p.m. OK Python 2 TESTS 52 218 0 2100
62327619 LintuStorm B Oct. 10, 2019, 7:10 p.m. OK Python 3 TESTS 52 109 0 2100
61431394 Kadtsin_vs B Sept. 28, 2019, 2:51 p.m. OK Python 3 TESTS 52 109 0 2100
47010686 SirULG B Dec. 14, 2018, 4:18 p.m. OK Python 3 TESTS 52 109 0 2100
46144800 luogu_bot4 B Nov. 24, 2018, 7:29 a.m. OK Python 3 TESTS 52 109 0 2100
43233598 kr_abhinav B Sept. 22, 2018, 7:01 a.m. OK Python 3 TESTS 52 109 0 2100
44408565 ivytam B Oct. 16, 2018, 3:50 p.m. OK Python 3 TESTS 52 124 0 2100
43651863 Ryan_MuQ B Oct. 1, 2018, 4:06 p.m. OK Python 3 TESTS 52 124 0 2100
43239175 kr_abhinav B Sept. 22, 2018, 9:15 a.m. OK Python 3 TESTS 52 124 0 2100
43234351 kr_abhinav B Sept. 22, 2018, 7:29 a.m. OK Python 3 TESTS 52 124 0 2100
43226968 vntshh B Sept. 21, 2018, 9:44 p.m. OK Python 3 TESTS 52 124 0 2100
44232527 Grevozin B Oct. 13, 2018, 1:43 a.m. OK Rust TESTS 52 31 0 2100

remove filters

Back to search problems