Codeforces Round 607 (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
1280 Codeforces Round 607 (Div. 1) FINISHED False 7200 155436899 Dec. 15, 2019, 5:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4007 ) B Beingawesomeism PROGRAMMING implementation math 1800

B"You are an all-powerful being and you have created a rectangular world. In fact, your world is so bland that it could be represented by a r x c grid. Each cell on the grid represents a country. Each country has a dominant religion. There are only two religions in your world. One of the religions is called Beingawesomeism, who do good for the sake of being good. The other religion is called Pushingittoofarism, who do murders for the sake of being bad. Oh, and you are actually not really all-powerful. You just have one power, which you can use infinitely many times! Your power involves missionary groups. When a missionary group of a certain country, say a , passes by another country b , they change the dominant religion of country b to the dominant religion of country a . In particular, a single use of your power is this: The following image illustrates one possible single usage of your power. Here, A represents a country with dominant religion Beingawesomeism and P represents a country with dominant religion Pushingittoofarism. Here, we've chosen a 1 x 4 subgrid, the direction NORTH, and s = 2 steps. You are a being which believes in free will, for the most part. However, you just really want to stop receiving murders that are attributed to your name. Hence, you decide to use your powers and try to make Beingawesomeism the dominant religion in every country. What is the minimum number of usages of your power needed to convert everyone to Beingawesomeism? With god, nothing is impossible. But maybe you're not god? If it is impossible to make Beingawesomeism the dominant religion in all countries, you must also admit your mortality and say so. The first line of input contains a single integer t ( 1 <= t <= 2 cdot 10^4 ) denoting the number of test cases. The first line of each test case contains two space-separated integers r and c denoting the dimensions of the grid ( 1 <= r, c <= "...

Tutorials

Codeforces Round #607 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
67069725 Mychael B Dec. 17, 2019, 12:21 p.m. OK GNU C++11 TESTS 42 46 0 1800
67062338 19n1900011773 B Dec. 17, 2019, 9:40 a.m. OK GNU C++11 TESTS 42 46 0 1800
67048430 Frame233 B Dec. 17, 2019, 1:41 a.m. OK GNU C++11 TESTS 42 46 0 1800
67047217 Frame233 B Dec. 16, 2019, 11:56 p.m. OK GNU C++11 TESTS 42 46 0 1800
67020310 rain__forest B Dec. 16, 2019, 12:45 p.m. OK GNU C++11 TESTS 42 46 0 1800
67004227 x_Yi_x B Dec. 16, 2019, 7:13 a.m. OK GNU C++11 TESTS 42 46 0 1800
66932175 Eipsilly B Dec. 15, 2019, 7:40 a.m. OK GNU C++11 TESTS 42 46 0 1800
67010175 xht37 B Dec. 16, 2019, 9:33 a.m. OK GNU C++11 TESTS 42 46 4198400 1800
66974289 nehnait B Dec. 15, 2019, 2:09 p.m. OK GNU C++11 TESTS 42 46 4198400 1800
66907579 lk_ZeroMaker B Dec. 15, 2019, 5:30 a.m. OK GNU C++11 TESTS 42 46 4198400 1800
66912147 idxcalcal B Dec. 15, 2019, 5:46 a.m. OK GNU C++14 TESTS 42 46 307200 1800
66909341 wleung_bvg B Dec. 15, 2019, 5:36 a.m. OK GNU C++14 TESTS 42 61 307200 1800
68444719 L0TUS B Jan. 9, 2020, 12:15 p.m. OK GNU C++14 TESTS 42 78 0 1800
66914093 lawfung B Dec. 15, 2019, 5:53 a.m. OK GNU C++14 TESTS 42 78 0 1800
68138778 solimm4sks B Jan. 3, 2020, 8:27 p.m. OK GNU C++14 TESTS 42 93 0 1800
67971137 lincolnx B Dec. 30, 2019, 3:03 p.m. OK GNU C++14 TESTS 42 93 0 1800
67865546 ltc.groverkss B Dec. 29, 2019, 9:34 a.m. OK GNU C++14 TESTS 42 93 0 1800
67279749 AceOfStrings B Dec. 20, 2019, 12:47 p.m. OK GNU C++14 TESTS 42 93 0 1800
67031042 demon12321 B Dec. 16, 2019, 3:51 p.m. OK GNU C++14 TESTS 42 93 0 1800
67005181 zeus_iitg B Dec. 16, 2019, 7:37 a.m. OK GNU C++14 TESTS 42 93 0 1800
67266428 Mohammad_Yasser B Dec. 20, 2019, 6:23 a.m. OK GNU C++17 TESTS 42 77 0 1800
67253260 arjunmajithia B Dec. 19, 2019, 8:13 p.m. OK GNU C++17 TESTS 42 77 0 1800
66995492 Intrincantation B Dec. 16, 2019, 12:51 a.m. OK GNU C++17 TESTS 42 77 0 1800
67320385 bhatnagar.mradul B Dec. 21, 2019, 7:48 a.m. OK GNU C++17 TESTS 42 78 0 1800
66933662 agtxdy B Dec. 15, 2019, 7:57 a.m. OK GNU C++17 TESTS 42 78 0 1800
68977023 i_am_noob B Jan. 17, 2020, 9:13 a.m. OK GNU C++17 TESTS 42 92 0 1800
67434787 achvanov B Dec. 22, 2019, 4:40 p.m. OK GNU C++17 TESTS 42 92 0 1800
69073251 summitwei B Jan. 19, 2020, 12:31 a.m. OK GNU C++17 TESTS 42 93 0 1800
68670102 AM. B Jan. 12, 2020, 4:33 p.m. OK GNU C++17 TESTS 42 93 0 1800
68345981 vinay2001 B Jan. 7, 2020, 7:16 a.m. OK GNU C++17 TESTS 42 93 0 1800
67496178 machhra B Dec. 23, 2019, 11:02 p.m. OK Java 11 TESTS 42 312 0 1800
67171308 CheesecakeRen B Dec. 18, 2019, 5:24 p.m. OK Java 11 TESTS 42 950 0 1800
67045779 beroul B Dec. 16, 2019, 10:08 p.m. OK Java 8 TESTS 42 171 0 1800
68369525 barakraganosungam B Jan. 7, 2020, 5:12 p.m. OK Java 8 TESTS 42 171 2048000 1800
66919294 nikolay.v.mikhaylov B Dec. 15, 2019, 6:15 a.m. OK Java 8 TESTS 42 187 0 1800
66908969 tanzaku B Dec. 15, 2019, 5:34 a.m. OK Java 8 TESTS 42 187 0 1800
67053663 StayAwayFromBitches B Dec. 17, 2019, 5:43 a.m. OK Java 8 TESTS 42 202 0 1800
66910594 cwise B Dec. 15, 2019, 5:40 a.m. OK Java 8 TESTS 42 202 23449600 1800
67041923 Megabyte B Dec. 16, 2019, 7:42 p.m. OK Java 8 TESTS 42 217 0 1800
67751528 flyingpurplepeopleeater B Dec. 27, 2019, 5:58 p.m. OK Java 8 TESTS 42 233 0 1800
66919803 AkshajK B Dec. 15, 2019, 6:17 a.m. OK Java 8 TESTS 42 249 0 1800
66918611 Nutella3000 B Dec. 15, 2019, 6:12 a.m. OK Java 8 TESTS 42 249 0 1800
68884635 Tlatoani B Jan. 15, 2020, 8:30 p.m. OK Kotlin TESTS 42 374 614400 1800
68080295 camypaper B Jan. 2, 2020, 2:07 p.m. OK Mono C# TESTS 42 312 56934400 1800
66934065 Apsara B Dec. 15, 2019, 8:01 a.m. OK MS C++ TESTS 42 155 0 1800
66912304 LoneFox B Dec. 15, 2019, 5:46 a.m. OK MS C++ TESTS 42 187 0 1800
69391492 Cods-CP B Jan. 23, 2020, 3:58 a.m. OK MS C++ TESTS 42 296 0 1800
67050663 pichulia B Dec. 17, 2019, 3:47 a.m. OK MS C++ 2017 TESTS 42 249 1024000 1800
66913978 nukeykt B Dec. 15, 2019, 5:53 a.m. OK MS C++ 2017 TESTS 42 264 0 1800
67255241 vpike B Dec. 19, 2019, 9:32 p.m. OK MS C++ 2017 TESTS 42 327 307200 1800
68653805 AleksanderBalobanov B Jan. 12, 2020, 11:36 a.m. OK MS C++ 2017 TESTS 42 436 0 1800
67456458 forestlightelf B Dec. 23, 2019, 7:07 a.m. OK MS C++ 2017 TESTS 42 748 307200 1800
68037115 MT_07 B Jan. 1, 2020, 12:36 p.m. OK MS C++ 2017 TESTS 42 764 102400 1800
68916697 yumtam B Jan. 16, 2020, 8:37 a.m. OK PyPy 2 TESTS 42 514 16076800 1800
68391068 shanu_im B Jan. 8, 2020, 8:40 a.m. OK PyPy 2 TESTS 42 577 47001600 1800
66911390 alexwice B Dec. 15, 2019, 5:43 a.m. OK PyPy 2 TESTS 42 607 25395200 1800
67988251 tycyd B Dec. 31, 2019, 1:42 a.m. OK PyPy 3 TESTS 42 670 10956800 1800
66913236 neterukun B Dec. 15, 2019, 5:50 a.m. OK PyPy 3 TESTS 42 872 11776000 1800
66931031 tamato B Dec. 15, 2019, 7:29 a.m. OK PyPy 3 TESTS 42 950 11161600 1800
66914878 auouo B Dec. 15, 2019, 5:56 a.m. OK PyPy 3 TESTS 42 1341 11366400 1800
68462608 shehebe B Jan. 9, 2020, 6:41 p.m. OK Python 2 TESTS 42 1637 614400 1800
67032667 martanmartan B Dec. 16, 2019, 4:21 p.m. OK Python 3 TESTS 42 1700 1126400 1800
67002520 vladmart B Dec. 16, 2019, 6:27 a.m. OK Python 3 TESTS 42 1700 1126400 1800
66992011 sansen B Dec. 15, 2019, 9:05 p.m. OK Rust TESTS 42 217 12595200 1800
66909930 sansen B Dec. 15, 2019, 5:38 a.m. OK Rust TESTS 42 233 12595200 1800
66915065 yuya178 B Dec. 15, 2019, 5:57 a.m. OK Rust TESTS 42 529 204800 1800

remove filters

Back to search problems