Codeforces Round 487 (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
989 Codeforces Round 487 (Div. 2) FINISHED False 7200 208455863 June 11, 2018, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3847 ) C A Mist of Florescence PROGRAMMING constructive algorithms graphs 1800

B'"I 've been here once," Mino exclaims with delight, "it 's breathtakingly amazing." "What is it like?" "Look, Kanno, you 've got your paintbrush, and I 've got my words. Have a try, shall we?" There are four kinds of flowers in the wood, Amaranths, Begonias, Centaureas and Dianthuses. The wood can be represented by a rectangular grid of n rows and m columns. In each cell of the grid, there is exactly one type of flowers. According to Mino, the numbers of connected components formed by each kind of flowers are a , b , c and d respectively. Two cells are considered in the same connected component if and only if a path exists between them that moves between cells sharing common edges and passes only through cells containing the same flowers. You are to help Kanno depict such a grid of flowers, with n and m arbitrarily chosen under the constraints given below. It can be shown that at least one solution exists under the constraints of this problem. Note that you can choose arbitrary n and m under the constraints below, they are not given in the input. The first and only line of input contains four space-separated integers a , b , c and d ( 1 <= q a, b, c, d <= q 100 ) -- the required number of connected components of Amaranths, Begonias, Centaureas and Dianthuses, respectively. In the first line, output two space-separated integers n and m ( 1 <= q n, m <= q 50 ) -- the number of rows and the number of columns in the grid respectively. Then output n lines each consisting of m consecutive English letters, representing one row of the grid. Each letter should be among 'A ', 'B ', 'C ' and 'D ', representing Amaranths, Begonias, Centaureas and Dianthuses, respectively. In case there are multiple solutions, print any. You can output each letter in either case (upper or lower). In the first example, each cell of Amaranths, Begonias and Centaureas forms a conne'...

Tutorials

Codeforces Round #487 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
43721909 vanda C Oct. 3, 2018, 10:27 a.m. OK Clang++17 Diagnostics TESTS 30 46 0 1800
39286709 rr_ C June 16, 2018, 11:58 a.m. OK D TESTS 30 15 0 1800
39159603 fluffyowl C June 11, 2018, 2:25 p.m. OK D TESTS 30 31 0 1800
39165807 ruban C June 11, 2018, 3:18 p.m. OK Delphi TESTS 30 31 12288000 1800
39190560 darkus-_- C June 12, 2018, 11:58 a.m. OK FPC TESTS 30 31 0 1800
39165174 ndhuy C June 11, 2018, 3:12 p.m. OK FPC TESTS 30 31 0 1800
39182912 alvinalvord C June 12, 2018, 7:01 a.m. OK GNU C TESTS 30 15 0 1800
39177170 C1ariS C June 12, 2018, 12:31 a.m. OK GNU C TESTS 30 15 25088000 1800
39252469 1574354102 C June 14, 2018, 7:45 p.m. OK GNU C TESTS 30 31 0 1800
39180268 Oblivious__ C June 12, 2018, 4:41 a.m. OK GNU C TESTS 30 31 0 1800
40237420 jx_25 C July 12, 2018, 3:51 p.m. OK GNU C TESTS 30 46 0 1800
39429666 vjudge5 C June 20, 2018, 8:09 a.m. OK GNU C++ TESTS 30 15 0 1800
39399699 caoyuan C June 19, 2018, 5:54 a.m. OK GNU C++ TESTS 30 15 0 1800
39281938 vjudge2 C June 16, 2018, 7:57 a.m. OK GNU C++ TESTS 30 15 0 1800
39237108 TobyCF C June 14, 2018, 9 a.m. OK GNU C++ TESTS 30 15 0 1800
39215888 its_srivy C June 13, 2018, 12:16 p.m. OK GNU C++ TESTS 30 15 0 1800
39211517 nikname1 C June 13, 2018, 9:26 a.m. OK GNU C++ TESTS 30 15 0 1800
39195095 cjy2003 C June 12, 2018, 3:01 p.m. OK GNU C++ TESTS 30 15 0 1800
39277554 fucking_faggot C June 16, 2018, 2:28 a.m. OK GNU C++ TESTS 30 15 0 1800
40365136 vjudge3 C July 15, 2018, 5:16 a.m. OK GNU C++ TESTS 30 15 0 1800
39663371 Contna C June 26, 2018, 2:30 a.m. OK GNU C++ TESTS 30 15 0 1800
39160040 york135 C June 11, 2018, 2:28 p.m. OK GNU C11 TESTS 30 31 0 1800
39191973 psp.643a C June 12, 2018, 12:55 p.m. OK GNU C11 TESTS 30 31 0 1800
43948458 19870504 C Oct. 7, 2018, 2:56 p.m. OK GNU C11 TESTS 30 31 0 1800
39735145 Superm4n C June 28, 2018, 7:11 a.m. OK GNU C++11 TESTS 30 15 0 1800
47711357 chenmingyu C Dec. 30, 2018, 3:54 a.m. OK GNU C++11 TESTS 30 15 0 1800
47519059 vjudge5 C Dec. 26, 2018, 11:54 a.m. OK GNU C++11 TESTS 30 15 0 1800
39667263 verysmart C June 26, 2018, 6:31 a.m. OK GNU C++11 TESTS 30 15 0 1800
39664157 donnyvc C June 26, 2018, 3:22 a.m. OK GNU C++11 TESTS 30 15 0 1800
39508706 lckcode C June 22, 2018, 7:32 a.m. OK GNU C++11 TESTS 30 15 0 1800
39505079 grated C June 22, 2018, 4:05 a.m. OK GNU C++11 TESTS 30 15 0 1800
39464625 Lius C June 21, 2018, 2:15 p.m. OK GNU C++11 TESTS 30 15 0 1800
39438748 cowardlqw C June 20, 2018, 2:37 p.m. OK GNU C++11 TESTS 30 15 0 1800
39436081 flakka C June 20, 2018, 12:42 p.m. OK GNU C++11 TESTS 30 15 0 1800
39525187 Heart_Blue C June 22, 2018, 6:31 p.m. OK GNU C++14 TESTS 30 15 0 1800
39494758 Wolve_rine C June 21, 2018, 4:58 p.m. OK GNU C++14 TESTS 30 15 0 1800
39442803 bot_vig C June 20, 2018, 5:36 p.m. OK GNU C++14 TESTS 30 15 0 1800
48047543 lucifer C Jan. 7, 2019, 5:28 a.m. OK GNU C++14 TESTS 30 15 0 1800
45425240 gouhar C Nov. 7, 2018, 8:12 p.m. OK GNU C++14 TESTS 30 15 0 1800
39674878 scy_666 C June 26, 2018, 12:07 p.m. OK GNU C++14 TESTS 30 15 0 1800
39667633 TheCondor C June 26, 2018, 6:48 a.m. OK GNU C++14 TESTS 30 15 0 1800
66016508 Helman C Nov. 30, 2019, 5:40 a.m. OK GNU C++14 TESTS 30 15 0 1800
48506902 sarthak1220 C Jan. 17, 2019, 6:07 p.m. OK GNU C++14 TESTS 30 15 0 1800
59661766 demon12321 C Aug. 29, 2019, 12:46 p.m. OK GNU C++14 TESTS 30 15 0 1800
57480464 lzx1999 C July 22, 2019, 2:04 a.m. OK GNU C++17 TESTS 30 15 0 1800
69522058 Racer5x C Jan. 25, 2020, 1:43 p.m. OK GNU C++17 TESTS 30 15 0 1800
68142728 NaimSS C Jan. 4, 2020, 12:49 a.m. OK GNU C++17 TESTS 30 15 0 1800
65554616 sammithkanur C Nov. 22, 2019, 8:46 p.m. OK GNU C++17 TESTS 30 15 0 1800
58202942 thematrix233 C Aug. 3, 2019, 5:31 a.m. OK GNU C++17 TESTS 30 15 0 1800
57985434 vjudge4 C July 30, 2019, 11:14 a.m. OK GNU C++17 TESTS 30 15 0 1800
57599331 Falcon__ C July 23, 2019, 3:08 p.m. OK GNU C++17 TESTS 30 15 0 1800
56510773 MINHTRANG C July 4, 2019, 10:15 a.m. OK GNU C++17 TESTS 30 15 0 1800
54403594 Mastre C May 20, 2019, 3:52 a.m. OK GNU C++17 TESTS 30 15 0 1800
54068897 arbitrary_A C May 13, 2019, 2:58 p.m. OK GNU C++17 TESTS 30 15 0 1800
39225325 harshit_1808 C June 13, 2018, 7:33 p.m. OK GNU C++17 Diagnostics TESTS 30 998 0 1800
46524658 StructDeStruct C Dec. 2, 2018, 8:16 p.m. OK Go TESTS 30 46 0 1800
39206952 codeonwort C June 13, 2018, 5:40 a.m. OK Haskell TESTS 30 15 0 1800
56019066 SpargelTarzan C June 25, 2019, 1:07 a.m. OK Java 8 TESTS 30 109 0 1800
50023482 YousseF_Diaa C Feb. 16, 2019, 6:02 p.m. OK Java 8 TESTS 30 109 0 1800
49182426 AQT C Jan. 30, 2019, 3 a.m. OK Java 8 TESTS 30 109 0 1800
39173666 frenzykryger C June 11, 2018, 7:30 p.m. OK Java 8 TESTS 30 109 0 1800
46209178 shreyas_21 C Nov. 25, 2018, 4:19 p.m. OK Java 8 TESTS 30 124 0 1800
62960276 ijxjdjd C Oct. 19, 2019, 11:38 p.m. OK Java 8 TESTS 30 124 0 1800
46823997 Jay_13 C Dec. 9, 2018, 5:06 p.m. OK Java 8 TESTS 30 124 0 1800
46041115 wadissimo C Nov. 21, 2018, 7:53 p.m. OK Java 8 TESTS 30 124 0 1800
40412865 Ahmed.Shawky C July 16, 2018, 1:17 p.m. OK Java 8 TESTS 30 124 0 1800
39774309 cgondek C June 29, 2018, 4:35 p.m. OK Java 8 TESTS 30 124 0 1800
39169386 Lancern C June 11, 2018, 4:51 p.m. OK Kotlin TESTS 30 140 0 1800
39156073 elizarov C June 11, 2018, 2:05 p.m. OK Kotlin TESTS 30 171 1126400 1800
39165673 wu_qing C June 11, 2018, 3:17 p.m. OK Kotlin TESTS 30 218 1126400 1800
39158805 kuuso C June 11, 2018, 2:20 p.m. OK Mono C# TESTS 30 31 0 1800
39161200 GustavK C June 11, 2018, 2:37 p.m. OK Mono C# TESTS 30 46 0 1800
39340194 muslim C June 17, 2018, 4:47 p.m. OK Mono C# TESTS 30 62 0 1800
39157653 schoenus C June 11, 2018, 2:13 p.m. OK Mono C# TESTS 30 62 68915200 1800
47335162 Mem C Dec. 21, 2018, 2:46 p.m. OK Mono C# TESTS 30 77 3584000 1800
40154377 kryspinow C July 10, 2018, 1:38 a.m. OK Mono C# TESTS 30 77 3584000 1800
66771582 hibatibati C Dec. 13, 2019, 8:05 a.m. OK Mono C# TESTS 30 93 3686400 1800
40745586 Mem C July 25, 2018, 2:30 p.m. OK Mono C# TESTS 30 124 3584000 1800
39231514 j4357j C June 14, 2018, 4:41 a.m. OK MS C++ TESTS 30 15 0 1800
39158675 lxn C June 11, 2018, 2:19 p.m. OK MS C++ TESTS 30 15 0 1800
39163777 subzero C June 11, 2018, 2:58 p.m. OK MS C++ TESTS 30 15 0 1800
39185680 Dru C June 12, 2018, 8:56 a.m. OK MS C++ TESTS 30 15 0 1800
39205911 henudhl C June 13, 2018, 4:22 a.m. OK MS C++ TESTS 30 15 0 1800
39221213 yuiop8747 C June 13, 2018, 4 p.m. OK MS C++ TESTS 30 15 0 1800
40102484 fishdog C July 9, 2018, 6:20 a.m. OK MS C++ TESTS 30 30 0 1800
57467697 vjudge3 C July 21, 2019, 4:21 p.m. OK MS C++ TESTS 30 30 0 1800
41680214 scorpiowf C Aug. 17, 2018, 10:27 a.m. OK MS C++ TESTS 30 30 0 1800
57443545 vjudge1 C July 21, 2019, 7:31 a.m. OK MS C++ TESTS 30 30 0 1800
51440743 taolahung01 C March 18, 2019, 9:46 a.m. OK MS C++ 2017 TESTS 30 31 0 1800
69889461 vjudge5 C Jan. 31, 2020, 9:28 a.m. OK MS C++ 2017 TESTS 30 31 307200 1800
54071875 Timonnable C May 13, 2019, 4:47 p.m. OK MS C++ 2017 TESTS 30 46 204800 1800
39259853 Jarazorg C June 15, 2018, 7:18 a.m. OK PascalABC.NET TESTS 30 46 204800 1800
39409591 mayakin C June 19, 2018, 11:56 a.m. OK PHP TESTS 30 31 409600 1800
39201685 kevinsogo C June 12, 2018, 9:40 p.m. OK PyPy 2 TESTS 30 93 0 1800
39742624 aeternalis1 C June 28, 2018, 12:23 p.m. OK PyPy 2 TESTS 30 109 102400 1800
39190141 YESMAths C June 12, 2018, 11:44 a.m. OK PyPy 2 TESTS 30 155 819200 1800
39169523 ManasG C June 11, 2018, 4:54 p.m. OK PyPy 2 TESTS 30 295 7577600 1800
39209349 piyushkumarmaurya C June 13, 2018, 7:44 a.m. OK PyPy 3 TESTS 30 109 0 1800
39188291 aijey C June 12, 2018, 10:32 a.m. OK PyPy 3 TESTS 30 109 0 1800
39181194 Parag12 C June 12, 2018, 5:33 a.m. OK PyPy 3 TESTS 30 109 0 1800
39184565 egozverev C June 12, 2018, 8:11 a.m. OK PyPy 3 TESTS 30 124 0 1800
39165434 BaaaaaaaaaaaaaaarkingDog C June 11, 2018, 3:14 p.m. OK PyPy 3 TESTS 30 124 0 1800
39163331 artemuk C June 11, 2018, 2:54 p.m. OK PyPy 3 TESTS 30 124 0 1800
39162483 Candyman C June 11, 2018, 2:47 p.m. OK PyPy 3 TESTS 30 124 0 1800
39189108 arsrivish2 C June 12, 2018, 11:03 a.m. OK PyPy 3 TESTS 30 155 1331200 1800
39194013 sergovoy C June 12, 2018, 2:17 p.m. OK PyPy 3 TESTS 30 170 1228800 1800
39193827 sergovoy C June 12, 2018, 2:10 p.m. OK PyPy 3 TESTS 30 202 1228800 1800
39248402 SoSooding C June 14, 2018, 3:45 p.m. OK Python 2 TESTS 30 108 0 1800
39163991 Wizmann C June 11, 2018, 3 p.m. OK Python 2 TESTS 30 108 0 1800
39160969 unsuspiciouscrumpet C June 11, 2018, 2:35 p.m. OK Python 2 TESTS 30 108 0 1800
39211326 tanghao C June 13, 2018, 9:17 a.m. OK Python 2 TESTS 30 109 0 1800
39158264 Heisenbug C June 11, 2018, 2:16 p.m. OK Python 2 TESTS 30 109 0 1800
39171532 Ali_Pi C June 11, 2018, 5:57 p.m. OK Python 2 TESTS 30 124 0 1800
45218756 radhikapillai25 C Nov. 2, 2018, 7:32 p.m. OK Python 2 TESTS 30 156 0 1800
39357790 chakmidlot C June 18, 2018, 1:44 p.m. OK Python 3 TESTS 30 78 0 1800
39209606 Naumtsev C June 13, 2018, 7:56 a.m. OK Python 3 TESTS 30 78 0 1800
39194744 MartiBook C June 12, 2018, 2:47 p.m. OK Python 3 TESTS 30 78 0 1800
39169935 sergovoy C June 11, 2018, 5:04 p.m. OK Python 3 TESTS 30 78 0 1800
39421309 quercus29 C June 19, 2018, 8:13 p.m. OK Python 3 TESTS 30 92 0 1800
39180939 plainstop C June 12, 2018, 5:19 a.m. OK Python 3 TESTS 30 92 0 1800
39170615 NewPrasad C June 11, 2018, 5:25 p.m. OK Python 3 TESTS 30 92 102400 1800
39211863 WildArchmage C June 13, 2018, 9:41 a.m. OK Python 3 TESTS 30 93 0 1800
39197863 yinxiaoyu C June 12, 2018, 5:25 p.m. OK Python 3 TESTS 30 93 0 1800
39187012 golikovnik C June 12, 2018, 9:47 a.m. OK Python 3 TESTS 30 93 0 1800
39157006 cympfh C June 11, 2018, 2:09 p.m. OK Ruby TESTS 30 62 102400 1800
39163855 cojna C June 11, 2018, 2:59 p.m. OK Rust TESTS 30 31 33689600 1800

remove filters

Back to search problems