Codeforces Round 322 (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
581 Codeforces Round 322 (Div. 2) FINISHED False 7200 288392399 Sept. 28, 2015, 9 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3767 ) D Three Logos PROGRAMMING bitmasks brute force constructive algorithms geometry implementation math 1700

B'Three companies decided to order a billboard with pictures of their logos. A billboard is a big square board. A logo of each company is a rectangle of a non-zero area. Advertisers will put up the ad only if it is possible to place all three logos on the billboard so that they do not overlap and the billboard has no empty space left. When you put a logo on the billboard, you should rotate it so that the sides were parallel to the sides of the billboard. Your task is to determine if it is possible to put the logos of all the three companies on some square billboard without breaking any of the described rules. The first line of the input contains six positive integers x1, xe2 x80 x89y1, xe2 x80 x89x2, xe2 x80 x89y2, xe2 x80 x89x3, xe2 x80 x89y3 (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x1, xe2 x80 x89y1, xe2 x80 x89x2, xe2 x80 x89y2, xe2 x80 x89x3, xe2 x80 x89y3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100), where xi and yi determine the length and width of the logo of the i-th company respectively. If it is impossible to place all the three logos on a square shield, print a single integer "-1" (without the quotes). If it is possible, print in the first line the length of a side of square n, where you can place all the three logos. Each of the next n lines should contain n uppercase English letters "A", "B" or "C". The sets of the same letters should form solid rectangles, provided that: Note that the logos of the companies can be rotated for printing on the billboard. The billboard mustn 't have any empty space. If a square billboard can be filled with the logos in multiple ways, you are allowed to print any of them. See the samples to better understand the statement.'...

Tutorials

Codeforces Round #322 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
21969135 Daryusz D Nov. 1, 2016, 1:45 p.m. OK FPC TESTS 63 31 0 1700
13864405 KingArthur D Oct. 26, 2015, 12:03 a.m. OK FPC TESTS 63 31 0 1700
13492514 jiangyx D Oct. 8, 2015, 11:51 a.m. OK FPC TESTS 63 46 0 1700
13797892 Mystery_Ann_ D Oct. 22, 2015, 6:24 p.m. OK FPC TESTS 63 46 0 1700
13885954 shets D Oct. 27, 2015, 6:44 a.m. OK GNU C TESTS 63 15 0 1700
13418074 CK01 D Oct. 5, 2015, 2:49 p.m. OK GNU C TESTS 63 30 0 1700
22727141 Champagne D Dec. 6, 2016, 9:47 a.m. OK GNU C TESTS 63 30 0 1700
27467463 vjudge2 D May 31, 2017, 1:12 p.m. OK GNU C++ TESTS 63 15 0 1700
27358985 aniz D May 26, 2017, 3:32 p.m. OK GNU C++ TESTS 63 15 0 1700
27356514 frzhi D May 26, 2017, 1:33 p.m. OK GNU C++ TESTS 63 15 0 1700
27355059 crabxyj D May 26, 2017, 11:52 a.m. OK GNU C++ TESTS 63 15 0 1700
27354961 crabxyj D May 26, 2017, 11:46 a.m. OK GNU C++ TESTS 63 15 0 1700
23027074 vjudge2 D Dec. 16, 2016, 10:45 a.m. OK GNU C++ TESTS 63 15 0 1700
32056335 vjudge4 D Nov. 4, 2017, 2:43 p.m. OK GNU C++ TESTS 63 15 0 1700
22727947 vjudge5 D Dec. 6, 2016, 10:37 a.m. OK GNU C++ TESTS 63 15 0 1700
30870258 kumaramit228 D Sept. 30, 2017, 3:19 p.m. OK GNU C++ TESTS 63 15 0 1700
30615792 QuanQqqqq D Sept. 22, 2017, 1:28 p.m. OK GNU C++ TESTS 63 15 0 1700
13618863 zoomswk D Oct. 15, 2015, 10:54 a.m. OK GNU C11 TESTS 63 46 0 1700
57162317 rainboy D July 16, 2019, 7:50 p.m. OK GNU C11 TESTS 63 61 0 1700
22942820 Jeffrey D Dec. 14, 2016, 6:36 a.m. OK GNU C++11 TESTS 63 15 0 1700
22515643 nevgen D Nov. 26, 2016, 7:05 p.m. OK GNU C++11 TESTS 63 15 0 1700
22514735 Ali-Eisa D Nov. 26, 2016, 6:03 p.m. OK GNU C++11 TESTS 63 15 0 1700
22007913 Akylbeek D Nov. 3, 2016, 7:21 a.m. OK GNU C++11 TESTS 63 15 0 1700
27357168 Lily_Rhythm D May 26, 2017, 2:04 p.m. OK GNU C++11 TESTS 63 15 0 1700
20929155 Wael.Al.Jamal D Sept. 26, 2016, 3:54 p.m. OK GNU C++11 TESTS 63 15 0 1700
20869505 treggit D Sept. 23, 2016, 5:13 p.m. OK GNU C++11 TESTS 63 15 0 1700
20830510 vikhs_96 D Sept. 23, 2016, 5:15 a.m. OK GNU C++11 TESTS 63 15 0 1700
21774329 Mektpoy D Oct. 25, 2016, 3:18 p.m. OK GNU C++11 TESTS 63 15 0 1700
26914884 JNS D May 7, 2017, 3:01 a.m. OK GNU C++11 TESTS 63 15 0 1700
27237569 xarshila_ D May 20, 2017, 4:33 p.m. OK GNU C++14 TESTS 63 15 0 1700
31016495 vjudge1 D Oct. 5, 2017, 7:42 a.m. OK GNU C++14 TESTS 63 15 0 1700
30989538 Momentum D Oct. 4, 2017, 10:34 a.m. OK GNU C++14 TESTS 63 15 0 1700
30905760 zoyan D Oct. 1, 2017, 10:29 a.m. OK GNU C++14 TESTS 63 15 0 1700
30130143 syt1998 D Sept. 6, 2017, 11:38 a.m. OK GNU C++14 TESTS 63 15 0 1700
27896215 froghramar D June 19, 2017, 5:26 a.m. OK GNU C++14 TESTS 63 15 0 1700
27468689 HandsomeHow D May 31, 2017, 2:14 p.m. OK GNU C++14 TESTS 63 15 0 1700
27466614 vjudge3 D May 31, 2017, 12:31 p.m. OK GNU C++14 TESTS 63 15 0 1700
27417350 Cristiano_Ronaldo D May 28, 2017, 5:26 p.m. OK GNU C++14 TESTS 63 15 0 1700
26983965 KieranHorgan D May 9, 2017, 7:41 p.m. OK GNU C++14 TESTS 63 15 0 1700
38605139 hunter_17 D May 25, 2018, 9:36 a.m. OK GNU C++17 TESTS 63 15 204800 1700
38939450 HeshamAli D June 4, 2018, 9:03 a.m. OK GNU C++17 TESTS 63 15 4403200 1700
52509999 webeseit D April 8, 2019, 9:39 p.m. OK GNU C++17 TESTS 63 30 0 1700
56229507 eduardonunes2525 D June 28, 2019, 1:46 p.m. OK GNU C++17 TESTS 63 30 0 1700
55187389 chongryong D June 6, 2019, 4:25 a.m. OK GNU C++17 TESTS 63 30 0 1700
48579799 logic123 D Jan. 19, 2019, 4 p.m. OK GNU C++17 TESTS 63 30 307200 1700
68713837 Illuminati. D Jan. 13, 2020, 1:49 p.m. OK GNU C++17 TESTS 63 31 0 1700
66627973 ruo D Dec. 11, 2019, 9:56 a.m. OK GNU C++17 TESTS 63 31 0 1700
65734383 kresna D Nov. 26, 2019, 7 a.m. OK GNU C++17 TESTS 63 31 0 1700
69947717 Bear_2 D Feb. 1, 2020, 8:04 a.m. OK GNU C++17 TESTS 63 31 0 1700
13618306 zyguan D Oct. 15, 2015, 10:17 a.m. OK Go TESTS 63 31 0 1700
13811077 xffox D Oct. 23, 2015, 3:13 p.m. OK Haskell TESTS 63 31 102400 1700
13430796 yoshibo- D Oct. 6, 2015, 11:28 a.m. OK Haskell TESTS 63 31 102400 1700
21573793 pavel.rosputko D Oct. 18, 2016, 5:26 p.m. OK Haskell TESTS 63 31 53248000 1700
13415183 Valixon D Oct. 5, 2015, 12:03 p.m. OK Java 7 TESTS 63 77 0 1700
13801102 VerticesEdge D Oct. 23, 2015, 1:49 a.m. OK Java 7 TESTS 63 93 0 1700
16680052 OrionWinter D March 12, 2016, 7:11 p.m. OK Java 7 TESTS 63 109 0 1700
15444580 mkirsche D Jan. 19, 2016, 10:09 p.m. OK Java 7 TESTS 63 124 0 1700
13461194 ppetrov D Oct. 6, 2015, 8 p.m. OK Java 7 TESTS 63 124 102400 1700
15455973 Nirmit D Jan. 20, 2016, 4:04 p.m. OK Java 7 TESTS 63 155 0 1700
14668817 vrobyka D Dec. 5, 2015, 8:08 p.m. OK Java 7 TESTS 63 171 0 1700
27445730 vor4alka D May 30, 2017, 10:13 a.m. OK Java 8 TESTS 63 109 0 1700
15203460 pili D Jan. 6, 2016, 11:50 a.m. OK Java 8 TESTS 63 109 0 1700
14435195 Ruins D Nov. 24, 2015, 5:05 a.m. OK Java 8 TESTS 63 109 0 1700
13719455 mdldml D Oct. 18, 2015, 8:53 p.m. OK Java 8 TESTS 63 109 0 1700
57921099 JCKG D July 29, 2019, 4:52 a.m. OK Java 8 TESTS 63 124 0 1700
57920888 JCKG D July 29, 2019, 4:45 a.m. OK Java 8 TESTS 63 124 0 1700
56714064 mennafadali D July 8, 2019, 1:52 p.m. OK Java 8 TESTS 63 124 0 1700
51425633 bhautik_77 D March 17, 2019, 7:02 p.m. OK Java 8 TESTS 63 124 0 1700
46689892 kocko D Dec. 6, 2018, 3:53 p.m. OK Java 8 TESTS 63 124 0 1700
45112794 KulikAlex D Oct. 30, 2018, 7:27 p.m. OK Java 8 TESTS 63 124 0 1700
13539689 lebedkin D Oct. 11, 2015, 2:28 a.m. OK JavaScript TESTS 63 46 0 1700
13534833 freepvps D Oct. 10, 2015, 7:10 p.m. OK MS C# TESTS 63 62 2457600 1700
13416681 camypaper D Oct. 5, 2015, 1:27 p.m. OK MS C# TESTS 63 62 2560000 1700
18705153 wlgur1014 D June 24, 2016, 5:09 p.m. OK MS C++ TESTS 63 15 0 1700
15574570 vjudge3 D Jan. 25, 2016, 1:57 p.m. OK MS C++ TESTS 63 15 0 1700
15423363 pseudo D Jan. 18, 2016, 7:50 a.m. OK MS C++ TESTS 63 15 0 1700
15155348 xieofxie D Jan. 2, 2016, 6:06 a.m. OK MS C++ TESTS 63 15 0 1700
14400553 574418097 D Nov. 21, 2015, 3:13 p.m. OK MS C++ TESTS 63 15 0 1700
14183310 Martinue D Nov. 10, 2015, 11:25 a.m. OK MS C++ TESTS 63 15 0 1700
14043820 MingFei D Nov. 3, 2015, 3:18 p.m. OK MS C++ TESTS 63 15 0 1700
13856328 Polichka D Oct. 25, 2015, 4:36 p.m. OK MS C++ TESTS 63 15 0 1700
13718939 Bullbas D Oct. 18, 2015, 7:58 p.m. OK MS C++ TESTS 63 15 0 1700
14398772 574418097 D Nov. 21, 2015, 1:19 p.m. OK MS C++ TESTS 63 15 102400 1700
57592825 CtrlAlt D July 23, 2019, 12:51 p.m. OK MS C++ 2017 TESTS 63 31 0 1700
53042888 immortal_luo D April 20, 2019, 10:49 a.m. OK MS C++ 2017 TESTS 63 31 0 1700
66569176 Samanter D Dec. 10, 2019, 2:39 a.m. OK MS C++ 2017 TESTS 63 31 307200 1700
25148717 mayakin D March 2, 2017, 1:17 p.m. OK PHP TESTS 63 46 6041600 1700
14077767 m7mdbadawy D Nov. 4, 2015, 8:48 p.m. OK PyPy 2 TESTS 63 62 102400 1700
50770393 cherry_su D March 4, 2019, 4:08 a.m. OK PyPy 2 TESTS 63 155 1638400 1700
50804160 cherry_su D March 5, 2019, 3:38 a.m. OK PyPy 2 TESTS 63 156 2048000 1700
14011503 thequickfox D Nov. 1, 2015, 4:36 p.m. OK PyPy 3 TESTS 63 109 409600 1700
59222786 Leendertz D Aug. 21, 2019, 12:48 p.m. OK PyPy 3 TESTS 63 140 0 1700
13423099 RadiantPie D Oct. 5, 2015, 8:39 p.m. OK PyPy 3 TESTS 63 140 3584000 1700
64156635 rishus23 D Nov. 3, 2019, 1:02 p.m. OK PyPy 3 TESTS 63 155 1843200 1700
13800915 nealzane D Oct. 23, 2015, 1:19 a.m. OK Python 2 TESTS 63 46 0 1700
13545046 Raulesto D Oct. 11, 2015, 11:45 a.m. OK Python 2 TESTS 63 61 0 1700
16758039 stenioelson D March 17, 2016, 5:50 a.m. OK Python 2 TESTS 63 61 307200 1700
17469270 TokuchiToa D April 23, 2016, 11:55 a.m. OK Python 2 TESTS 63 61 4710400 1700
16746332 ericbreno1 D March 16, 2016, 2:02 p.m. OK Python 2 TESTS 63 62 0 1700
16704609 klynger D March 13, 2016, 8:49 p.m. OK Python 2 TESTS 63 62 307200 1700
13805291 gnldkm D Oct. 23, 2015, 8:58 a.m. OK Python 2 TESTS 63 62 307200 1700
14932265 _majid D Dec. 23, 2015, 2:01 a.m. OK Python 2 TESTS 63 77 409600 1700
13472361 roiti46 D Oct. 7, 2015, 11:55 a.m. OK Python 2 TESTS 63 124 5427200 1700
14433698 merolish D Nov. 24, 2015, 12:27 a.m. OK Python 3 TESTS 63 62 204800 1700
13427235 SirNickolas D Oct. 6, 2015, 6:49 a.m. OK Python 3 TESTS 63 62 512000 1700
29248921 platypus179 D Aug. 6, 2017, 9:02 p.m. OK Python 3 TESTS 63 62 4915200 1700
35894585 _____k_____ D March 3, 2018, 4:24 p.m. OK Python 3 TESTS 63 62 6451200 1700
35893857 ______n______ D March 3, 2018, 4:08 p.m. OK Python 3 TESTS 63 62 6451200 1700
35893785 ______u______ D March 3, 2018, 4:07 p.m. OK Python 3 TESTS 63 62 6451200 1700
35888246 _____i_____ D March 3, 2018, 2:18 p.m. OK Python 3 TESTS 63 62 6451200 1700
35884658 ______h______ D March 3, 2018, 1:15 p.m. OK Python 3 TESTS 63 62 6451200 1700
35884322 ______k______ D March 3, 2018, 1:09 p.m. OK Python 3 TESTS 63 62 6451200 1700
35883454 ______i______ D March 3, 2018, 12:56 p.m. OK Python 3 TESTS 63 62 6451200 1700
66975999 prakhar_gupta D Dec. 15, 2019, 2:43 p.m. OK Scala TESTS 63 529 0 1700
63882170 Mocker D Oct. 30, 2019, 9:39 p.m. OK Scala TESTS 63 608 1331200 1700

remove filters

Back to search problems