Codeforces Round 745 (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
1580 Codeforces Round 745 (Div. 1) FINISHED False 7200 104183063 Sept. 30, 2021, 10:15 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3729 ) A Portal PROGRAMMING brute force dp greedy implementation 1700

B'CQXYM found a rectangle A of size n x m . There are n rows and m columns of blocks. Each block of the rectangle is an obsidian block or empty. CQXYM can change an obsidian block to an empty block or an empty block to an obsidian block in one operation. A rectangle M size of a x b is called a portal if and only if it satisfies the following conditions: Note that corners can be any type CQXYM wants to know the minimum number of operations he needs to make at least one sub-rectangle a portal. The first line contains an integer t ( t geq 1 ), which is the number of test cases. For each test case, the first line contains two integers n and m ( 5 <= n <= 400 , 4 <= m <= 400 ). Then n lines follow, each line contains m characters 0 or 1 . If the j -th character of i -th line is 0 , block A_{i,j} is an empty block. Otherwise, block A_{i,j} is an obsidian block. It is guaranteed that the sum of n over all test cases does not exceed 400 . It is guaranteed that the sum of m over all test cases does not exceed 400 . Output t answers, and each answer in a line. In the first test case, the final portal is like this: '...

Tutorials

Codeforces Round #745 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
130413719 gxlois A Sept. 30, 2021, 8:25 p.m. OK D TESTS 64 483 13721600 1700
130413430 gxlois A Sept. 30, 2021, 8:19 p.m. OK D TESTS 64 483 18432000 1700
130413834 gxlois A Sept. 30, 2021, 8:28 p.m. OK D TESTS 64 529 7270400 1700
130340180 hos.lyric A Sept. 30, 2021, 10:24 a.m. OK D TESTS 64 530 13721600 1700
130413108 gxlois A Sept. 30, 2021, 8:13 p.m. OK D TESTS 64 576 18534400 1700
130346286 HwSh A Sept. 30, 2021, 10:45 a.m. OK GNU C++14 TESTS 64 31 4608000 1700
130342060 LiciaDu A Sept. 30, 2021, 10:31 a.m. OK GNU C++14 TESTS 64 31 4608000 1700
130347437 zech A Sept. 30, 2021, 10:48 a.m. OK GNU C++14 TESTS 64 31 5836800 1700
130380495 Fman2018 A Sept. 30, 2021, 1:47 p.m. OK GNU C++14 TESTS 64 31 6348800 1700
130351882 18Michael A Sept. 30, 2021, 11:03 a.m. OK GNU C++14 TESTS 64 31 6348800 1700
130420119 Macesuted_AB A Sept. 30, 2021, 11:58 p.m. OK GNU C++14 TESTS 64 78 6348800 1700
130422559 expwmh A Oct. 1, 2021, 1:55 a.m. OK GNU C++14 TESTS 64 93 4403200 1700
130363932 Macesuted_AB A Sept. 30, 2021, 11:48 a.m. OK GNU C++14 TESTS 64 93 6348800 1700
130421830 zzt1208 A Oct. 1, 2021, 1:31 a.m. OK GNU C++14 TESTS 64 93 213196800 1700
130422340 expwmh A Oct. 1, 2021, 1:49 a.m. OK GNU C++14 TESTS 64 108 4403200 1700
130410495 kernel.bin A Sept. 30, 2021, 7:26 p.m. OK GNU C++17 TESTS 64 31 4812800 1700
130410152 kernel.bin A Sept. 30, 2021, 7:21 p.m. OK GNU C++17 TESTS 64 31 4812800 1700
130353271 jerdno A Sept. 30, 2021, 11:08 a.m. OK GNU C++17 TESTS 64 31 6144000 1700
130341789 jacky35 A Sept. 30, 2021, 10:30 a.m. OK GNU C++17 TESTS 64 46 4710400 1700
130410679 kernel.bin A Sept. 30, 2021, 7:30 p.m. OK GNU C++17 TESTS 64 46 4812800 1700
130421757 ALLnxiglan A Oct. 1, 2021, 1:28 a.m. OK GNU C++17 TESTS 64 61 5017600 1700
130378047 parasat A Sept. 30, 2021, 1:25 p.m. OK GNU C++17 TESTS 64 77 4710400 1700
130352848 TeaPot A Sept. 30, 2021, 11:06 a.m. OK GNU C++17 TESTS 64 77 6041600 1700
130419127 apgpsoop A Sept. 30, 2021, 11:12 p.m. OK GNU C++17 TESTS 64 77 7680000 1700
130346892 ChenThree A Sept. 30, 2021, 10:47 a.m. OK GNU C++17 TESTS 64 93 4608000 1700
130352747 ttttan A Sept. 30, 2021, 11:06 a.m. OK GNU C++17 (64) TESTS 64 30 5836800 1700
130387568 devinqu A Sept. 30, 2021, 2:54 p.m. OK GNU C++17 (64) TESTS 64 31 5017600 1700
130343788 basic_string A Sept. 30, 2021, 10:36 a.m. OK GNU C++17 (64) TESTS 64 31 5120000 1700
130424450 luogu_bot1 A Oct. 1, 2021, 2:46 a.m. OK GNU C++17 (64) TESTS 64 31 5939200 1700
130348877 UnoK A Sept. 30, 2021, 10:53 a.m. OK GNU C++17 (64) TESTS 64 31 6553600 1700
130376234 nigus A Sept. 30, 2021, 1:08 p.m. OK GNU C++17 (64) TESTS 64 31 6963200 1700
130359780 Nothing_matter A Sept. 30, 2021, 11:31 a.m. OK GNU C++17 (64) TESTS 64 31 6963200 1700
130417267 Seyaua A Sept. 30, 2021, 9:58 p.m. OK GNU C++17 (64) TESTS 64 46 5324800 1700
130348101 zkou A Sept. 30, 2021, 10:50 a.m. OK GNU C++17 (64) TESTS 64 46 5734400 1700
130347383 zlt1117 A Sept. 30, 2021, 10:48 a.m. OK GNU C++17 (64) TESTS 64 46 5939200 1700
130351424 fpeterfalvi A Sept. 30, 2021, 11:01 a.m. OK Java 11 TESTS 64 234 23859200 1700
130393139 dusty.and.rusty A Sept. 30, 2021, 3:51 p.m. OK Java 11 TESTS 64 249 24883200 1700
130375452 dusty.and.rusty A Sept. 30, 2021, 1:01 p.m. OK Java 11 TESTS 64 280 24883200 1700
130342844 uwi A Sept. 30, 2021, 10:34 a.m. OK Java 11 TESTS 64 966 23961600 1700
130427052 vdh_123 A Oct. 1, 2021, 3:45 a.m. OK PyPy 3 TESTS 64 654 30003200 1700
130387824 sansen A Sept. 30, 2021, 2:57 p.m. OK Rust TESTS 64 156 5939200 1700
130417359 Spheniscine A Sept. 30, 2021, 10:01 p.m. OK Rust TESTS 64 374 5324800 1700
130376187 kobae964 A Sept. 30, 2021, 1:08 p.m. OK Rust TESTS 64 654 5427200 1700
130345895 kobae964 A Sept. 30, 2021, 10:43 a.m. OK Rust TESTS 64 701 5734400 1700
130353751 cottoncotton A Sept. 30, 2021, 11:09 a.m. OK Rust TESTS 64 997 10444800 1700

remove filters

Back to search problems