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 |
---|---|---|---|---|---|---|
1533 | Kotlin Heroes: Episode 7 | FINISHED | False | 9000 | 106845899 | June 29, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 90 ) | G | Biome Map | PROGRAMMING | *special constructive algorithms dfs and similar graphs |
B'Polycarp decided to generate a biome map for his game. A map is a matrix divided into cells 1 x 1 . Each cell of the map must contain one of the available biomes. Each biome is defined by two parameters: temperature (an integer from 1 to n ) and humidity (an integer from 1 to m ). But not for every temperature/humidity combination, a corresponding biome is available. The biome map should be generated according to the following rules: Help Polycarp generate a biome map that meets all the conditions described above (or report that this is impossible). The first line contains a single integer t ( 1 <= t <= 20 ) -- the number of test cases. The first line of each test case contains two integers n and m ( 1 <= n, m <= 10 ) -- maximum temperature and humidity parameters. The following n lines contain m integers each a_{i,1}, a_{i, 2}, ... , a_{i, m} ( 0 <= a_{i, j} <= 100 ), where a_{i, j} -- the biome identifier with the parameters (i, j) , if a_{i, j} neq 0 , otherwise the biome with such parameters is not available. All biome identifiers are different, and there are at least two biomes available. For each test case, print the answer in the following format: '... |
Kotlin Heroes 7 — Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
120920518 | b2jena | G | June 30, 2021, 4:12 a.m. | OK | Kotlin | TESTS | 14 | 109 | 0 | ||
120897959 | Jatana | G | June 29, 2021, 5:01 p.m. | OK | Kotlin | TESTS | 14 | 124 | 0 | ||
120896591 | galen_colin | G | June 29, 2021, 4:45 p.m. | OK | Kotlin | TESTS | 14 | 124 | 0 | ||
120893845 | firiexp | G | June 29, 2021, 4:13 p.m. | OK | Kotlin | TESTS | 14 | 124 | 0 | ||
120887515 | Petr | G | June 29, 2021, 3:08 p.m. | OK | Kotlin | TESTS | 14 | 124 | 0 | ||
120916407 | Spheniscine | G | June 30, 2021, 2:10 a.m. | OK | Kotlin | TESTS | 14 | 124 | 614400 | ||
120891280 | pashka | G | June 29, 2021, 3:45 p.m. | OK | Kotlin | TESTS | 14 | 155 | 0 | ||
120897689 | Moririn2528 | G | June 29, 2021, 4:58 p.m. | OK | Kotlin | TESTS | 14 | 155 | 102400 | ||
120893551 | timmyfeng | G | June 29, 2021, 4:10 p.m. | OK | Kotlin | TESTS | 14 | 155 | 307200 | ||
120897239 | Dart-Xeyter | G | June 29, 2021, 4:53 p.m. | OK | Kotlin | TESTS | 14 | 155 | 512000 |
Back to search problems