Kotlin Heroes: Episode 9 (Unrated, T-Shirts + Prizes!)

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
1910 Kotlin Heroes: Episode 9 (Unrated, T-Shirts + Prizes!) FINISHED False 9000 34874663 Dec. 11, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1826 ) A Username PROGRAMMING *special implementation

B'On the official website of Berland, each account has two parameters: username and ID. Username is a string consisting of lowercase Latin letters and/or digits, which contains at least one letter. For example, user0, 1fox1, zzzz are correct usernames, but 1337 and User22 are not. The ID of the account for a given username is generated as follows: a positive integer without leading zeroes is appended to the end of the username. For example, the ID user0125 can be generated by the following usernames: user012, user01, user0; but neither by user nor us. You are given a string s -- a valid ID. Your task is to determine any valid username that can generate the given ID. If there are several correct usernames, you can print any of them. The first line contains a single integer t ( 1 <= t <= 10^3 ) -- the number of test cases. The only line of each test case contains a string s ( 2 <= |s| <= 50 ), consisting of lowercase Latin letters and/or digits. Additional constraint on input: there is at least one valid username that can generate the given ID. For each test case on a separate line, print a string -- any valid username that can generate the given ID. If there are multiple correct usernames, you can print any of them. '...

Tutorials

123261

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
236790869 MagentaCobra A Dec. 11, 2023, 2:38 p.m. OK Kotlin 1.7 TESTS 6 186 0
236792615 oneku16 A Dec. 11, 2023, 2:46 p.m. OK Kotlin 1.7 TESTS 6 202 0
236791190 alexey.enkov A Dec. 11, 2023, 2:40 p.m. OK Kotlin 1.7 TESTS 6 202 0
236791136 navneet_1234 A Dec. 11, 2023, 2:39 p.m. OK Kotlin 1.7 TESTS 6 217 0
236790951 dCoding A Dec. 11, 2023, 2:38 p.m. OK Kotlin 1.7 TESTS 6 218 0
236813392 Edu175 A Dec. 11, 2023, 5:03 p.m. OK Kotlin 1.7 TESTS 6 233 0
236809785 ShlokG A Dec. 11, 2023, 4:35 p.m. OK Kotlin 1.7 TESTS 6 233 0
236807694 _Anton A Dec. 11, 2023, 4:18 p.m. OK Kotlin 1.7 TESTS 6 233 0
236795755 rscprof A Dec. 11, 2023, 3:01 p.m. OK Kotlin 1.7 TESTS 6 233 0
236793769 Aabhas99 A Dec. 11, 2023, 2:51 p.m. OK Kotlin 1.7 TESTS 6 233 0
236795331 varundeepsaini A Dec. 11, 2023, 2:59 p.m. OK Kotlin 1.9 TESTS 6 218 0
236832777 01x_flash A Dec. 11, 2023, 8:32 p.m. OK Kotlin 1.9 TESTS 6 233 0
236803055 2wasted A Dec. 11, 2023, 3:45 p.m. OK Kotlin 1.9 TESTS 6 233 0
236791341 points_engineering A Dec. 11, 2023, 2:40 p.m. OK Kotlin 1.9 TESTS 6 233 0
236790603 nuip A Dec. 11, 2023, 2:37 p.m. OK Kotlin 1.9 TESTS 6 233 0
236790863 smax A Dec. 11, 2023, 2:38 p.m. OK Kotlin 1.9 TESTS 6 233 102400
236799035 GrandTiger1729 A Dec. 11, 2023, 3:20 p.m. OK Kotlin 1.9 TESTS 6 233 204800
236809130 MeetBrahmbhatt A Dec. 11, 2023, 4:29 p.m. OK Kotlin 1.9 TESTS 6 233 3788800
236855285 dyc123 A Dec. 12, 2023, 5:16 a.m. OK Kotlin 1.9 TESTS 6 234 0
236791257 Ji_Kuai A Dec. 11, 2023, 2:40 p.m. OK Kotlin 1.9 TESTS 6 234 0

remove filters

Back to search problems