Educational Codeforces Round 88 (Rated for 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
1359 Educational Codeforces Round 88 (Rated for Div. 2) FINISHED False 7200 146676311 May 28, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 28094 ) B New Theatre Square PROGRAMMING brute force dp greedy implementation two pointers 1000

B'You might have remembered Theatre square from the problem 1A. Now it 's finally getting repaved. The square still has a rectangular shape of n x m meters. However, the picture is about to get more complicated now. Let a_{i,j} be the j -th square in the i -th row of the pavement. You are given the picture of the squares: The black squares are paved already. You have to pave the white squares. There are two options for pavement tiles: You should cover all the white squares, no two tiles should overlap and no black squares should be covered by tiles. What is the smallest total price of the tiles needed to cover all the white squares? The first line contains a single integer t ( 1 <= t <= 500 ) -- the number of testcases. Then the description of t testcases follow. The first line of each testcase contains four integers n , m , x and y ( 1 <= n <= 100 ; 1 <= m <= 1000 ; 1 <= x, y <= 1000 ) -- the size of the Theatre square, the price of the 1 x 1 tile and the price of the 1 x 2 tile. Each of the next n lines contains m characters. The j -th character in the i -th line is a_{i,j} . If a_{i,j} = "*", then the j -th square in the i -th row should be black, and if a_{i,j} = ".", then the j -th square in the i -th row should be white. It 's guaranteed that the sum of n x m over all testcases doesn 't exceed 10^5 . For each testcase print a single integer -- the smallest total price of the tiles needed to cover all the white squares in burles. In the first testcase you are required to use a single 1 x 1 tile, even though 1 x 2 tile is cheaper. So the total price is 10 burles. In the second testcase you can either use two 1 x 1 tiles and spend 20 burles or use a single 1 x 2 tile and spend 1 burle. The second option is ch'...

Tutorials

Educational Codeforces Round 88 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
81920894 Adarsh_Tadwai B May 29, 2020, 6:46 p.m. OK Clang++17 Diagnostics TESTS 9 139 307200 1000
81920804 Adarsh_Tadwai B May 29, 2020, 6:44 p.m. OK Clang++17 Diagnostics TESTS 9 202 11571200 1000
81931310 Conqueror71 B May 30, 2020, 3:43 a.m. OK GNU C11 TESTS 9 15 0 1000
81860861 aenncryptor_991 B May 29, 2020, 7:44 a.m. OK GNU C11 TESTS 9 30 0 1000
81821201 Himelcse005 B May 28, 2020, 6:38 p.m. OK GNU C11 TESTS 9 30 0 1000
81825275 parthdhorajiya365 B May 28, 2020, 7:35 p.m. OK GNU C11 TESTS 9 30 102400 1000
81842349 Partha_sarothi B May 29, 2020, 3:10 a.m. OK GNU C11 TESTS 9 30 102400 1000
81810514 saurabh27 B May 28, 2020, 5:02 p.m. OK GNU C11 TESTS 9 30 102400 1000
81850205 AB_Turjo B May 29, 2020, 5:41 a.m. OK GNU C11 TESTS 9 30 1024000 1000
81895134 aryan_11 B May 29, 2020, 2:37 p.m. OK GNU C11 TESTS 9 31 0 1000
81919929 kaushik_rai B May 29, 2020, 6:32 p.m. OK GNU C11 TESTS 9 31 0 1000
82010039 ajoydey00001 B May 31, 2020, 4:56 a.m. OK GNU C11 TESTS 9 31 0 1000
81863536 4790iop B May 29, 2020, 8:17 a.m. OK GNU C++11 TESTS 9 15 0 1000
81865586 yinlei B May 29, 2020, 8:43 a.m. OK GNU C++11 TESTS 9 15 0 1000
82265873 vjudge2 B June 2, 2020, 3:22 a.m. OK GNU C++11 TESTS 9 15 0 1000
82230765 mituchowdhury B June 1, 2020, 3:07 p.m. OK GNU C++11 TESTS 9 15 102400 1000
82002755 vjudge4 B May 31, 2020, 1:37 a.m. OK GNU C++11 TESTS 9 15 204800 1000
82182690 MelonMeow_ylh B June 1, 2020, 6:06 a.m. OK GNU C++11 TESTS 9 15 409600 1000
81842439 majiao1101 B May 29, 2020, 3:11 a.m. OK GNU C++11 TESTS 9 15 1024000 1000
82458865 cfk5160 B June 4, 2020, 7:36 a.m. OK GNU C++11 TESTS 9 30 0 1000
81867367 admiral013 B May 29, 2020, 9:07 a.m. OK GNU C++11 TESTS 9 30 0 1000
82471037 Alkaid_potatoo B June 4, 2020, 10:08 a.m. OK GNU C++11 TESTS 9 30 102400 1000
81812774 michaelsehaik B May 28, 2020, 5:16 p.m. OK GNU C++14 TESTS 9 15 0 1000
81962673 rfpermen B May 30, 2020, 11:28 a.m. OK GNU C++14 TESTS 9 15 0 1000
81978019 ak56867 B May 30, 2020, 2:59 p.m. OK GNU C++14 TESTS 9 15 0 1000
81808930 seaguy B May 28, 2020, 4:54 p.m. OK GNU C++14 TESTS 9 15 0 1000
81856130 pranjalrocks B May 29, 2020, 6:54 a.m. OK GNU C++14 TESTS 9 15 102400 1000
81873540 simple_coder.07 B May 29, 2020, 10:21 a.m. OK GNU C++14 TESTS 9 15 102400 1000
81808620 Compilation_Error. B May 28, 2020, 4:52 p.m. OK GNU C++14 TESTS 9 15 102400 1000
81830846 utsavdas1998 B May 28, 2020, 9:30 p.m. OK GNU C++14 TESTS 9 15 102400 1000
82209788 code_bomb B June 1, 2020, 11:19 a.m. OK GNU C++14 TESTS 9 15 204800 1000
81940140 prabhatgautam B May 30, 2020, 6:32 a.m. OK GNU C++14 TESTS 9 15 204800 1000
82142478 grandshrimp B May 31, 2020, 4:47 p.m. OK GNU C++17 TESTS 9 15 0 1000
81811911 hrsh_panwar B May 28, 2020, 5:10 p.m. OK GNU C++17 TESTS 9 15 102400 1000
82232593 rahul_402 B June 1, 2020, 3:25 p.m. OK GNU C++17 TESTS 9 15 102400 1000
81811336 Prasenjit_1 B May 28, 2020, 5:07 p.m. OK GNU C++17 TESTS 9 15 102400 1000
81848967 jacker0031 B May 29, 2020, 5:23 a.m. OK GNU C++17 TESTS 9 15 102400 1000
81879384 insayn B May 29, 2020, 11:35 a.m. OK GNU C++17 TESTS 9 15 102400 1000
81894382 starboy1299 B May 29, 2020, 2:28 p.m. OK GNU C++17 TESTS 9 15 102400 1000
81983997 dhruvgpt B May 30, 2020, 4:33 p.m. OK GNU C++17 TESTS 9 15 102400 1000
81826115 Vaidik_Patel_27 B May 28, 2020, 7:49 p.m. OK GNU C++17 TESTS 9 15 102400 1000
82406000 ms134 B June 3, 2020, 2:29 p.m. OK GNU C++17 TESTS 9 15 204800 1000
81897443 abhigyan10 B May 29, 2020, 2:51 p.m. OK GNU C++17 (64) TESTS 9 15 0 1000
82317885 avantikasparihar B June 2, 2020, 2:34 p.m. OK GNU C++17 (64) TESTS 9 15 0 1000
81879490 polpolpol B May 29, 2020, 11:36 a.m. OK GNU C++17 (64) TESTS 9 15 0 1000
81835764 zwliew B May 29, 2020, 12:23 a.m. OK GNU C++17 (64) TESTS 9 15 0 1000
81814907 MateoCV B May 28, 2020, 5:34 p.m. OK GNU C++17 (64) TESTS 9 15 102400 1000
81817646 Giada B May 28, 2020, 6 p.m. OK GNU C++17 (64) TESTS 9 15 102400 1000
81834859 curious_insane B May 28, 2020, 11:53 p.m. OK GNU C++17 (64) TESTS 9 15 102400 1000
81939235 uruuru8888 B May 30, 2020, 6:20 a.m. OK GNU C++17 (64) TESTS 9 15 204800 1000
81982646 vernuu B May 30, 2020, 4:09 p.m. OK GNU C++17 (64) TESTS 9 15 204800 1000
82028806 idontknoww B May 31, 2020, 9:53 a.m. OK GNU C++17 (64) TESTS 9 15 204800 1000
82406989 Oopsimbad B June 3, 2020, 2:39 p.m. OK Go TESTS 9 31 0 1000
81820724 piyush2894 B May 28, 2020, 6:32 p.m. OK Go TESTS 9 46 0 1000
82344896 sks_saurav B June 2, 2020, 8:38 p.m. OK Java 11 TESTS 9 171 0 1000
81942500 mr___hacker____ B May 30, 2020, 7:03 a.m. OK Java 11 TESTS 9 171 0 1000
81902183 singhdhanwant B May 29, 2020, 3:24 p.m. OK Java 11 TESTS 9 171 0 1000
81825589 Clowyy B May 28, 2020, 7:40 p.m. OK Java 11 TESTS 9 171 0 1000
81819094 Piccadilly B May 28, 2020, 6:14 p.m. OK Java 11 TESTS 9 171 0 1000
82220372 18_03_2000 B June 1, 2020, 1:20 p.m. OK Java 11 TESTS 9 186 0 1000
82352215 ankit301 B June 3, 2020, 1:25 a.m. OK Java 11 TESTS 9 186 0 1000
82248943 zenlyj B June 1, 2020, 6:51 p.m. OK Java 11 TESTS 9 186 0 1000
82221911 18_03_2000 B June 1, 2020, 1:37 p.m. OK Java 11 TESTS 9 186 0 1000
82026730 Vatsal53 B May 31, 2020, 9:22 a.m. OK Java 11 TESTS 9 186 0 1000
81929498 bluesky111 B May 29, 2020, 9:58 p.m. OK Java 8 TESTS 9 108 0 1000
81970488 litesam B May 30, 2020, 1:15 p.m. OK Java 8 TESTS 9 108 0 1000
81949345 henryCo B May 30, 2020, 8:33 a.m. OK Java 8 TESTS 9 108 0 1000
82032510 greenmug.md B May 31, 2020, 10:48 a.m. OK Java 8 TESTS 9 108 0 1000
81922018 turing_fan123 B May 29, 2020, 7:03 p.m. OK Java 8 TESTS 9 108 0 1000
81876192 _maverick B May 29, 2020, 10:56 a.m. OK Java 8 TESTS 9 108 0 1000
81863173 kunalkatiyar9 B May 29, 2020, 8:13 a.m. OK Java 8 TESTS 9 108 0 1000
81863032 hrl B May 29, 2020, 8:11 a.m. OK Java 8 TESTS 9 108 0 1000
81859487 chaitanya11 B May 29, 2020, 7:30 a.m. OK Java 8 TESTS 9 108 0 1000
81854691 noobie_code B May 29, 2020, 6:37 a.m. OK Java 8 TESTS 9 108 0 1000
81840752 nerro93 B May 29, 2020, 2:35 a.m. OK JavaScript TESTS 9 46 2560000 1000
82029395 Luay B May 31, 2020, 10:02 a.m. OK JavaScript TESTS 9 62 2560000 1000
81841993 G.A.T.C B May 29, 2020, 3:02 a.m. OK Kotlin TESTS 9 124 0 1000
81843536 Spheniscine B May 29, 2020, 3:33 a.m. OK Kotlin TESTS 9 124 0 1000
81954320 Bloodwyn B May 30, 2020, 9:41 a.m. OK Kotlin TESTS 9 155 0 1000
82386307 whiter4bbit B June 3, 2020, 10:32 a.m. OK Kotlin TESTS 9 155 0 1000
81815409 HanaYukii B May 28, 2020, 5:39 p.m. OK Kotlin TESTS 9 170 0 1000
81886203 little_angel B May 29, 2020, 12:53 p.m. OK Kotlin TESTS 9 171 0 1000
81809845 TRR B May 28, 2020, 4:59 p.m. OK Mono C# TESTS 9 62 1331200 1000
81808400 jankmet B May 28, 2020, 4:51 p.m. OK Mono C# TESTS 9 77 102400 1000
82400407 GusztavSzmolik B June 3, 2020, 1:25 p.m. OK Mono C# TESTS 9 77 2969600 1000
81809386 anish.1922 B May 28, 2020, 4:56 p.m. OK Mono C# TESTS 9 78 6758400 1000
82263649 vjudge2 B June 2, 2020, 2:23 a.m. OK MS C++ TESTS 9 46 102400 1000
82265794 vjudge1 B June 2, 2020, 3:21 a.m. OK MS C++ TESTS 9 46 204800 1000
82236164 leventa B June 1, 2020, 4:02 p.m. OK MS C++ 2017 TESTS 9 15 204800 1000
81954051 Wolf_Cub B May 30, 2020, 9:37 a.m. OK MS C++ 2017 TESTS 9 31 0 1000
82266211 vjudge3 B June 2, 2020, 3:31 a.m. OK MS C++ 2017 TESTS 9 31 102400 1000
82266634 vjudge5 B June 2, 2020, 3:41 a.m. OK MS C++ 2017 TESTS 9 31 102400 1000
82266045 vjudge4 B June 2, 2020, 3:27 a.m. OK MS C++ 2017 TESTS 9 31 102400 1000
81887803 Falca B May 29, 2020, 1:12 p.m. OK MS C++ 2017 TESTS 9 31 102400 1000
82295706 YaMi506 B June 2, 2020, 10:23 a.m. OK MS C++ 2017 TESTS 9 31 204800 1000
81810304 dimasidorenko B May 28, 2020, 5:01 p.m. OK MS C++ 2017 TESTS 9 31 204800 1000
82266811 vjudge3 B June 2, 2020, 3:45 a.m. OK MS C++ 2017 TESTS 9 31 307200 1000
81978120 nik1998 B May 30, 2020, 3 p.m. OK MS C++ 2017 TESTS 9 31 1024000 1000
82005148 AliAbdallah B May 31, 2020, 2:54 a.m. OK Node.js TESTS 9 124 5529600 1000
82027040 kit.shiron B May 31, 2020, 9:27 a.m. OK PyPy 2 TESTS 9 171 1536000 1000
81998481 mir.panov B May 30, 2020, 10:02 p.m. OK PyPy 2 TESTS 9 202 3379200 1000
81841597 beethoven97 B May 29, 2020, 2:55 a.m. OK PyPy 2 TESTS 9 234 2355200 1000
82039698 shreyansv1 B May 31, 2020, 12:38 p.m. OK PyPy 2 TESTS 9 421 2355200 1000
81891528 tachyon777 B May 29, 2020, 1:57 p.m. OK PyPy 3 TESTS 9 155 2662400 1000
82007943 CKP_ B May 31, 2020, 4:07 a.m. OK PyPy 3 TESTS 9 155 2969600 1000
81919777 dcordb B May 29, 2020, 6:30 p.m. OK PyPy 3 TESTS 9 155 3174400 1000
81920282 dcordb B May 29, 2020, 6:37 p.m. OK PyPy 3 TESTS 9 171 2662400 1000
81814800 Dewangee B May 28, 2020, 5:33 p.m. OK PyPy 3 TESTS 9 171 3584000 1000
82018576 NSPS B May 31, 2020, 7:17 a.m. OK PyPy 3 TESTS 9 171 3788800 1000
81883711 xicarik B May 29, 2020, 12:24 p.m. OK PyPy 3 TESTS 9 171 3891200 1000
82006604 komolakanto B May 31, 2020, 3:32 a.m. OK PyPy 3 TESTS 9 186 3481600 1000
81892735 ThetaSigma B May 29, 2020, 2:10 p.m. OK PyPy 3 TESTS 9 186 3584000 1000
81886548 atmur B May 29, 2020, 12:57 p.m. OK PyPy 3 TESTS 9 186 4812800 1000
81825305 FailBetterNextTime B May 28, 2020, 7:36 p.m. OK Python 2 TESTS 9 295 307200 1000
82392620 Optimismy B June 3, 2020, 11:48 a.m. OK Python 3 TESTS 9 155 614400 1000
82041350 linlin000 B May 31, 2020, 1:04 p.m. OK Python 3 TESTS 9 171 307200 1000
81890823 Fantasy_World B May 29, 2020, 1:49 p.m. OK Python 3 TESTS 9 171 307200 1000
81859587 rupeshrk3 B May 29, 2020, 7:31 a.m. OK Python 3 TESTS 9 171 307200 1000
81919458 AggarwalRaghav B May 29, 2020, 6:26 p.m. OK Python 3 TESTS 9 171 409600 1000
81974512 EdwardC B May 30, 2020, 2:10 p.m. OK Python 3 TESTS 9 171 512000 1000
81840006 rishi7677 B May 29, 2020, 2:16 a.m. OK Python 3 TESTS 9 171 512000 1000
81990366 raviel B May 30, 2020, 6:51 p.m. OK Python 3 TESTS 9 171 614400 1000
81940299 soumya0531 B May 30, 2020, 6:34 a.m. OK Python 3 TESTS 9 171 614400 1000
81879769 Byte1 B May 29, 2020, 11:39 a.m. OK Python 3 TESTS 9 171 921600 1000
81834705 IvanDyachenko B May 28, 2020, 11:45 p.m. OK Scala TESTS 9 561 0 1000

remove filters

Back to search problems