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
( 95 ) H Sum of Digits of Sums PROGRAMMING *special binary search data structures

B'You are given an array [a_1, a_2, ... , a_n] , consisting of positive integers. For every i from 1 to n , calculate sum limits_{j=1}^{n} F(a_i + a_j) , where F(x) is the sum of digits of x . The first line contains one integer n ( 2 <= n <= 2 cdot 10^5 ). The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i < 10^9 ). Print n integers. The i -th of them should be equal to sum limits_{j=1}^{n} F(a_i + a_j) . '...

Tutorials

123261

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
236812239 paula H Dec. 11, 2023, 4:54 p.m. OK Kotlin 1.7 TESTS 32 1403 168857600
236800508 arvindf232 H Dec. 11, 2023, 3:29 p.m. OK Kotlin 1.7 TESTS 32 1419 59392000
236806793 uwi H Dec. 11, 2023, 4:12 p.m. OK Kotlin 1.7 TESTS 32 1575 170188800
236802130 pashka H Dec. 11, 2023, 3:39 p.m. OK Kotlin 1.7 TESTS 32 1653 104243200
236836318 chappy1 H Dec. 11, 2023, 9:31 p.m. OK Kotlin 1.7 TESTS 32 2589 201728000
236810879 ripity H Dec. 11, 2023, 4:44 p.m. OK Kotlin 1.7 TESTS 32 2620 137011200
236809650 abc864197532 H Dec. 11, 2023, 4:34 p.m. OK Kotlin 1.7 TESTS 32 2995 227123200
236843669 cmk666 H Dec. 12, 2023, 1:06 a.m. OK Kotlin 1.7 TESTS 32 3041 241152000
236813202 happy.potato H Dec. 11, 2023, 5:01 p.m. OK Kotlin 1.7 TESTS 32 3603 291328000
236803747 Potassium H Dec. 11, 2023, 3:50 p.m. OK Kotlin 1.7 TESTS 32 3680 265420800
236828579 titia H Dec. 11, 2023, 7:35 p.m. OK Kotlin 1.9 TESTS 32 1637 148582400
236808513 JovanB H Dec. 11, 2023, 4:25 p.m. OK Kotlin 1.9 TESTS 32 2308 51916800
236799896 Tlatoani H Dec. 11, 2023, 3:25 p.m. OK Kotlin 1.9 TESTS 32 2480 182067200
236796424 tourist H Dec. 11, 2023, 3:05 p.m. OK Kotlin 1.9 TESTS 32 2557 295014400
236849622 Benq H Dec. 12, 2023, 3:34 a.m. OK Kotlin 1.9 TESTS 32 2869 294809600
236802020 errorgorn H Dec. 11, 2023, 3:39 p.m. OK Kotlin 1.9 TESTS 32 2932 182886400
236806324 Kude H Dec. 11, 2023, 4:08 p.m. OK Kotlin 1.9 TESTS 32 3150 172646400
236805874 smax H Dec. 11, 2023, 4:05 p.m. OK Kotlin 1.9 TESTS 32 3276 302080000
236811431 lightseba H Dec. 11, 2023, 4:48 p.m. OK Kotlin 1.9 TESTS 32 3478 123596800
236804647 cpchenpi H Dec. 11, 2023, 3:57 p.m. OK Kotlin 1.9 TESTS 32 3493 180838400

remove filters

Back to search problems