Educational Codeforces Round 144 (Rated for Div. 2)

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
1796 Educational Codeforces Round 144 (Rated for Div. 2) FINISHED False 7200 59671463 Feb. 28, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 178 ) F Strange Triples PROGRAMMING math

B"Let's call a triple of positive integers ( a, b, n ) strange if the equality frac{an}{nb} = frac{a}{b} holds, where an is the concatenation of a and n and nb is the concatenation of n and b . For the purpose of concatenation, the integers are considered without leading zeroes. For example, if a = 1 , b = 5 and n = 9 , then the triple is strange, because frac{19}{95} = frac{1}{5} . But a = 7 , b = 3 and n = 11 is not strange, because frac{711}{113} ne frac{7}{3} . You are given three integers A , B and N . Calculate the number of strange triples (a, b, n ), such that 1 <= a < A , 1 <= b < B and 1 <= n < N . The only line contains three integers A , B and N ( 1 <= A, B <= 10^5 ; 1 <= N <= 10^9 ). Print one integer -- the number of strange triples (a, b, n ) such that 1 <= a < A , 1 <= b < B and 1 <= n < N . In the first example, there are 7 strange triples: (1, 1, 1 ), ( 1, 4, 6 ), ( 1, 5, 9 ), ( 2, 2, 2 ), ( 2, 5, 6 ), ( 3, 3, 3 ) and ( 4, 4, 4 ). "...

Tutorials

Educational Codeforces Round 144 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
195358131 54Michael F Feb. 28, 2023, 5:04 p.m. OK GNU C++17 (64) TESTS 36 7176 13824000
195352672 Rubikun F Feb. 28, 2023, 4:37 p.m. OK GNU C++17 (64) TESTS 36 7269 24166400
195362574 huangxiaohua F Feb. 28, 2023, 5:35 p.m. OK GNU C++20 (64) TESTS 36 1497 307200
195366568 Be_dos F Feb. 28, 2023, 6:07 p.m. OK GNU C++20 (64) TESTS 36 2214 141619200
195363403 54Michael F Feb. 28, 2023, 5:41 p.m. OK GNU C++20 (64) TESTS 36 2901 13721600
195359143 maspy F Feb. 28, 2023, 5:10 p.m. OK GNU C++20 (64) TESTS 36 3400 19660800
195382935 turmax F Feb. 28, 2023, 9 p.m. OK GNU C++20 (64) TESTS 36 4039 155648000
195362054 huangxiaohua F Feb. 28, 2023, 5:31 p.m. OK GNU C++20 (64) TESTS 36 6988 204800
195361519 huangxiaohua F Feb. 28, 2023, 5:27 p.m. OK GNU C++20 (64) TESTS 36 6988 307200
195396852 SugoiTurtle F March 1, 2023, 2:20 a.m. OK GNU C++20 (64) TESTS 36 7113 13721600
195407599 chengcheng5677 F March 1, 2023, 5:46 a.m. OK GNU C++20 (64) TESTS 36 7207 24166400
195382758 turmax F Feb. 28, 2023, 8:57 p.m. OK GNU C++20 (64) TESTS 36 8985 155648000
195404680 conqueror_of_tourist F March 1, 2023, 5:03 a.m. OK PyPy 3-64 TESTS 36 7534 89088000
195404485 conqueror_of_tourist F March 1, 2023, 5 a.m. OK PyPy 3-64 TESTS 36 7674 89088000

remove filters

Back to search problems