Codeforces Round 751 (Div. 1)

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
1601 Codeforces Round 751 (Div. 1) FINISHED False 7200 102036263 Oct. 25, 2021, 6:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 190 ) F Two Sorts PROGRAMMING binary search math 3400

B"Integers from 1 to n (inclusive) were sorted lexicographically (considering integers as strings). As a result, array a_1, a_2, ... , a_n was obtained. Calculate value of ( sum_{i = 1}^n ((i - a_i) mod 998244353)) mod 10^9 + 7 . x mod y here means the remainder after division x by y . This remainder is always non-negative and doesn't exceed y - 1 . For example, 5 mod 3 = 2 , (-1) mod 6 = 5 . The first line contains the single integer n ( 1 <= q n <= q 10^{12} ). Print one integer -- the required sum. A string a is lexicographically smaller than a string b if and only if one of the following holds: For example, 42 is lexicographically smaller than 6 , because they differ in the first digit, and 4 < 6 ; 42 < 420 , because 42 is a prefix of 420 . Let's denote 998244353 as M . In the first example, array a is equal to [1, 2, 3] . As a result, (0 + 0 + 0) mod 10^9 + 7 = 0 In the second example, array a is equal to [1, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9] . As a result, (0 + 998244345 + 998244345 + 998244345 + 3 + 3 + 3 + 3 + 3 + 3 + 3 + 3) mod 10^9 + 7 = 2994733059 mod 10^9 + 7 = 994733045 "...

Tutorials

95865

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
133083655 rainboy F Oct. 25, 2021, 4:08 p.m. OK GNU C11 TESTS 121 171 3686400 3400
133036776 Radewoosh F Oct. 25, 2021, 9:04 a.m. OK GNU C++14 TESTS 121 280 11059200 3400
133014822 ig-Rookie F Oct. 25, 2021, 8:03 a.m. OK GNU C++14 TESTS 121 1777 1024000 3400
133036741 djq_cpp F Oct. 25, 2021, 9:03 a.m. OK GNU C++17 TESTS 121 327 7680000 3400
133093105 leo10992 F Oct. 25, 2021, 5:18 p.m. OK GNU C++17 TESTS 121 342 7680000 3400
133107093 Retired_MiFaFaOvO F Oct. 25, 2021, 9:21 p.m. OK GNU C++17 (64) TESTS 121 155 8192000 3400
133059591 Alan233 F Oct. 25, 2021, 12:15 p.m. OK GNU C++17 (64) TESTS 121 171 7884800 3400
133059208 Alan233 F Oct. 25, 2021, 12:12 p.m. OK GNU C++17 (64) TESTS 121 187 7884800 3400
133072592 Newbie_Rainbow_sjy F Oct. 25, 2021, 2:24 p.m. OK GNU C++17 (64) TESTS 121 187 14848000 3400
133065642 orzdevinwang F Oct. 25, 2021, 1:11 p.m. OK GNU C++17 (64) TESTS 121 187 53145600 3400
133069863 HJKL1018 F Oct. 25, 2021, 1:53 p.m. OK GNU C++17 (64) TESTS 121 218 113459200 3400
133102060 oleh1421 F Oct. 25, 2021, 7:28 p.m. OK GNU C++17 (64) TESTS 121 249 1228800 3400
133112932 YLWang F Oct. 26, 2021, 1:31 a.m. OK GNU C++17 (64) TESTS 121 280 57446400 3400
133081515 cdkrot F Oct. 25, 2021, 3:47 p.m. OK GNU C++17 (64) TESTS 121 436 9216000 3400
133030850 ksun48 F Oct. 25, 2021, 8:29 a.m. OK GNU C++17 (64) TESTS 121 467 1228800 3400
133046625 Dmitriy.Belichenko F Oct. 25, 2021, 9:58 a.m. OK MS C++ 2017 TESTS 121 608 10649600 3400

remove filters

Back to search problems