Codeforces Round 645 (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
1358 Codeforces Round 645 (Div. 2) FINISHED False 7200 141319499 May 26, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 39692 ) A Park Lighting PROGRAMMING math 800

B'Due to the coronavirus pandemic, city authorities obligated citizens to keep a social distance. The mayor of the city Semyon wants to light up Gluharniki park so that people could see each other even at night to keep the social distance. The park is a rectangular table with n rows and m columns, where the cells of the table are squares, and the boundaries between the cells are streets. External borders are also streets. Every street has length 1 . For example, park with n=m=2 has 12 streets. You were assigned to develop a plan for lighting the park. You can put lanterns in the middle of the streets. The lamp lights two squares near it (or only one square if it stands on the border of the park). Semyon wants to spend the least possible amount of money on lighting but also wants people throughout the park to keep a social distance. So he asks you to find the minimum number of lanterns that are required to light all the squares. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases in the input. Then t test cases follow. Each test case is a line containing two integers n , m ( 1 <= n, m <= 10^4 ) -- park sizes. Print t answers to the test cases. Each answer must be a single integer -- the minimum number of lanterns that are required to light all the squares. Possible optimal arrangement of the lanterns for the 2 -nd test case of input data example: Possible optimal arrangement of the lanterns for the 3 -rd test case of input data example: '...

Tutorials

Codeforces Round #645 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
81634000 abhi_yaduvansi A May 27, 2020, 3:29 p.m. OK Clang++17 Diagnostics TESTS 11 187 0 800
81659977 none126 A May 28, 2020, 12:05 a.m. OK Clang++17 Diagnostics TESTS 11 202 0 800
81663734 lsl A May 28, 2020, 2:22 a.m. OK Clang++17 Diagnostics TESTS 11 202 0 800
81596407 tranminhprvt01 A May 27, 2020, 8:15 a.m. OK FPC TESTS 11 46 0 800
81563198 XionTesla A May 26, 2020, 8:29 p.m. OK GNU C11 TESTS 11 46 0 800
81644115 anujsinghal A May 27, 2020, 5:28 p.m. OK GNU C11 TESTS 11 46 0 800
81636038 harsh.kumar1910 A May 27, 2020, 3:52 p.m. OK GNU C11 TESTS 11 46 102400 800
81526772 sourav_chowdhury A May 26, 2020, 3:48 p.m. OK GNU C11 TESTS 11 61 0 800
81558961 aatmanvaidya A May 26, 2020, 7:14 p.m. OK GNU C11 TESTS 11 61 0 800
81581572 saikowsik11 A May 27, 2020, 4:59 a.m. OK GNU C11 TESTS 11 61 0 800
81585575 Beku.sh A May 27, 2020, 5:58 a.m. OK GNU C11 TESTS 11 61 0 800
81642223 sjleepy A May 27, 2020, 5:06 p.m. OK GNU C11 TESTS 11 61 0 800
81552899 MTMehreen A May 26, 2020, 5:59 p.m. OK GNU C11 TESTS 11 61 0 800
81553743 Ashraful_Goni A May 26, 2020, 6:08 p.m. OK GNU C11 TESTS 11 61 0 800
81572223 trueBatty A May 27, 2020, 1:34 a.m. OK GNU C++11 TESTS 11 15 0 800
81578187 huangxiaohua A May 27, 2020, 3:53 a.m. OK GNU C++11 TESTS 11 15 0 800
81552319 Sanjida1903070 A May 26, 2020, 5:55 p.m. OK GNU C++11 TESTS 11 15 0 800
81572150 Logey A May 27, 2020, 1:31 a.m. OK GNU C++11 TESTS 11 15 0 800
81600779 MrWuZore A May 27, 2020, 9:06 a.m. OK GNU C++11 TESTS 11 15 204800 800
81574716 majiao1101 A May 27, 2020, 2:46 a.m. OK GNU C++11 TESTS 11 15 819200 800
81705177 ix35 A May 28, 2020, 12:35 p.m. OK GNU C++11 TESTS 11 30 0 800
81700422 licunchun2006 A May 28, 2020, 11:36 a.m. OK GNU C++11 TESTS 11 30 0 800
81624598 2_3_3 A May 27, 2020, 1:47 p.m. OK GNU C++11 TESTS 11 30 0 800
81663629 2019030007547 A May 28, 2020, 2:19 a.m. OK GNU C++11 TESTS 11 30 0 800
81570484 Helal A May 27, 2020, 12:38 a.m. OK GNU C++14 TESTS 11 30 0 800
81540028 Saidurraahmaan A May 26, 2020, 4:20 p.m. OK GNU C++14 TESTS 11 30 0 800
81635918 maverick_S A May 27, 2020, 3:51 p.m. OK GNU C++14 TESTS 11 30 0 800
81711924 Sankalan7 A May 28, 2020, 1:58 p.m. OK GNU C++14 TESTS 11 30 0 800
81581993 Merci_12_Y A May 27, 2020, 5:07 a.m. OK GNU C++14 TESTS 11 30 0 800
81531242 mridul08 A May 26, 2020, 3:59 p.m. OK GNU C++14 TESTS 11 30 0 800
81549844 code_tester_1 A May 26, 2020, 5:30 p.m. OK GNU C++14 TESTS 11 30 0 800
81569609 kd07 A May 27, 2020, 12:10 a.m. OK GNU C++14 TESTS 11 30 0 800
81643519 prtanmay A May 27, 2020, 5:21 p.m. OK GNU C++14 TESTS 11 30 204800 800
81708073 boxnos A May 28, 2020, 1:11 p.m. OK GNU C++14 TESTS 11 30 307200 800
81695452 nimmi_001 A May 28, 2020, 10:31 a.m. OK GNU C++17 TESTS 11 30 0 800
81705610 Origenes A May 28, 2020, 12:41 p.m. OK GNU C++17 TESTS 11 30 0 800
81668446 janwei A May 28, 2020, 4:16 a.m. OK GNU C++17 TESTS 11 30 0 800
81615287 It_Wasnt_Me A May 27, 2020, 12:05 p.m. OK GNU C++17 TESTS 11 30 0 800
81604630 the_farzi_coder A May 27, 2020, 9:57 a.m. OK GNU C++17 TESTS 11 30 0 800
81601008 Polusummator A May 27, 2020, 9:09 a.m. OK GNU C++17 TESTS 11 30 0 800
81596705 Elegia A May 27, 2020, 8:18 a.m. OK GNU C++17 TESTS 11 30 0 800
81592910 Fysty A May 27, 2020, 7:31 a.m. OK GNU C++17 TESTS 11 30 0 800
81581474 Sturdy A May 27, 2020, 4:58 a.m. OK GNU C++17 TESTS 11 30 0 800
81581147 reysilvergun A May 27, 2020, 4:53 a.m. OK GNU C++17 TESTS 11 30 0 800
81537764 AmShZ A May 26, 2020, 4:14 p.m. OK GNU C++17 (64) TESTS 11 15 0 800
81555045 ayush_nishad A May 26, 2020, 6:21 p.m. OK GNU C++17 (64) TESTS 11 15 0 800
81563330 inbornhandsome A May 26, 2020, 8:32 p.m. OK GNU C++17 (64) TESTS 11 15 0 800
81573696 HackedAgain A May 27, 2020, 2:23 a.m. OK GNU C++17 (64) TESTS 11 15 0 800
81630783 Sakhiya07 A May 27, 2020, 2:55 p.m. OK GNU C++17 (64) TESTS 11 30 0 800
81701615 msz301005 A May 28, 2020, 11:51 a.m. OK GNU C++17 (64) TESTS 11 30 0 800
81573535 Woob A May 27, 2020, 2:16 a.m. OK GNU C++17 (64) TESTS 11 30 0 800
81579327 Nkap A May 27, 2020, 4:17 a.m. OK GNU C++17 (64) TESTS 11 30 0 800
81589374 coderanant A May 27, 2020, 6:46 a.m. OK GNU C++17 (64) TESTS 11 30 0 800
81612992 shreya_25 A May 27, 2020, 11:40 a.m. OK GNU C++17 (64) TESTS 11 30 0 800
81576460 synapse A May 27, 2020, 3:20 a.m. OK Go TESTS 11 46 0 800
81603863 BugLeave A May 27, 2020, 9:47 a.m. OK Go TESTS 11 374 102400 800
81679414 In_The_Name_Of_Love A May 28, 2020, 7:09 a.m. OK Java 11 TESTS 11 171 0 800
81626208 yb1717 A May 27, 2020, 2:06 p.m. OK Java 11 TESTS 11 171 0 800
81596250 kunalkatiyar9 A May 27, 2020, 8:13 a.m. OK Java 11 TESTS 11 171 0 800
81592245 mpanyavin A May 27, 2020, 7:22 a.m. OK Java 11 TESTS 11 171 0 800
81574461 p_unit A May 27, 2020, 2:41 a.m. OK Java 11 TESTS 11 171 0 800
81641071 mahendrabishnoi2 A May 27, 2020, 4:52 p.m. OK Java 11 TESTS 11 186 0 800
81615027 mr___hacker____ A May 27, 2020, 12:03 p.m. OK Java 11 TESTS 11 186 0 800
81551983 anhpp A May 26, 2020, 5:52 p.m. OK Java 11 TESTS 11 186 0 800
81615994 the_royal_raj A May 27, 2020, 12:13 p.m. OK Java 11 TESTS 11 187 0 800
81591830 AshrafEzz A May 27, 2020, 7:17 a.m. OK Java 11 TESTS 11 187 0 800
81582888 programbhavan A May 27, 2020, 5:21 a.m. OK Java 8 TESTS 11 108 0 800
81702853 niteshnanda A May 28, 2020, 12:07 p.m. OK Java 8 TESTS 11 108 0 800
81696112 adarshm_26 A May 28, 2020, 10:40 a.m. OK Java 8 TESTS 11 108 0 800
81668573 Bhavya_Arora A May 28, 2020, 4:19 a.m. OK Java 8 TESTS 11 108 0 800
81577604 tsumit023 A May 27, 2020, 3:41 a.m. OK Java 8 TESTS 11 108 0 800
81579306 a_2410 A May 27, 2020, 4:16 a.m. OK Java 8 TESTS 11 109 0 800
81650183 nandit A May 27, 2020, 7:11 p.m. OK Java 8 TESTS 11 109 0 800
81579489 ashraybharambe A May 27, 2020, 4:20 a.m. OK Java 8 TESTS 11 109 0 800
81602428 pH7 A May 27, 2020, 9:27 a.m. OK Java 8 TESTS 11 109 0 800
81622221 asafiul A May 27, 2020, 1:19 p.m. OK Java 8 TESTS 11 109 0 800
81636330 Spheniscine A May 27, 2020, 3:55 p.m. OK Kotlin TESTS 11 109 0 800
81665042 lazaroofarrill A May 28, 2020, 2:55 a.m. OK Kotlin TESTS 11 202 0 800
81630060 NarendraSeervi A May 27, 2020, 2:47 p.m. OK Kotlin TESTS 11 202 102400 800
81620453 votez A May 27, 2020, 12:58 p.m. OK Kotlin TESTS 11 233 0 800
81576741 FrankreedX A May 27, 2020, 3:25 a.m. OK Kotlin TESTS 11 233 0 800
81600880 Danzev A May 27, 2020, 9:07 a.m. OK Kotlin TESTS 11 234 0 800
81633325 Black_Fregat A May 27, 2020, 3:22 p.m. OK Kotlin TESTS 11 249 0 800
81559459 Tlatoani A May 26, 2020, 7:22 p.m. OK Kotlin TESTS 11 249 0 800
81555532 wbars A May 26, 2020, 6:27 p.m. OK Kotlin TESTS 11 249 0 800
81535494 Shortfuse A May 26, 2020, 4:09 p.m. OK Kotlin TESTS 11 265 0 800
81612903 BowieD A May 27, 2020, 11:39 a.m. OK Mono C# TESTS 11 109 1945600 800
81603008 TRR A May 27, 2020, 9:35 a.m. OK Mono C# TESTS 11 109 1945600 800
81557267 idr753951 A May 26, 2020, 6:49 p.m. OK Mono C# TESTS 11 124 1945600 800
81567513 Taha007 A May 26, 2020, 10:35 p.m. OK Mono C# TESTS 11 124 3072000 800
81529517 RehabKYounis A May 26, 2020, 3:54 p.m. OK Mono C# TESTS 11 140 2150400 800
81528579 Nurullo_0101 A May 26, 2020, 3:52 p.m. OK Mono C# TESTS 11 140 6553600 800
81578671 acrux A May 27, 2020, 4:03 a.m. OK MS C++ TESTS 11 31 0 800
81685888 shigywigy A May 28, 2020, 8:31 a.m. OK MS C++ TESTS 11 46 102400 800
81674873 Bhan123 A May 28, 2020, 6:10 a.m. OK MS C++ TESTS 11 62 0 800
81671339 isshu9945 A May 28, 2020, 5:18 a.m. OK MS C++ TESTS 11 62 0 800
81666381 diegoct7 A May 28, 2020, 3:26 a.m. OK MS C++ TESTS 11 62 0 800
81534565 CFWudanna A May 26, 2020, 4:07 p.m. OK MS C++ TESTS 11 93 0 800
81562187 leventa A May 26, 2020, 8:09 p.m. OK MS C++ 2017 TESTS 11 31 102400 800
81529199 Atesla00 A May 26, 2020, 3:54 p.m. OK MS C++ 2017 TESTS 11 31 307200 800
81583651 dimasidorenko A May 27, 2020, 5:33 a.m. OK MS C++ 2017 TESTS 11 46 0 800
81549650 pulokjk A May 26, 2020, 5:29 p.m. OK MS C++ 2017 TESTS 11 62 0 800
81706370 oboltus A May 28, 2020, 12:50 p.m. OK MS C++ 2017 TESTS 11 77 0 800
81691629 Mad112233 A May 28, 2020, 9:43 a.m. OK MS C++ 2017 TESTS 11 77 0 800
81688079 parkagnomish2 A May 28, 2020, 8:57 a.m. OK MS C++ 2017 TESTS 11 77 0 800
81667458 JoosyMoosy A May 28, 2020, 3:50 a.m. OK MS C++ 2017 TESTS 11 77 0 800
81667191 hanpul A May 28, 2020, 3:44 a.m. OK MS C++ 2017 TESTS 11 77 0 800
81659286 viterfull A May 27, 2020, 11:28 p.m. OK MS C++ 2017 TESTS 11 77 0 800
81643422 WbxOne A May 27, 2020, 5:20 p.m. OK Node.js TESTS 11 249 5529600 800
81547293 PlytonRexus A May 26, 2020, 4:34 p.m. OK Node.js TESTS 11 249 5939200 800
81565418 c1729 A May 26, 2020, 9:21 p.m. OK PyPy 2 TESTS 11 139 921600 800
81630109 yumtam A May 27, 2020, 2:47 p.m. OK PyPy 2 TESTS 11 140 1126400 800
81600112 kit.shiron A May 27, 2020, 8:57 a.m. OK PyPy 2 TESTS 11 202 1024000 800
81573757 ____ankit_sm____ A May 27, 2020, 2:25 a.m. OK PyPy 2 TESTS 11 217 1638400 800
81645037 beethoven97 A May 27, 2020, 5:41 p.m. OK PyPy 2 TESTS 11 265 1024000 800
81576499 itsme297 A May 27, 2020, 3:21 a.m. OK PyPy 2 TESTS 11 358 1945600 800
81553700 gintoki_s A May 26, 2020, 6:07 p.m. OK PyPy 3 TESTS 11 155 2150400 800
81564901 jscn A May 26, 2020, 9:08 p.m. OK PyPy 3 TESTS 11 171 4403200 800
81636448 ThetaSigma A May 27, 2020, 3:57 p.m. OK PyPy 3 TESTS 11 186 4096000 800
81645134 caow A May 27, 2020, 5:42 p.m. OK PyPy 3 TESTS 11 186 4403200 800
81658985 tycyd A May 27, 2020, 11:13 p.m. OK PyPy 3 TESTS 11 187 2867200 800
81596775 THEarchitect A May 27, 2020, 8:19 a.m. OK PyPy 3 TESTS 11 187 3481600 800
81630116 breno A May 27, 2020, 2:48 p.m. OK PyPy 3 TESTS 11 187 3891200 800
81596444 Cbkhare A May 27, 2020, 8:15 a.m. OK PyPy 3 TESTS 11 187 3891200 800
81550767 dipta007 A May 26, 2020, 5:34 p.m. OK PyPy 3 TESTS 11 187 4096000 800
81642295 Anuranjan_Pandey A May 27, 2020, 5:07 p.m. OK PyPy 3 TESTS 11 202 3788800 800
81553727 gintoki_s A May 26, 2020, 6:07 p.m. OK Python 3 TESTS 11 124 204800 800
81620459 razodeh A May 27, 2020, 12:58 p.m. OK Python 3 TESTS 11 124 307200 800
81587308 Exploud A May 27, 2020, 6:20 a.m. OK Python 3 TESTS 11 124 307200 800
81624856 lightmor A May 27, 2020, 1:50 p.m. OK Python 3 TESTS 11 124 409600 800
81571242 nebocco A May 27, 2020, 1 a.m. OK Python 3 TESTS 11 124 409600 800
81561633 HYDRAA_MAFIA A May 26, 2020, 7:59 p.m. OK Python 3 TESTS 11 124 614400 800
81558893 stfu_please A May 26, 2020, 7:14 p.m. OK Python 3 TESTS 11 124 614400 800
81584951 subhajitdas A May 27, 2020, 5:51 a.m. OK Python 3 TESTS 11 124 921600 800
81620309 razodeh A May 27, 2020, 12:57 p.m. OK Python 3 TESTS 11 139 307200 800
81612712 bit_2 A May 27, 2020, 11:37 a.m. OK Python 3 TESTS 11 140 307200 800
81557438 utkarsh2102 A May 26, 2020, 6:52 p.m. OK Ruby TESTS 11 77 0 800
81612665 loujunjie A May 27, 2020, 11:36 a.m. OK Rust TESTS 11 139 307200 800

remove filters

Back to search problems