Codeforces Round 790 (Div. 4)

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
1676 Codeforces Round 790 (Div. 4) FINISHED False 7200 79629299 May 10, 2022, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 25450 ) D X-Sum PROGRAMMING brute force greedy implementation

B"Timur's grandfather gifted him a chessboard to practice his chess skills. This chessboard is a grid a with n rows and m columns with each cell having a non-negative integer written on it. Timur's challenge is to place a bishop on the board such that the sum of all cells attacked by the bishop is maximal. The bishop attacks in all directions diagonally, and there is no limit to the distance which the bishop can attack. Note that the cell on which the bishop is placed is also considered attacked. Help him find the maximal sum he can get. The first line of the input contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. The description of test cases follows. The first line of each test case contains the integers n and m ( 1 <= n <= 200 , 1 <= q m <= q 200 ). The following n lines contain m integers each, the j -th element of the i -th line a_{ij} is the number written in the j -th cell of the i -th row (0 <= q a_{ij} <= q 10^6) It is guaranteed that the sum of n cdot m over all test cases does not exceed 4 cdot10^4 . For each test case output a single integer, the maximum sum over all possible placements of the bishop. For the first test case here the best sum is achieved by the bishop being in this position: "...

Tutorials

Codeforces Round #790 (Div. 4) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
156787390 bluemegane D May 11, 2022, 6:38 a.m. OK C# 8 TESTS 12 108 3072000
156837167 prajjawal_sahu D May 11, 2022, 1:40 p.m. OK Clang++17 Diagnostics TESTS 12 826 6348800
156846260 Denor D May 11, 2022, 3:26 p.m. OK Delphi TESTS 12 15 614400
156853374 Rutts07 D May 11, 2022, 4:55 p.m. OK GNU C11 TESTS 12 30 204800
156794801 Beku.sh D May 11, 2022, 8:09 a.m. OK GNU C11 TESTS 12 31 204800
156849893 mojun D May 11, 2022, 4:10 p.m. OK GNU C11 TESTS 12 31 204800
156854927 Rutts07 D May 11, 2022, 5:17 p.m. OK GNU C11 TESTS 12 46 204800
156836667 gaurav024 D May 11, 2022, 1:35 p.m. OK GNU C++14 TESTS 12 15 204800
156825673 shreeram_saran_ D May 11, 2022, 11:45 a.m. OK GNU C++14 TESTS 12 15 204800
156797816 Graythron D May 11, 2022, 8:44 a.m. OK GNU C++14 TESTS 12 15 204800
156793455 HanHans D May 11, 2022, 7:52 a.m. OK GNU C++14 TESTS 12 15 204800
156872534 suwenheng D May 11, 2022, 10:52 p.m. OK GNU C++14 TESTS 12 15 204800
156869206 jai2024 D May 11, 2022, 9:05 p.m. OK GNU C++14 TESTS 12 15 204800
156836757 slzxpanhongxuan D May 11, 2022, 1:36 p.m. OK GNU C++14 TESTS 12 15 307200
156855339 Uzumaki_cf D May 11, 2022, 5:23 p.m. OK GNU C++14 TESTS 12 15 307200
156796628 fytftyf D May 11, 2022, 8:31 a.m. OK GNU C++14 TESTS 12 15 307200
156848883 zhtt0 D May 11, 2022, 3:57 p.m. OK GNU C++14 TESTS 12 15 409600
156836704 SneiderQuintero D May 11, 2022, 1:35 p.m. OK GNU C++17 TESTS 12 15 204800
156835110 Hassn_Hamada D May 11, 2022, 1:19 p.m. OK GNU C++17 TESTS 12 15 204800
156832474 A3-247 D May 11, 2022, 12:53 p.m. OK GNU C++17 TESTS 12 15 204800
156887182 ddlearn D May 12, 2022, 5:46 a.m. OK GNU C++17 TESTS 12 15 204800
156815391 KAUSTUBH152003 D May 11, 2022, 9:49 a.m. OK GNU C++17 TESTS 12 15 204800
156795019 hoangls D May 11, 2022, 8:12 a.m. OK GNU C++17 TESTS 12 15 204800
156830216 TheBubbleBoy73 D May 11, 2022, 12:31 p.m. OK GNU C++17 TESTS 12 15 204800
156885505 ankush3287 D May 12, 2022, 5:16 a.m. OK GNU C++17 TESTS 12 15 204800
156877686 Nada_A7med D May 12, 2022, 2:15 a.m. OK GNU C++17 TESTS 12 15 204800
156860004 rurixx D May 11, 2022, 6:23 p.m. OK GNU C++17 TESTS 12 15 204800
156852237 imnasim3.1415 D May 11, 2022, 4:39 p.m. OK GNU C++17 (64) TESTS 12 15 204800
156830546 _Yeager_ D May 11, 2022, 12:34 p.m. OK GNU C++17 (64) TESTS 12 15 307200
156814577 Noman_Amin D May 11, 2022, 9:39 a.m. OK GNU C++17 (64) TESTS 12 15 307200
156798794 bhatta.subhro D May 11, 2022, 8:56 a.m. OK GNU C++17 (64) TESTS 12 15 307200
156790711 zhbbbb D May 11, 2022, 7:19 a.m. OK GNU C++17 (64) TESTS 12 15 307200
156788792 pragati_1111 D May 11, 2022, 6:54 a.m. OK GNU C++17 (64) TESTS 12 15 307200
156788918 isheoran D May 11, 2022, 6:56 a.m. OK GNU C++17 (64) TESTS 12 15 614400
156794329 jagerknight D May 11, 2022, 8:04 a.m. OK GNU C++17 (64) TESTS 12 15 614400
156814541 omar_walied_ismail D May 11, 2022, 9:39 a.m. OK GNU C++17 (64) TESTS 12 30 204800
156795338 l_pavan_l D May 11, 2022, 8:16 a.m. OK GNU C++17 (64) TESTS 12 30 614400
156846924 Pseudopro D May 11, 2022, 3:34 p.m. OK GNU C++20 (64) TESTS 12 15 204800
156845183 ErodeesFleurs D May 11, 2022, 3:13 p.m. OK GNU C++20 (64) TESTS 12 15 204800
156835008 NeZlox D May 11, 2022, 1:18 p.m. OK GNU C++20 (64) TESTS 12 15 204800
156827209 ScarletS D May 11, 2022, noon OK GNU C++20 (64) TESTS 12 15 204800
156868322 _Men3m D May 11, 2022, 8:45 p.m. OK GNU C++20 (64) TESTS 12 15 204800
156865340 TheRealZalata D May 11, 2022, 7:47 p.m. OK GNU C++20 (64) TESTS 12 15 204800
156847205 kuonji_ D May 11, 2022, 3:38 p.m. OK GNU C++20 (64) TESTS 12 15 204800
156855468 Jayesh_11 D May 11, 2022, 5:24 p.m. OK GNU C++20 (64) TESTS 12 15 204800
156883044 baby._.shadow D May 12, 2022, 4:26 a.m. OK GNU C++20 (64) TESTS 12 15 307200
156882897 Adhom D May 12, 2022, 4:23 a.m. OK GNU C++20 (64) TESTS 12 15 307200
156793938 debanjandhar12 D May 11, 2022, 7:59 a.m. OK Java 11 TESTS 12 156 0
156827145 SaberXpro D May 11, 2022, 11:59 a.m. OK Java 11 TESTS 12 186 0
156793272 Ma-XD D May 11, 2022, 7:50 a.m. OK Java 11 TESTS 12 187 0
156874002 MunirKP D May 12, 2022, midnight OK Java 11 TESTS 12 187 0
156856825 ayushgaur02 D May 11, 2022, 5:42 p.m. OK Java 11 TESTS 12 187 0
156856327 Sejs16 D May 11, 2022, 5:36 p.m. OK Java 11 TESTS 12 187 0
156830031 anmol.mact D May 11, 2022, 12:29 p.m. OK Java 11 TESTS 12 187 0
156827462 vdsh1214 D May 11, 2022, 12:03 p.m. OK Java 11 TESTS 12 187 0
156861906 Heisenburg-120 D May 11, 2022, 6:50 p.m. OK Java 11 TESTS 12 202 0
156850292 bbishwajit05 D May 11, 2022, 4:15 p.m. OK Java 11 TESTS 12 202 0
156877720 FirePegasus D May 12, 2022, 2:16 a.m. OK Java 8 TESTS 12 93 0
156828800 Youssef1Shawky D May 11, 2022, 12:17 p.m. OK Java 8 TESTS 12 93 0
156872506 ahmedtawfik D May 11, 2022, 10:51 p.m. OK Java 8 TESTS 12 109 0
156858816 salamatbek10 D May 11, 2022, 6:07 p.m. OK Java 8 TESTS 12 109 0
156836456 sharpen D May 11, 2022, 1:33 p.m. OK Java 8 TESTS 12 109 0
156833455 deepoX D May 11, 2022, 1:02 p.m. OK Java 8 TESTS 12 109 0
156827094 akshaykumar200042 D May 11, 2022, 11:59 a.m. OK Java 8 TESTS 12 109 0
156848183 AhmedEl-Gohary D May 11, 2022, 3:49 p.m. OK Java 8 TESTS 12 124 0
156843759 Biruk_z D May 11, 2022, 2:54 p.m. OK Java 8 TESTS 12 124 0
156842317 nithin_bharathi D May 11, 2022, 2:36 p.m. OK Java 8 TESTS 12 124 0
156823733 Killer_No.47 D May 11, 2022, 11:25 a.m. OK MS C++ 2017 TESTS 12 15 16179200
156885045 1_shivam D May 12, 2022, 5:07 a.m. OK MS C++ 2017 TESTS 12 46 204800
156838605 lyg3715371537 D May 11, 2022, 1:56 p.m. OK MS C++ 2017 TESTS 12 46 204800
156824645 Superlau D May 11, 2022, 11:35 a.m. OK MS C++ 2017 TESTS 12 46 204800
156796834 A_Pier D May 11, 2022, 8:33 a.m. OK MS C++ 2017 TESTS 12 46 204800
156852375 digjoynandi12 D May 11, 2022, 4:41 p.m. OK MS C++ 2017 TESTS 12 46 307200
156841976 CJXX D May 11, 2022, 2:32 p.m. OK MS C++ 2017 TESTS 12 46 307200
156790027 rudi_390 D May 11, 2022, 7:09 a.m. OK MS C++ 2017 TESTS 12 46 614400
156854514 Still_Theory D May 11, 2022, 5:11 p.m. OK MS C++ 2017 TESTS 12 46 1024000
156870458 bsherhj D May 11, 2022, 9:37 p.m. OK MS C++ 2017 TESTS 12 62 307200
156800124 XYShaoKang D May 11, 2022, 9:13 a.m. OK Node.js TESTS 12 109 5836800
156879388 yoralbayev D May 12, 2022, 3:01 a.m. OK PHP TESTS 12 61 5734400
156882979 voicon D May 12, 2022, 4:25 a.m. OK PyPy 3 TESTS 12 124 6348800
156818887 YashNandwana D May 11, 2022, 10:29 a.m. OK PyPy 3 TESTS 12 171 7168000
156853504 ambs_ D May 11, 2022, 4:57 p.m. OK PyPy 3 TESTS 12 187 7065600
156823287 NAVI_Perfecto D May 11, 2022, 11:20 a.m. OK PyPy 3 TESTS 12 217 7475200
156868649 FusEv1l D May 11, 2022, 8:53 p.m. OK PyPy 3 TESTS 12 248 8499200
156857253 manohar2509 D May 11, 2022, 5:47 p.m. OK PyPy 3 TESTS 12 249 7680000
156884409 quangltfsc0378 D May 12, 2022, 4:54 a.m. OK PyPy 3 TESTS 12 249 7884800
156874521 ttorpy D May 12, 2022, 12:21 a.m. OK PyPy 3 TESTS 12 265 9523200
156825481 kojihashimoto D May 11, 2022, 11:43 a.m. OK PyPy 3 TESTS 12 296 9318400
156868537 MistaAsh D May 11, 2022, 8:50 p.m. OK PyPy 3-64 TESTS 12 109 5120000
156804634 asdsasd D May 11, 2022, 9:25 a.m. OK PyPy 3-64 TESTS 12 109 6041600
156818942 jainmilind D May 11, 2022, 10:30 a.m. OK PyPy 3-64 TESTS 12 109 7987200
156794945 krasikoww D May 11, 2022, 8:11 a.m. OK PyPy 3-64 TESTS 12 124 8396800
156823611 Invinc3 D May 11, 2022, 11:24 a.m. OK PyPy 3-64 TESTS 12 155 10342400
156801046 abhaumik24 D May 11, 2022, 9:23 a.m. OK PyPy 3-64 TESTS 12 155 11264000
156818372 crapcode D May 11, 2022, 10:24 a.m. OK PyPy 3-64 TESTS 12 171 9318400
156836279 terasa D May 11, 2022, 1:31 p.m. OK PyPy 3-64 TESTS 12 171 9728000
156830128 abcsumit D May 11, 2022, 12:30 p.m. OK PyPy 3-64 TESTS 12 171 9932800
156854904 notTehlka D May 11, 2022, 5:16 p.m. OK PyPy 3-64 TESTS 12 187 9932800
156864650 LibH D May 11, 2022, 7:35 p.m. OK Python 3 TESTS 12 93 921600
156827242 Prokhor D May 11, 2022, noon OK Python 3 TESTS 12 93 921600
156800209 anis_oo3 D May 11, 2022, 9:14 a.m. OK Python 3 TESTS 12 93 1024000
156880866 cong.doan D May 12, 2022, 3:38 a.m. OK Python 3 TESTS 12 93 1331200
156861865 amanueldebebe1000 D May 11, 2022, 6:49 p.m. OK Python 3 TESTS 12 93 1331200
156850703 nabek D May 11, 2022, 4:20 p.m. OK Python 3 TESTS 12 93 1331200
156845748 bisrat_walle D May 11, 2022, 3:20 p.m. OK Python 3 TESTS 12 93 1331200
156843976 MILKIYAS_GEBRU D May 11, 2022, 2:57 p.m. OK Python 3 TESTS 12 93 1331200
156844740 Tesfay D May 11, 2022, 3:07 p.m. OK Python 3 TESTS 12 93 1638400
156853002 chris_pix D May 11, 2022, 4:50 p.m. OK Python 3 TESTS 12 108 921600

remove filters

Back to search problems