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.
Problems
B'On March 14, the day of the number pi is celebrated all over the world. This is a very important mathematical constant equal to the ratio of the circumference of a circle to its diameter. Polycarp was told at school that the number pi is irrational, therefore it has an infinite number of digits in decimal notation. He wanted to prepare for the Day of the number pi by memorizing this number as accurately as possible. Polycarp wrote out all the digits that he managed to remember. For example, if Polycarp remembered pi as 3.1415 , he wrote out 31415. Polycarp was in a hurry and could have made a mistake, so you decided to check how many first digits of the number pi Polycarp actually remembers correctly. The first line of the input data contains the single integer t ( 1 <= t <= 10^3 ) -- the number of test cases in the test. Each test case is described by a single string of digits n , which was written out by Polycarp. The string n contains up to 30 digits. Output t integers, each of which is the answer to the corresponding test case, that is how many first digits of the number pi Polycarp remembers correctly. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
190904029 |
ksandr1v |
A |
Jan. 27, 2023, 9:01 p.m. |
OK |
C# 10 |
TESTS |
3 |
31 |
0 |
|
|
190897964 |
mranter20 |
A |
Jan. 27, 2023, 7:36 p.m. |
OK |
C# 10 |
TESTS |
3 |
46 |
0 |
|
|
190907425 |
bluemegane |
A |
Jan. 27, 2023, 10:04 p.m. |
OK |
C# 8 |
TESTS |
3 |
140 |
0 |
|
|
190896167 |
Not_Khaled_Btw |
A |
Jan. 27, 2023, 7:16 p.m. |
OK |
Clang++17 Diagnostics |
TESTS |
3 |
30 |
0 |
|
|
190878149 |
anandkumarrana |
A |
Jan. 27, 2023, 4:56 p.m. |
OK |
Clang++17 Diagnostics |
TESTS |
3 |
46 |
0 |
|
|
190912564 |
Eliza_Re |
A |
Jan. 28, 2023, 12:24 a.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
31 |
0 |
|
|
190880800 |
WH_whm |
A |
Jan. 27, 2023, 5:09 p.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
31 |
0 |
|
|
190921133 |
aabc |
A |
Jan. 28, 2023, 3:54 a.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
46 |
0 |
|
|
190916322 |
TaylorFly |
A |
Jan. 28, 2023, 2:04 a.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
46 |
0 |
|
|
190916172 |
xiaomadada |
A |
Jan. 28, 2023, 2:01 a.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
46 |
0 |
|
|
190894106 |
NenadDapic |
A |
Jan. 27, 2023, 6:54 p.m. |
OK |
FPC |
TESTS |
3 |
15 |
0 |
|
|
190928335 |
iprom |
A |
Jan. 28, 2023, 5:30 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
190926382 |
The_Black_Mamba |
A |
Jan. 28, 2023, 5:08 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
190925057 |
ITworker_Z |
A |
Jan. 28, 2023, 4:53 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
190924227 |
fytftyf |
A |
Jan. 28, 2023, 4:42 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
190924172 |
y_kx_b |
A |
Jan. 28, 2023, 4:41 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
190924150 |
darpan1405 |
A |
Jan. 28, 2023, 4:40 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
190923302 |
after_dream |
A |
Jan. 28, 2023, 4:29 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
190922604 |
designed_story |
A |
Jan. 28, 2023, 4:19 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
190922300 |
aniket_gr8 |
A |
Jan. 28, 2023, 4:15 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
190922112 |
x_hun |
A |
Jan. 28, 2023, 4:12 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
remove filters
Back to search problems