Kotlin Heroes: Episode 12

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
2087 Kotlin Heroes: Episode 12 FINISHED False 9000 32369123 April 7, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 1053 ) A Password Generator PROGRAMMING *special

Monocarp is going to register on the Codeforces website, but he can't come up with a sufficiently secure password. The requirements that his password must meet are as follows: the password must consist of digits, as well as uppercase and lowercase letters of the Latin alphabet; there must be exactly (a) digits, exactly (b) uppercase letters, and exactly (c) lowercase letters; for security, no two adjacent characters in the password should be the same. The lowercase and uppercase versions of the same letter are considered different characters. Write a program that generates a password that meets all the requirements. The first line contains a single integer (t) ((1 \le t \le 1000)) — the number of test cases. Each test case consists of one line containing three integers (a), (b), and (c) ((1 \le a, b, c \le 10)). For each test case, output one line containing any suitable password. It can be shown that there is always at least one password that meets the requirements.

Tutorials

141608

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
314386507 sherali11 A April 7, 2025, 3:32 p.m. OK Kotlin 1.7 TESTS 3 233 0
314377039 UniversalAdmin A April 7, 2025, 2:42 p.m. OK Kotlin 1.7 TESTS 3 233 0
314378095 svthegreat A April 7, 2025, 2:47 p.m. OK Kotlin 1.7 TESTS 3 233 307200
314377584 Kilo_5723 A April 7, 2025, 2:45 p.m. OK Kotlin 1.7 TESTS 3 233 409600
314379479 saikatsardar180 A April 7, 2025, 2:54 p.m. OK Kotlin 1.7 TESTS 3 233 512000
314395666 pendle_to_the_moon A April 7, 2025, 4:30 p.m. OK Kotlin 1.7 TESTS 3 234 0
314386374 kunalkhurana A April 7, 2025, 3:31 p.m. OK Kotlin 1.7 TESTS 3 234 307200
314386227 IshirPandey A April 7, 2025, 3:30 p.m. OK Kotlin 1.7 TESTS 3 234 614400
314377117 abhi_0324 A April 7, 2025, 2:42 p.m. OK Kotlin 1.7 TESTS 3 234 614400
314376230 nd2002 A April 7, 2025, 2:38 p.m. OK Kotlin 1.7 TESTS 3 234 1433600
314376660 Ra16bit A April 7, 2025, 2:40 p.m. OK Kotlin 1.9 TESTS 3 124 0
314376169 nuip A April 7, 2025, 2:38 p.m. OK Kotlin 1.9 TESTS 3 124 0
314376025 __baozii__ A April 7, 2025, 2:37 p.m. OK Kotlin 1.9 TESTS 3 124 0
314388059 lto5 A April 7, 2025, 3:41 p.m. OK Kotlin 1.9 TESTS 3 140 0
314377140 Vulkan_ A April 7, 2025, 2:42 p.m. OK Kotlin 1.9 TESTS 3 140 0
314376979 thenymphsofdelphi A April 7, 2025, 2:42 p.m. OK Kotlin 1.9 TESTS 3 140 0
314376259 nik_exists A April 7, 2025, 2:38 p.m. OK Kotlin 1.9 TESTS 3 140 0
314376154 sahasrad A April 7, 2025, 2:38 p.m. OK Kotlin 1.9 TESTS 3 140 0
314376140 tabr A April 7, 2025, 2:38 p.m. OK Kotlin 1.9 TESTS 3 140 0
314375754 arvindf232 A April 7, 2025, 2:36 p.m. OK Kotlin 1.9 TESTS 3 140 204800

remove filters

Back to search problems