Codeforces Round 709 (Div. 2, based on Technocup 2021 Final Round)

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
1484 Codeforces Round 709 (Div. 2, based on Technocup 2021 Final Round) FINISHED False 8100 115490399 March 21, 2021, 1:20 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11270 ) A Prison Break PROGRAMMING

B"Michael is accused of violating the social distancing rules and creating a risk of spreading coronavirus. He is now sent to prison. Luckily, Michael knows exactly what the prison looks like from the inside, especially since it's very simple. The prison can be represented as a rectangle a x b which is divided into ab cells, each representing a prison cell, common sides being the walls between cells, and sides on the perimeter being the walls leading to freedom. Before sentencing, Michael can ask his friends among the prison employees to make (very well hidden) holes in some of the walls (including walls between cells and the outermost walls). Michael wants to be able to get out of the prison after this, no matter which cell he is placed in. However, he also wants to break as few walls as possible. Your task is to find out the smallest number of walls to be broken so that there is a path to the outside from every cell after this. The first line contains a single integer t ( 1 <= q t <= q 100 ) -- the number of test cases. Each of the following t lines contains two integers a and b ( 1 <= q a, b <= q 100 ), representing a corresponding test case. For each test case print the single integer on a separate line -- the answer to the problem. Some possible escape plans for the example test cases are shown below. Broken walls are shown in gray, not broken walls are shown in black. "...

Tutorials

Technocup 2021: Final Round and Codeforces Round #709 — tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
110666491 1803_Srijita A March 21, 2021, 3:22 p.m. OK GNU C11 TESTS 9 15 0
110675384 pratyushgupta102 A March 21, 2021, 5:27 p.m. OK GNU C11 TESTS 9 15 0
110676818 zmengaf A March 21, 2021, 5:48 p.m. OK GNU C11 TESTS 9 15 0
110680568 Abdullah1211 A March 21, 2021, 6:42 p.m. OK GNU C11 TESTS 9 15 0
110682734 Samar23 A March 21, 2021, 7:22 p.m. OK GNU C11 TESTS 9 15 0
110682953 tasnifsimanto99 A March 21, 2021, 7:26 p.m. OK GNU C11 TESTS 9 15 0
110701516 it_vineh_ A March 22, 2021, 5:45 a.m. OK GNU C11 TESTS 9 15 0
110718693 sr_ram A March 22, 2021, 9:37 a.m. OK GNU C11 TESTS 9 15 0
110781908 18Michael A March 23, 2021, 4:56 a.m. OK GNU C++11 TESTS 9 15 0
110781788 ritchie_zhang A March 23, 2021, 4:53 a.m. OK GNU C++11 TESTS 9 15 0
110782632 Lvshujun A March 23, 2021, 5:12 a.m. OK GNU C++11 TESTS 9 15 0
110785541 CSU_WJJJ A March 23, 2021, 6:02 a.m. OK GNU C++11 TESTS 9 15 0
110785307 200110 A March 23, 2021, 5:58 a.m. OK GNU C++11 TESTS 9 15 0
110784858 JNU_dh_AK_WF A March 23, 2021, 5:52 a.m. OK GNU C++11 TESTS 9 15 0
110782954 stronx A March 23, 2021, 5:18 a.m. OK GNU C++11 TESTS 9 15 0
110782391 nalemy A March 23, 2021, 5:07 a.m. OK GNU C++11 TESTS 9 15 0
110782219 starx342 A March 23, 2021, 5:03 a.m. OK GNU C++11 TESTS 9 15 0
110781977 _the_ripper_ A March 23, 2021, 4:57 a.m. OK GNU C++11 TESTS 9 15 0
110767207 Haidar.ALi A March 22, 2021, 7:43 p.m. OK GNU C++14 TESTS 9 15 0
110769578 abhi_sinha60 A March 22, 2021, 8:38 p.m. OK GNU C++14 TESTS 9 15 0
110774252 irreversible A March 22, 2021, 11:47 p.m. OK GNU C++14 TESTS 9 15 0
110777191 Winnerdevil A March 23, 2021, 2:21 a.m. OK GNU C++14 TESTS 9 15 0
110763336 priti44 A March 22, 2021, 6:34 p.m. OK GNU C++14 TESTS 9 15 0
110764581 YUVI2412IITISM A March 22, 2021, 6:54 p.m. OK GNU C++14 TESTS 9 15 0
110761916 Agarwal.Vineet_99 A March 22, 2021, 6:13 p.m. OK GNU C++14 TESTS 9 15 0
110759970 fahimmahmud A March 22, 2021, 5:44 p.m. OK GNU C++14 TESTS 9 15 0
110778707 _i_m_noob A March 23, 2021, 3:15 a.m. OK GNU C++14 TESTS 9 15 0
110784688 sumit1311singh A March 23, 2021, 5:49 a.m. OK GNU C++14 TESTS 9 15 0
110782140 WitcherG A March 23, 2021, 5:01 a.m. OK GNU C++17 TESTS 9 15 0
110780678 simply_hooman A March 23, 2021, 4:26 a.m. OK GNU C++17 TESTS 9 15 0
110780645 ayushzaveri05 A March 23, 2021, 4:25 a.m. OK GNU C++17 TESTS 9 15 0
110779813 Davinci_ccu A March 23, 2021, 3:59 a.m. OK GNU C++17 TESTS 9 15 0
110779703 haribhatt34 A March 23, 2021, 3:55 a.m. OK GNU C++17 TESTS 9 15 0
110779553 cjcoax A March 23, 2021, 3:49 a.m. OK GNU C++17 TESTS 9 15 0
110778876 pkl1 A March 23, 2021, 3:21 a.m. OK GNU C++17 TESTS 9 15 0
110778719 yp666 A March 23, 2021, 3:15 a.m. OK GNU C++17 TESTS 9 15 0
110784647 shivamsinghal1012 A March 23, 2021, 5:49 a.m. OK GNU C++17 TESTS 9 15 0
110781967 cslg093119122 A March 23, 2021, 4:57 a.m. OK GNU C++17 TESTS 9 15 0
110780597 ProfessorChaos A March 23, 2021, 4:23 a.m. OK GNU C++17 (64) TESTS 9 15 0
110781134 hao_qing233 A March 23, 2021, 4:38 a.m. OK GNU C++17 (64) TESTS 9 15 0
110776536 shenmadongdong A March 23, 2021, 1:53 a.m. OK GNU C++17 (64) TESTS 9 15 0
110775830 brobat A March 23, 2021, 1:22 a.m. OK GNU C++17 (64) TESTS 9 15 0
110769470 Mohamm A March 22, 2021, 8:35 p.m. OK GNU C++17 (64) TESTS 9 15 0
110765658 K_r1_T A March 22, 2021, 7:13 p.m. OK GNU C++17 (64) TESTS 9 15 0
110764233 suta A March 22, 2021, 6:49 p.m. OK GNU C++17 (64) TESTS 9 15 0
110762372 suraj429 A March 22, 2021, 6:20 p.m. OK GNU C++17 (64) TESTS 9 15 0
110758701 tonyli00000 A March 22, 2021, 5:27 p.m. OK GNU C++17 (64) TESTS 9 15 0
110758613 Anas-Kudsi A March 22, 2021, 5:26 p.m. OK GNU C++17 (64) TESTS 9 15 0
110694578 pikachu_pika_pika A March 22, 2021, 3:13 a.m. OK Java 11 TESTS 9 156 0
110702307 CrinklyGolem A March 22, 2021, 5:58 a.m. OK Java 11 TESTS 9 171 0
110784557 rohit_03012002 A March 23, 2021, 5:47 a.m. OK Java 11 TESTS 9 171 0
110732195 typewriter999 A March 22, 2021, 12:11 p.m. OK Java 11 TESTS 9 171 0
110716933 disasterhhp A March 22, 2021, 9:16 a.m. OK Java 11 TESTS 9 171 0
110694256 bluesky111 A March 22, 2021, 3:03 a.m. OK Java 11 TESTS 9 171 0
110693518 Nick A March 22, 2021, 2:40 a.m. OK Java 11 TESTS 9 171 0
110686166 bobbilyking A March 21, 2021, 8:47 p.m. OK Java 11 TESTS 9 171 0
110684915 kumarsaksham54 A March 21, 2021, 8:11 p.m. OK Java 11 TESTS 9 171 0
110683260 diwakargupta815 A March 21, 2021, 7:32 p.m. OK Java 11 TESTS 9 171 0
110778781 ezraft A March 23, 2021, 3:17 a.m. OK Java 8 TESTS 9 93 0
110677678 VishuTomar A March 21, 2021, 6:01 p.m. OK Java 8 TESTS 9 93 0
110696201 rw6 A March 22, 2021, 3:57 a.m. OK Java 8 TESTS 9 108 0
110685848 aadit.ambadkar A March 21, 2021, 8:38 p.m. OK Java 8 TESTS 9 108 0
110782259 toretto_011 A March 23, 2021, 5:04 a.m. OK Java 8 TESTS 9 108 0
110773308 2020akadaver A March 22, 2021, 10:50 p.m. OK Java 8 TESTS 9 108 0
110761211 naman5811 A March 22, 2021, 6:03 p.m. OK Java 8 TESTS 9 109 0
110734980 DA_ARYA A March 22, 2021, 12:42 p.m. OK Java 8 TESTS 9 109 0
110776366 krishnareddy.nancheri A March 23, 2021, 1:46 a.m. OK Java 8 TESTS 9 109 0
110756984 AffanAhmed A March 22, 2021, 5:03 p.m. OK Java 8 TESTS 9 109 0
110742396 areniis A March 22, 2021, 2:05 p.m. OK Kotlin TESTS 9 109 0
110769190 koper A March 22, 2021, 8:28 p.m. OK Kotlin TESTS 9 124 0
110696943 aliyoungprog A March 22, 2021, 4:16 a.m. OK Kotlin TESTS 9 140 0
110714404 TRR A March 22, 2021, 8:45 a.m. OK Mono C# TESTS 9 46 204800
110702822 fr0st A March 22, 2021, 6:06 a.m. OK Mono C# TESTS 9 46 204800
110679057 davidzhangsan A March 21, 2021, 6:20 p.m. OK MS C++ TESTS 9 15 0
110784031 taozhiyaoyai A March 23, 2021, 5:39 a.m. OK MS C++ 2017 TESTS 9 15 0
110776643 lrb666 A March 23, 2021, 1:58 a.m. OK MS C++ 2017 TESTS 9 15 0
110732204 niufujiang A March 22, 2021, 12:11 p.m. OK MS C++ 2017 TESTS 9 15 0
110727143 kurs A March 22, 2021, 11:20 a.m. OK MS C++ 2017 TESTS 9 15 0
110715274 NoiseLess A March 22, 2021, 8:55 a.m. OK MS C++ 2017 TESTS 9 15 0
110688626 Aman-salman A March 21, 2021, 11:03 p.m. OK MS C++ 2017 TESTS 9 15 0
110665527 theMysterious A March 21, 2021, 3:19 p.m. OK MS C++ 2017 TESTS 9 15 0
110664026 sshantorrohmat A March 21, 2021, 3:13 p.m. OK MS C++ 2017 TESTS 9 15 0
110689621 CWJ_123 A March 21, 2021, 11:50 p.m. OK MS C++ 2017 TESTS 9 15 307200
110747239 Aditya_Mishra A March 22, 2021, 3:01 p.m. OK MS C++ 2017 TESTS 9 30 0
110728428 TheKondr A March 22, 2021, 11:33 a.m. OK .NET Core C# TESTS 9 93 0
110703252 Not_Mighty_Pen A March 22, 2021, 6:12 a.m. OK .NET Core C# TESTS 9 93 102400
110695263 MadinaN A March 22, 2021, 3:32 a.m. OK PHP TESTS 9 31 0
110676719 krishna369 A March 21, 2021, 5:46 p.m. OK PyPy 3 TESTS 9 77 0
110678767 varsha765.vc A March 21, 2021, 6:16 p.m. OK PyPy 3 TESTS 9 92 0
110672286 YuriAndropov A March 21, 2021, 4:45 p.m. OK PyPy 3 TESTS 9 92 0
110684621 skp_r A March 21, 2021, 8:04 p.m. OK PyPy 3 TESTS 9 92 0
110757468 AggarwalRaghav A March 22, 2021, 5:09 p.m. OK PyPy 3 TESTS 9 92 0
110737764 MchandT A March 22, 2021, 1:12 p.m. OK PyPy 3 TESTS 9 92 0
110685512 dush1729 A March 21, 2021, 8:29 p.m. OK PyPy 3 TESTS 9 92 0
110785175 Sun_An A March 23, 2021, 5:56 a.m. OK PyPy 3 TESTS 9 93 0
110782751 THEarchitect A March 23, 2021, 5:14 a.m. OK PyPy 3 TESTS 9 93 0
110765278 titia A March 22, 2021, 7:06 p.m. OK PyPy 3 TESTS 9 93 0
110738267 RAJ_DAS A March 22, 2021, 1:18 p.m. OK Python 2 TESTS 9 62 0
110699330 sidagg_nith A March 22, 2021, 5:08 a.m. OK Python 3 TESTS 9 46 0
110710106 yygq A March 22, 2021, 7:50 a.m. OK Python 3 TESTS 9 46 0
110703955 sh1194 A March 22, 2021, 6:22 a.m. OK Python 3 TESTS 9 46 0
110703448 magpie_robin A March 22, 2021, 6:15 a.m. OK Python 3 TESTS 9 46 0
110703384 AGZubkova A March 22, 2021, 6:14 a.m. OK Python 3 TESTS 9 46 0
110676884 thErocKstaR A March 21, 2021, 5:49 p.m. OK Python 3 TESTS 9 46 0
110739225 a_a_b_c_123 A March 22, 2021, 1:28 p.m. OK Python 3 TESTS 9 61 0
110707303 Saucemaster102 A March 22, 2021, 7:11 a.m. OK Python 3 TESTS 9 61 0
110778144 jayeshmaheshwari555 A March 23, 2021, 2:58 a.m. OK Python 3 TESTS 9 61 0
110739555 hath19260817 A March 22, 2021, 1:32 p.m. OK Python 3 TESTS 9 61 0
110681742 MvKaio A March 21, 2021, 7:03 p.m. OK Ruby 3 TESTS 9 234 204800

remove filters

Back to search problems