Codeforces Round 587 (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
1216 Codeforces Round 587 (Div. 3) FINISHED False 7200 168389687 Sept. 21, 2019, 7:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3500 ) E1 Numerical Sequence (easy version) PROGRAMMING binary search brute force math 1900

B'The only difference between the easy and the hard versions is the maximum value of k . You are given an infinite sequence of form "112123123412345 ... " which consist of blocks of all consecutive positive integers written one after another. The first block consists of all numbers from 1 to 1 , the second one -- from 1 to 2 , the third one -- from 1 to 3 , ... , the i -th block consists of all numbers from 1 to i . So the first 56 elements of the sequence are "11212312341234512345612345671234567812345678912345678910". Elements of the sequence are numbered from one. For example, the 1 -st element of the sequence is 1 , the 3 -rd element of the sequence is 2 , the 20 -th element of the sequence is 5 , the 38 -th element is 2 , the 56 -th element of the sequence is 0 . Your task is to answer q independent queries. In the i -th query you are given one integer k_i . Calculate the digit at the position k_i of the sequence. The first line of the input contains one integer q ( 1 <= q <= 500 ) -- the number of queries. The i -th of the following q lines contains one integer k_i (1 <= k_i <= 10^9) -- the description of the corresponding query. Print q lines. In the i -th line print one digit x_i (0 <= x_i <= 9) -- the answer to the query i , i.e. x_i should be equal to the element at the position k_i of the sequence. Answers on queries from the first example are described in the problem statement. '...

Tutorials

Codeforces Round #587 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
61117762 hunter_coder E1 Sept. 23, 2019, 1:26 p.m. OK Clang++17 Diagnostics TESTS 48 218 0 1900
69700540 rr_ E1 Jan. 28, 2020, 11:53 p.m. OK D TESTS 48 1185 4198400 1900
61032049 ruban E1 Sept. 21, 2019, 6:04 p.m. OK Delphi TESTS 48 31 138240000 1900
60995352 chinaxjh E1 Sept. 21, 2019, 8:48 a.m. OK FPC TESTS 48 78 6451200 1900
61021048 Thasnh_Chep_Code E1 Sept. 21, 2019, 2:36 p.m. OK FPC TESTS 48 1762 716800 1900
60994647 TShT E1 Sept. 21, 2019, 8:45 a.m. OK FPC TESTS 48 1777 716800 1900
61054921 YOK E1 Sept. 22, 2019, 7:45 a.m. OK GNU C11 TESTS 48 31 0 1900
61098631 weastur E1 Sept. 23, 2019, 5:22 a.m. OK GNU C11 TESTS 48 31 204800 1900
61061470 shenlihong E1 Sept. 22, 2019, 9:36 a.m. OK GNU C11 TESTS 48 46 409600 1900
61040633 Uzumaki_Narutoo E1 Sept. 21, 2019, 11:49 p.m. OK GNU C++11 TESTS 48 30 0 1900
65554600 birka0 E1 Nov. 22, 2019, 8:45 p.m. OK GNU C++11 TESTS 48 31 0 1900
65513071 inszva E1 Nov. 22, 2019, 5:20 a.m. OK GNU C++11 TESTS 48 31 0 1900
64640063 ACMman E1 Nov. 10, 2019, 12:50 p.m. OK GNU C++11 TESTS 48 31 0 1900
64292124 Dream-chasing_Juvenile E1 Nov. 5, 2019, 7:25 a.m. OK GNU C++11 TESTS 48 31 0 1900
63079871 vjudge4 E1 Oct. 21, 2019, 2:47 p.m. OK GNU C++11 TESTS 48 31 0 1900
62874695 emmmmmmm E1 Oct. 18, 2019, 2:55 p.m. OK GNU C++11 TESTS 48 31 0 1900
65749172 rama_pang E1 Nov. 26, 2019, 1:23 p.m. OK GNU C++11 TESTS 48 31 0 1900
66228205 mini4141 E1 Dec. 3, 2019, 1:25 p.m. OK GNU C++11 TESTS 48 31 0 1900
67581207 ChiNhan E1 Dec. 25, 2019, 6:10 a.m. OK GNU C++11 TESTS 48 31 0 1900
62829668 Andreasyan E1 Oct. 17, 2019, 7:18 p.m. OK GNU C++14 TESTS 48 15 204800 1900
64742248 sanskar27jain E1 Nov. 12, 2019, 12:21 p.m. OK GNU C++14 TESTS 48 30 0 1900
61347104 tokitsukaze E1 Sept. 27, 2019, 5:46 a.m. OK GNU C++14 TESTS 48 30 102400 1900
61106985 bensanhuan E1 Sept. 23, 2019, 9:37 a.m. OK GNU C++14 TESTS 48 30 102400 1900
61352124 KastinBaba E1 Sept. 27, 2019, 8:46 a.m. OK GNU C++14 TESTS 48 30 102400 1900
61560653 Mint_Dentifrice E1 Sept. 30, 2019, 3:26 p.m. OK GNU C++14 TESTS 48 30 409600 1900
61419249 kallolroy E1 Sept. 28, 2019, 11:16 a.m. OK GNU C++14 TESTS 48 30 1228800 1900
62107133 LanrTabe E1 Oct. 8, 2019, 11:09 a.m. OK GNU C++14 TESTS 48 30 1228800 1900
65556045 nitrousoxide E1 Nov. 22, 2019, 9:56 p.m. OK GNU C++14 TESTS 48 31 0 1900
69080346 vjudge3 E1 Jan. 19, 2020, 6:06 a.m. OK GNU C++14 TESTS 48 31 0 1900
62898645 cjnwq E1 Oct. 19, 2019, 2:40 a.m. OK GNU C++17 TESTS 48 15 0 1900
61049089 baozoudemolimao E1 Sept. 22, 2019, 5:48 a.m. OK GNU C++17 TESTS 48 15 204800 1900
61366742 TyFrendo E1 Sept. 27, 2019, 1:44 p.m. OK GNU C++17 TESTS 48 15 921600 1900
61555353 jeremy624lolz E1 Sept. 30, 2019, 1:51 p.m. OK GNU C++17 TESTS 48 30 0 1900
61524859 -messi- E1 Sept. 29, 2019, 9:22 p.m. OK GNU C++17 TESTS 48 30 0 1900
61050650 Jaydeep999997 E1 Sept. 22, 2019, 6:22 a.m. OK GNU C++17 TESTS 48 30 0 1900
66276442 vjudge3 E1 Dec. 4, 2019, 2:51 p.m. OK GNU C++17 TESTS 48 30 0 1900
64105751 FlowerOfSorrow E1 Nov. 2, 2019, 4:33 p.m. OK GNU C++17 TESTS 48 30 0 1900
62668004 ZhihuiLiu E1 Oct. 16, 2019, 8:35 a.m. OK GNU C++17 TESTS 48 30 0 1900
61948171 darele E1 Oct. 6, 2019, 1:43 a.m. OK GNU C++17 TESTS 48 30 0 1900
64504389 brosucks E1 Nov. 8, 2019, 6:10 a.m. OK Go TESTS 48 46 0 1900
64357366 IslamTalipovTop E1 Nov. 6, 2019, 10:42 a.m. OK Java 11 TESTS 48 296 0 1900
64441270 dyhu083 E1 Nov. 7, 2019, 4:27 a.m. OK Java 8 TESTS 48 109 0 1900
61186210 4mda4mda E1 Sept. 23, 2019, 10:55 p.m. OK Java 8 TESTS 48 109 0 1900
61089075 YahiaSherif E1 Sept. 22, 2019, 8:01 p.m. OK Java 8 TESTS 48 109 0 1900
62611302 Ruins E1 Oct. 15, 2019, 9:52 a.m. OK Java 8 TESTS 48 124 0 1900
62611239 Ruins E1 Oct. 15, 2019, 9:51 a.m. OK Java 8 TESTS 48 124 0 1900
62340727 eng_hardik E1 Oct. 11, 2019, 4:51 a.m. OK Java 8 TESTS 48 124 0 1900
61452119 K1K E1 Sept. 29, 2019, 3:51 a.m. OK Java 8 TESTS 48 124 0 1900
61173555 Agnimandur E1 Sept. 23, 2019, 5:02 p.m. OK Java 8 TESTS 48 124 0 1900
61080837 SecondThread E1 Sept. 22, 2019, 4:17 p.m. OK Java 8 TESTS 48 124 0 1900
61064779 chojh1222 E1 Sept. 22, 2019, 10:41 a.m. OK Java 8 TESTS 48 124 0 1900
61063335 Spheniscine E1 Sept. 22, 2019, 10:11 a.m. OK Kotlin TESTS 48 140 0 1900
61062117 Spheniscine E1 Sept. 22, 2019, 9:47 a.m. OK Kotlin TESTS 48 140 0 1900
61035745 Vesbat E1 Sept. 21, 2019, 7:45 p.m. OK Kotlin TESTS 48 155 0 1900
61166103 fredboy E1 Sept. 23, 2019, 4:08 p.m. OK Kotlin TESTS 48 186 921600 1900
62512467 og.kostya E1 Oct. 13, 2019, 1:39 p.m. OK Mono C# TESTS 48 61 0 1900
63380358 treasuryonly E1 Oct. 25, 2019, 12:17 p.m. OK Mono C# TESTS 48 62 0 1900
61017604 IlyaCk E1 Sept. 21, 2019, 1:46 p.m. OK Mono C# TESTS 48 92 0 1900
61807668 hloya E1 Oct. 3, 2019, 11:05 p.m. OK Mono C# TESTS 48 93 716800 1900
61322583 artworks E1 Sept. 26, 2019, 1 p.m. OK Mono C# TESTS 48 93 4608000 1900
61110702 nadilk E1 Sept. 23, 2019, 11:08 a.m. OK Mono C# TESTS 48 248 7168000 1900
66625741 vjudge1 E1 Dec. 11, 2019, 8:57 a.m. OK MS C++ TESTS 48 31 0 1900
66589081 vjudge3 E1 Dec. 10, 2019, 12:19 p.m. OK MS C++ TESTS 48 31 0 1900
63965999 vjudge1 E1 Nov. 1, 2019, 7:12 a.m. OK MS C++ TESTS 48 31 614400 1900
64746824 vjudge4 E1 Nov. 12, 2019, 1:50 p.m. OK MS C++ TESTS 48 31 819200 1900
62373480 MrBear E1 Oct. 11, 2019, 4:30 p.m. OK MS C++ TESTS 48 46 0 1900
61319347 vjudge5 E1 Sept. 26, 2019, 12:05 p.m. OK MS C++ TESTS 48 46 0 1900
61950366 vjudge4 E1 Oct. 6, 2019, 3:01 a.m. OK MS C++ TESTS 48 46 409600 1900
61336112 vjudge1 E1 Sept. 26, 2019, 4:28 p.m. OK MS C++ TESTS 48 46 716800 1900
64354415 vjudge2 E1 Nov. 6, 2019, 9:38 a.m. OK MS C++ TESTS 48 46 819200 1900
66596087 vjudge2 E1 Dec. 10, 2019, 2:43 p.m. OK MS C++ TESTS 48 46 20070400 1900
61365010 vjudge4 E1 Sept. 27, 2019, 1:15 p.m. OK MS C++ 2017 TESTS 48 31 0 1900
61415714 omerb.zeybek E1 Sept. 28, 2019, 10:11 a.m. OK MS C++ 2017 TESTS 48 31 0 1900
61548595 CPLNY E1 Sept. 30, 2019, 11:31 a.m. OK MS C++ 2017 TESTS 48 31 0 1900
63721666 vjudge3 E1 Oct. 29, 2019, 11:32 a.m. OK MS C++ 2017 TESTS 48 31 0 1900
63768470 _kong_ E1 Oct. 30, 2019, 7:04 a.m. OK MS C++ 2017 TESTS 48 31 0 1900
64858236 vjudge3 E1 Nov. 14, 2019, 1:09 a.m. OK MS C++ 2017 TESTS 48 31 0 1900
66204882 vjudge5 E1 Dec. 3, 2019, 1:33 a.m. OK MS C++ 2017 TESTS 48 31 0 1900
64313888 yuanyuan2048 E1 Nov. 5, 2019, 1:32 p.m. OK MS C++ 2017 TESTS 48 31 307200 1900
61069213 Ksenia_C E1 Sept. 22, 2019, 12:07 p.m. OK MS C++ 2017 TESTS 48 31 409600 1900
61539327 CPLNY E1 Sept. 30, 2019, 8:03 a.m. OK MS C++ 2017 TESTS 48 31 1228800 1900
62082064 zaceleiseliakai E1 Oct. 7, 2019, 9:28 p.m. OK PyPy 2 TESTS 48 171 9625600 1900
61039262 alexwice E1 Sept. 21, 2019, 10:11 p.m. OK PyPy 2 TESTS 48 186 1331200 1900
61006238 ssk497 E1 Sept. 21, 2019, 11:14 a.m. OK PyPy 2 TESTS 48 249 8089600 1900
62357421 titanlolcat E1 Oct. 11, 2019, 11:23 a.m. OK PyPy 2 TESTS 48 374 4403200 1900
62219541 ashok123 E1 Oct. 9, 2019, 5:03 p.m. OK PyPy 2 TESTS 48 608 9420800 1900
61010742 ssk497 E1 Sept. 21, 2019, 12:11 p.m. OK PyPy 2 TESTS 48 1762 16179200 1900
61006553 Mr.Inconsistent E1 Sept. 21, 2019, 11:18 a.m. OK PyPy 3 TESTS 48 171 8396800 1900
61229061 tjake E1 Sept. 24, 2019, 4:03 p.m. OK PyPy 3 TESTS 48 186 2457600 1900
60997756 iamrk E1 Sept. 21, 2019, 8:59 a.m. OK PyPy 3 TESTS 48 186 3584000 1900
61600031 manish.17 E1 Oct. 1, 2019, 10:32 a.m. OK PyPy 3 TESTS 48 187 2150400 1900
62675531 imnibo E1 Oct. 16, 2019, 11:19 a.m. OK PyPy 3 TESTS 48 187 2252800 1900
64796266 jyf111 E1 Nov. 13, 2019, 1 p.m. OK PyPy 3 TESTS 48 187 3788800 1900
61075154 tourist_plus_kan E1 Sept. 22, 2019, 2:09 p.m. OK PyPy 3 TESTS 48 202 2969600 1900
62687610 bit_2 E1 Oct. 16, 2019, 2:30 p.m. OK PyPy 3 TESTS 48 202 3584000 1900
61234772 smileyface E1 Sept. 24, 2019, 5:41 p.m. OK PyPy 3 TESTS 48 202 4300800 1900
66648910 Aloha E1 Dec. 11, 2019, 6:03 p.m. OK PyPy 3 TESTS 48 217 5632000 1900
61029024 mitribunskiy E1 Sept. 21, 2019, 5:01 p.m. OK Python 3 TESTS 48 140 1024000 1900
61539038 NocturneBflat E1 Sept. 30, 2019, 7:55 a.m. OK Python 3 TESTS 48 155 307200 1900
61353169 Code_Bear E1 Sept. 27, 2019, 9:18 a.m. OK Python 3 TESTS 48 155 307200 1900
60992999 MishaTheBest E1 Sept. 21, 2019, 8:37 a.m. OK Python 3 TESTS 48 155 409600 1900
61988237 happypotamus E1 Oct. 6, 2019, 2:15 p.m. OK Python 3 TESTS 48 155 512000 1900
61080611 Tayi_sid E1 Sept. 22, 2019, 4:11 p.m. OK Python 3 TESTS 48 155 512000 1900
61040718 FLOP E1 Sept. 21, 2019, 11:59 p.m. OK Python 3 TESTS 48 155 1433600 1900
61211088 Annvv E1 Sept. 24, 2019, 11:30 a.m. OK Python 3 TESTS 48 170 1433600 1900
60994978 Emiliatann E1 Sept. 21, 2019, 8:46 a.m. OK Python 3 TESTS 48 170 2048000 1900
61458458 namanjain2912 E1 Sept. 29, 2019, 7:30 a.m. OK Python 3 TESTS 48 171 1433600 1900
61035374 pragmatism0220 E1 Sept. 21, 2019, 7:31 p.m. OK Ruby TESTS 48 1887 0 1900
60989543 super_hook_girl_lover E1 Sept. 21, 2019, 8:22 a.m. OK Ruby TESTS 48 1996 0 1900
60992285 sansen E1 Sept. 21, 2019, 8:34 a.m. OK Rust TESTS 48 46 0 1900
61070488 ValenKof E1 Sept. 22, 2019, 12:34 p.m. OK Rust TESTS 48 187 10035200 1900

remove filters

Back to search problems