Kotlin Heroes: Episode 3

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
1297 Kotlin Heroes: Episode 3 FINISHED False 9000 154542311 Feb. 27, 2020, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 943 ) A Likes Display PROGRAMMING *special implementation

B"Polycarp is working on the implementation of displaying likes on the Codehorses social network. The number of likes should be displayed in a format that will be easy to read by users. It was decided that for large numbers of likes the format should be like 123K (one hundred twenty-three thousand) or like 56M (fifty-six million). The following displaying strategy has been approved: Help Polycarp implement this part of the functionality: for a given non-negative integer number of likes n , print its view in the Codehorses interface. The first line contains an integer t ( 1 <= t <= 1000 ) -- the number of test cases in the input. The following are descriptions of the t input test cases, one per line. The description of each test case consists of a single line that contains a non-negative integer n ( 0 <= n <= 2 cdot10^9 ) -- the number of likes. Print t answers to the given test cases in the order from the input. Each printed value must have one of the following types: The answer is equal to a view which is the closest (by difference) to the given number n . If this rounding is ambiguous, then round answer up (to a greater value). Let's describe some test cases: "...

Tutorials

Kotlin Heroes: Episode 3 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
71976345 DanWallgun A Feb. 27, 2020, 1:43 p.m. OK Kotlin TESTS 12 108 0
71981247 dczhpx A Feb. 27, 2020, 2:33 p.m. OK Kotlin TESTS 12 108 0
71979164 falanga A Feb. 27, 2020, 2:10 p.m. OK Kotlin TESTS 12 109 0
71979158 EntryPoint A Feb. 27, 2020, 2:09 p.m. OK Kotlin TESTS 12 109 0
71978412 antoha.by A Feb. 27, 2020, 2:02 p.m. OK Kotlin TESTS 12 109 0
71978339 teeu A Feb. 27, 2020, 2:01 p.m. OK Kotlin TESTS 12 109 0
71977286 mr_d A Feb. 27, 2020, 1:51 p.m. OK Kotlin TESTS 12 109 0
71986664 Kenb A Feb. 27, 2020, 3:42 p.m. OK Kotlin TESTS 12 109 0
71976831 kenkoooo A Feb. 27, 2020, 1:47 p.m. OK Kotlin TESTS 12 109 0
71981217 pseuda A Feb. 27, 2020, 2:32 p.m. OK Kotlin TESTS 12 109 0

remove filters

Back to search problems