Kotlin Heroes: Episode 8

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
1571 Kotlin Heroes: Episode 8 FINISHED False 9900 103649063 Oct. 7, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1371 ) A Sequence of Comparisons PROGRAMMING *special

B'Once upon a time, Petya had an array of integers a of length n . But over time, the array itself was lost, and only n-1 results of comparisons of neighboring array elements remained. In other words, for every i from 1 to n-1 , Petya knows exactly one of these three facts: Petya wonders if it is possible to uniquely determine the result of comparing a_1 and a_n . You have to help Petya determine the result of comparing a_1 and a_n or report that the result cannot be determined unambiguously. The first line contains a single integer t ( 1 <= t <= 500 ) -- the number of test cases. The only line of the test case contains the string s ( 1 <= |s| <= 100 ), where s_i is: For each test case, print a single string equal to: Consider the test cases of the example: '...

Tutorials

Kotlin Heroes 8 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
131077640 Bruteforcer101 A Oct. 7, 2021, 2:41 p.m. OK Kotlin 1.4 TESTS 5 93 20377600
131090295 19wh1a0514 A Oct. 7, 2021, 5:04 p.m. OK Kotlin 1.4 TESTS 5 93 20480000
131089235 lethan3 A Oct. 7, 2021, 4:39 p.m. OK Kotlin 1.4 TESTS 5 93 20480000
131083759 Tony1234_ A Oct. 7, 2021, 3:31 p.m. OK Kotlin 1.4 TESTS 5 93 20480000
131077697 saptarshi1729 A Oct. 7, 2021, 2:41 p.m. OK Kotlin 1.4 TESTS 5 93 20480000
131077390 nguyen31hoang08minh2003 A Oct. 7, 2021, 2:39 p.m. OK Kotlin 1.4 TESTS 5 93 20480000
131077373 sokian A Oct. 7, 2021, 2:39 p.m. OK Kotlin 1.4 TESTS 5 93 20480000
131077326 Valera_Grinenko A Oct. 7, 2021, 2:39 p.m. OK Kotlin 1.4 TESTS 5 93 20480000
131077146 songsinger A Oct. 7, 2021, 2:37 p.m. OK Kotlin 1.4 TESTS 5 93 20480000
131089095 elena_d A Oct. 7, 2021, 4:36 p.m. OK Kotlin 1.4 TESTS 5 93 20582400
131077131 Bench0310 A Oct. 7, 2021, 2:37 p.m. OK Kotlin 1.5 TESTS 5 171 0
131086075 FelixArg A Oct. 7, 2021, 3:52 p.m. OK Kotlin 1.5 TESTS 5 171 24883200
131077770 9646516 A Oct. 7, 2021, 2:42 p.m. OK Kotlin 1.5 TESTS 5 171 24883200
131077420 jainmilind A Oct. 7, 2021, 2:39 p.m. OK Kotlin 1.5 TESTS 5 171 24883200
131077396 bobib A Oct. 7, 2021, 2:39 p.m. OK Kotlin 1.5 TESTS 5 171 24883200
131105532 SlavaG A Oct. 7, 2021, 9:59 p.m. OK Kotlin 1.5 TESTS 5 186 0
131077508 Atul2608 A Oct. 7, 2021, 2:40 p.m. OK Kotlin 1.5 TESTS 5 186 0
131089568 rorione A Oct. 7, 2021, 4:51 p.m. OK Kotlin 1.5 TESTS 5 186 24780800
131088850 deepanshu_10 A Oct. 7, 2021, 4:30 p.m. OK Kotlin 1.5 TESTS 5 186 24780800
131085541 ash_98 A Oct. 7, 2021, 3:47 p.m. OK Kotlin 1.5 TESTS 5 186 24780800

remove filters

Back to search problems