Codeforces Round 677 (Div. 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
1433 Codeforces Round 677 (Div. 3) FINISHED False 7200 128618699 Oct. 20, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 53138 ) A Boring Apartments PROGRAMMING implementation math

B'There is a building consisting of 10~000 apartments numbered from 1 to 10~000 , inclusive. Call an apartment boring, if its number consists of the same digit. Examples of boring apartments are 11, 2, 777, 9999 and so on. Our character is a troublemaker, and he calls the intercoms of all boring apartments, till someone answers the call, in the following order: The resident of the boring apartment x answers the call, and our character stops calling anyone further. Our character wants to know how many digits he pressed in total and your task is to help him to count the total number of keypresses. For example, if the resident of boring apartment 22 answered, then our character called apartments with numbers 1, 11, 111, 1111, 2, 22 and the total number of digits he pressed is 1 + 2 + 3 + 4 + 1 + 2 = 13 . You have to answer t independent test cases. The first line of the input contains one integer t ( 1 <= t <= 36 ) -- the number of test cases. The only line of the test case contains one integer x ( 1 <= x <= 9999 ) -- the apartment number of the resident who answered the call. It is guaranteed that x consists of the same digit. For each test case, print the answer: how many digits our character pressed in total. '...

Tutorials

Codeforces Round #677 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
96176018 chirag_692001 A Oct. 20, 2020, 6 p.m. OK Clang++17 Diagnostics TESTS 2 31 0
96197289 JiangJinhui A Oct. 21, 2020, 2:32 a.m. OK Clang++17 Diagnostics TESTS 3 46 0
96202613 rexim A Oct. 21, 2020, 4:38 a.m. OK D TESTS 3 30 0
96169170 Blue_StormDragon A Oct. 20, 2020, 4:57 p.m. OK GNU C++11 TESTS 2 0 0
96193207 shammi08 A Oct. 21, 2020, 12:12 a.m. OK GNU C++11 TESTS 3 0 0
96179828 whirr A Oct. 20, 2020, 6:45 p.m. OK GNU C++11 TESTS 3 0 0
96169540 jmendoza A Oct. 20, 2020, 5 p.m. OK GNU C++11 TESTS 2 0 0
96196061 sxy666666 A Oct. 21, 2020, 1:59 a.m. OK GNU C++11 TESTS 3 0 409600
96168981 Alaa_hboubati A Oct. 20, 2020, 4:55 p.m. OK GNU C++11 TESTS 2 0 1228800
96206910 SHN31 A Oct. 21, 2020, 5:50 a.m. OK GNU C++11 TESTS 3 15 0
96207616 willtryagain A Oct. 21, 2020, 6:01 a.m. OK GNU C++11 TESTS 3 15 0
96207534 _Cheetos_ A Oct. 21, 2020, 6 a.m. OK GNU C++11 TESTS 3 15 0
96206894 ralu A Oct. 21, 2020, 5:50 a.m. OK GNU C++11 TESTS 3 15 0
96170696 pk.palakothari A Oct. 20, 2020, 5:09 p.m. OK GNU C++14 TESTS 2 0 0
96193900 nxl A Oct. 21, 2020, 12:42 a.m. OK GNU C++14 TESTS 3 0 0
96184933 radualberto28 A Oct. 20, 2020, 8:01 p.m. OK GNU C++14 TESTS 3 0 0
96184018 MElsharKawy A Oct. 20, 2020, 7:46 p.m. OK GNU C++14 TESTS 3 0 0
96176606 khushiagr99 A Oct. 20, 2020, 6:07 p.m. OK GNU C++14 TESTS 3 0 0
96175002 Ashiq420 A Oct. 20, 2020, 5:49 p.m. OK GNU C++14 TESTS 2 0 0
96173636 Second_id A Oct. 20, 2020, 5:35 p.m. OK GNU C++14 TESTS 2 0 0
96172685 krunaaal A Oct. 20, 2020, 5:26 p.m. OK GNU C++14 TESTS 2 0 0
96171505 sameer260 A Oct. 20, 2020, 5:16 p.m. OK GNU C++14 TESTS 2 0 0
96170879 codOR_221B A Oct. 20, 2020, 5:11 p.m. OK GNU C++14 TESTS 2 0 0
96179435 Joslie A Oct. 20, 2020, 6:40 p.m. OK .NET Core C# TESTS 3 77 0

remove filters

Back to search problems