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'It 's tough to be a superhero. And it 's twice as tough to resist the supervillain who is cool at math. Suppose that you 're an ordinary Batman in an ordinary city of Gotham. Your enemy Joker mined the building of the city administration and you only have several minutes to neutralize the charge. To do that you should enter the cancel code on the bomb control panel. However, that mad man decided to give you a hint. This morning the mayor found a playing card under his pillow. There was a line written on the card: The bomb has a note saying "J(x) xe2 x80 x89= xe2 x80 x89A", where A is some positive integer. You suspect that the cancel code is some integer x that meets the equation J(x) xe2 x80 x89= xe2 x80 x89A. Now in order to decide whether you should neutralize the bomb or run for your life, you 've got to count how many distinct positive integers x meet this equation. The single line of the input contains a single integer A (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89A xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891012). Print the number of solutions of the equation J(x) xe2 x80 x89= xe2 x80 x89A. Record x|n means that number n divides number x. is defined as the largest positive integer that divides both a and b. In the first sample test the only suitable value of x is 2. Then J(2) xe2 x80 x89= xe2 x80 x891 xe2 x80 x89+ xe2 x80 x892. In the second sample test the following values of x match:'... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
10997435 |
sgtlaugh |
D |
May 4, 2015, 4:04 p.m. |
OK |
GNU C |
TESTS |
84 |
1872 |
10547200 |
|
2600 |
10997316 |
sgtlaugh |
D |
May 4, 2015, 3:47 p.m. |
OK |
GNU C |
TESTS |
84 |
1872 |
10547200 |
|
2600 |
10997339 |
sgtlaugh |
D |
May 4, 2015, 3:50 p.m. |
OK |
GNU C |
TESTS |
84 |
1872 |
30617600 |
|
2600 |
10997402 |
sgtlaugh |
D |
May 4, 2015, 3:59 p.m. |
OK |
GNU C |
TESTS |
84 |
1887 |
10547200 |
|
2600 |
10997361 |
sgtlaugh |
D |
May 4, 2015, 3:54 p.m. |
OK |
GNU C |
TESTS |
84 |
1903 |
10547200 |
|
2600 |
10997346 |
sgtlaugh |
D |
May 4, 2015, 3:52 p.m. |
OK |
GNU C |
TESTS |
84 |
1934 |
10547200 |
|
2600 |
40986676 |
ReaLNero1 |
D |
July 30, 2018, 8:41 p.m. |
OK |
GNU C++ |
TESTS |
84 |
93 |
40140800 |
|
2600 |
28535557 |
Scut82 |
D |
July 14, 2017, 2:57 a.m. |
OK |
GNU C++ |
TESTS |
84 |
93 |
42188800 |
|
2600 |
13973253 |
Owaski |
D |
Oct. 31, 2015, 3:30 p.m. |
OK |
GNU C++ |
TESTS |
84 |
109 |
1740800 |
|
2600 |
28536748 |
Scut82 |
D |
July 14, 2017, 4:04 a.m. |
OK |
GNU C++ |
TESTS |
84 |
156 |
36249600 |
|
2600 |
13004039 |
code_cola |
D |
Sept. 15, 2015, 7:38 a.m. |
OK |
GNU C++ |
TESTS |
84 |
186 |
32358400 |
|
2600 |
12259318 |
Lint |
D |
July 29, 2015, 5:09 a.m. |
OK |
GNU C++ |
TESTS |
84 |
186 |
32358400 |
|
2600 |
12086828 |
guille |
D |
July 16, 2015, 5:08 p.m. |
OK |
GNU C++ |
TESTS |
84 |
186 |
93286400 |
|
2600 |
12260819 |
Lint |
D |
July 29, 2015, 7:13 a.m. |
OK |
GNU C++ |
TESTS |
84 |
187 |
32358400 |
|
2600 |
11172301 |
Neumann |
D |
May 20, 2015, 4:02 a.m. |
OK |
GNU C++ |
TESTS |
84 |
218 |
17612800 |
|
2600 |
10989657 |
fruwajacybyk |
D |
May 3, 2015, 6:40 p.m. |
OK |
GNU C++ |
TESTS |
84 |
233 |
117964800 |
|
2600 |
11005482 |
mgch |
D |
May 5, 2015, 1:07 p.m. |
OK |
GNU C++11 |
TESTS |
84 |
93 |
12390400 |
|
2600 |
23794263 |
skywalkert |
D |
Jan. 13, 2017, 9:43 p.m. |
OK |
GNU C++11 |
TESTS |
84 |
109 |
10035200 |
|
2600 |
23794228 |
skywalkert |
D |
Jan. 13, 2017, 9:40 p.m. |
OK |
GNU C++11 |
TESTS |
84 |
109 |
10137600 |
|
2600 |
10989945 |
niyaznigmatul |
D |
May 3, 2015, 6:53 p.m. |
OK |
GNU C++11 |
TESTS |
84 |
139 |
59392000 |
|
2600 |
10989926 |
__math |
D |
May 3, 2015, 6:52 p.m. |
OK |
GNU C++11 |
TESTS |
84 |
140 |
3072000 |
|
2600 |
10990305 |
pavel.savchenkov |
D |
May 3, 2015, 7:16 p.m. |
OK |
GNU C++11 |
TESTS |
84 |
155 |
95027200 |
|
2600 |
69615666 |
KyuushuKyuuhai |
D |
Jan. 27, 2020, 1:01 p.m. |
OK |
GNU C++11 |
TESTS |
84 |
171 |
42496000 |
|
2600 |
11000878 |
pwild |
D |
May 4, 2015, 8:51 p.m. |
OK |
GNU C++11 |
TESTS |
84 |
202 |
614400 |
|
2600 |
15268247 |
god |
D |
Jan. 9, 2016, 11:02 a.m. |
OK |
GNU C++11 |
TESTS |
84 |
202 |
1228800 |
|
2600 |
10990214 |
flydutchman |
D |
May 3, 2015, 7:08 p.m. |
OK |
GNU C++11 |
TESTS |
84 |
202 |
198758400 |
|
2600 |
47886563 |
qiqi20021026 |
D |
Jan. 4, 2019, 12:04 a.m. |
OK |
GNU C++14 |
TESTS |
84 |
155 |
716800 |
|
2600 |
62061577 |
LODB---D |
D |
Oct. 7, 2019, 1:49 p.m. |
OK |
GNU C++14 |
TESTS |
84 |
171 |
1024000 |
|
2600 |
62061406 |
LODB---D |
D |
Oct. 7, 2019, 1:45 p.m. |
OK |
GNU C++14 |
TESTS |
84 |
171 |
1024000 |
|
2600 |
47887326 |
dwt |
D |
Jan. 4, 2019, 1:39 a.m. |
OK |
GNU C++14 |
TESTS |
84 |
186 |
614400 |
|
2600 |
38057685 |
Whitesola |
D |
May 9, 2018, 1:15 a.m. |
OK |
GNU C++14 |
TESTS |
84 |
186 |
20377600 |
|
2600 |
36560881 |
CQzhangyu |
D |
March 24, 2018, 2:52 a.m. |
OK |
GNU C++14 |
TESTS |
84 |
202 |
10137600 |
|
2600 |
26096087 |
Kmcode |
D |
April 3, 2017, 9:49 a.m. |
OK |
GNU C++14 |
TESTS |
84 |
218 |
13516800 |
|
2600 |
59860580 |
YPL_TAIWAN |
D |
Sept. 1, 2019, 3:09 p.m. |
OK |
GNU C++14 |
TESTS |
84 |
264 |
7782400 |
|
2600 |
22384329 |
Hackrxer |
D |
Nov. 21, 2016, 1:37 p.m. |
OK |
GNU C++14 |
TESTS |
84 |
296 |
16793600 |
|
2600 |
45167075 |
zhouzhendong |
D |
Nov. 1, 2018, 11:29 a.m. |
OK |
GNU C++14 |
TESTS |
84 |
296 |
132915200 |
|
2600 |
59858162 |
knia |
D |
Sept. 1, 2019, 2:18 p.m. |
OK |
GNU C++17 |
TESTS |
84 |
140 |
8704000 |
|
2600 |
63672058 |
Roundgod |
D |
Oct. 28, 2019, 5:13 p.m. |
OK |
GNU C++17 |
TESTS |
84 |
171 |
17408000 |
|
2600 |
68752798 |
Arianfk |
D |
Jan. 14, 2020, 7:17 a.m. |
OK |
GNU C++17 |
TESTS |
84 |
233 |
181760000 |
|
2600 |
47886818 |
perilla_bot |
D |
Jan. 4, 2019, 12:38 a.m. |
OK |
GNU C++17 |
TESTS |
84 |
296 |
921600 |
|
2600 |
56178874 |
AliShahali1382 |
D |
June 27, 2019, 9:08 p.m. |
OK |
GNU C++17 |
TESTS |
84 |
296 |
107929600 |
|
2600 |
47886796 |
perilla_bot |
D |
Jan. 4, 2019, 12:35 a.m. |
OK |
GNU C++17 |
TESTS |
84 |
311 |
1024000 |
|
2600 |
47886780 |
ddpag |
D |
Jan. 4, 2019, 12:33 a.m. |
OK |
GNU C++17 |
TESTS |
84 |
311 |
1126400 |
|
2600 |
56178836 |
AliShahali1382 |
D |
June 27, 2019, 9:06 p.m. |
OK |
GNU C++17 |
TESTS |
84 |
311 |
161792000 |
|
2600 |
60904105 |
saketh |
D |
Sept. 20, 2019, 1 a.m. |
OK |
GNU C++17 |
TESTS |
84 |
312 |
307200 |
|
2600 |
39450124 |
atoiz |
D |
June 21, 2018, 3:27 a.m. |
OK |
GNU C++17 |
TESTS |
84 |
342 |
89088000 |
|
2600 |
11063585 |
partizan22 |
D |
May 10, 2015, 2:54 p.m. |
OK |
Java 7 |
TESTS |
84 |
280 |
0 |
|
2600 |
10987229 |
uwi |
D |
May 3, 2015, 5:15 p.m. |
OK |
Java 7 |
TESTS |
84 |
311 |
0 |
|
2600 |
10988309 |
Sergey.Bankevich |
D |
May 3, 2015, 5:54 p.m. |
OK |
Java 7 |
TESTS |
84 |
1028 |
204800 |
|
2600 |
11033314 |
IgorKoval |
D |
May 7, 2015, 6:43 p.m. |
OK |
Java 8 |
TESTS |
84 |
639 |
0 |
|
2600 |
11033483 |
IgorKoval |
D |
May 7, 2015, 6:46 p.m. |
OK |
Java 8 |
TESTS |
84 |
826 |
0 |
|
2600 |
11033308 |
IgorKoval |
D |
May 7, 2015, 6:40 p.m. |
OK |
Java 8 |
TESTS |
84 |
826 |
0 |
|
2600 |
11033306 |
IgorKoval |
D |
May 7, 2015, 6:40 p.m. |
OK |
Java 8 |
TESTS |
84 |
842 |
0 |
|
2600 |
11033225 |
IgorKoval |
D |
May 7, 2015, 6:29 p.m. |
OK |
Java 8 |
TESTS |
84 |
1169 |
0 |
|
2600 |
10990243 |
Slamur |
D |
May 3, 2015, 7:10 p.m. |
OK |
Java 8 |
TESTS |
84 |
1201 |
0 |
|
2600 |
11056795 |
Guliash |
D |
May 9, 2015, 5:18 p.m. |
OK |
Java 8 |
TESTS |
84 |
1388 |
0 |
|
2600 |
20772518 |
I_love_tigersugar |
D |
Sept. 20, 2016, 10:05 a.m. |
OK |
Java 8 |
TESTS |
84 |
1622 |
142540800 |
|
2600 |
11184705 |
Pimpom |
D |
May 21, 2015, 5:34 a.m. |
OK |
Java 8 |
TESTS |
84 |
1668 |
0 |
|
2600 |
10989853 |
VArtem |
D |
May 3, 2015, 6:49 p.m. |
OK |
Java 8 |
TESTS |
84 |
1840 |
0 |
|
2600 |
10996511 |
azukun |
D |
May 4, 2015, 1:57 p.m. |
OK |
MS C# |
TESTS |
84 |
156 |
5324800 |
|
2600 |
10989292 |
haitao |
D |
May 3, 2015, 6:25 p.m. |
OK |
MS C# |
TESTS |
84 |
1450 |
8192000 |
|
2600 |
12071284 |
newbeginBKB |
D |
July 15, 2015, 12:23 p.m. |
OK |
MS C++ |
TESTS |
84 |
234 |
72806400 |
|
2600 |
25151238 |
Yurik |
D |
March 2, 2017, 2:50 p.m. |
OK |
MS C++ |
TESTS |
84 |
358 |
91238400 |
|
2600 |
15069200 |
glebushka98 |
D |
Dec. 28, 2015, 10:51 a.m. |
OK |
MS C++ |
TESTS |
84 |
795 |
206643200 |
|
2600 |
10996723 |
Ilya_MSU |
D |
May 4, 2015, 2:25 p.m. |
OK |
MS C++ |
TESTS |
84 |
1107 |
50380800 |
|
2600 |
10990985 |
Trumen |
D |
May 3, 2015, 8:49 p.m. |
OK |
MS C++ |
TESTS |
84 |
1263 |
5734400 |
|
2600 |
10994094 |
AleksanderBalobanov |
D |
May 4, 2015, 9:30 a.m. |
OK |
MS C++ |
TESTS |
84 |
1404 |
20070400 |
|
2600 |
10987703 |
Coder |
D |
May 3, 2015, 5:32 p.m. |
OK |
MS C++ |
TESTS |
84 |
1637 |
12902400 |
|
2600 |
10995625 |
poopi |
D |
May 4, 2015, 12:21 p.m. |
OK |
MS C++ |
TESTS |
84 |
1653 |
6348800 |
|
2600 |
10993984 |
AleksanderBalobanov |
D |
May 4, 2015, 9:13 a.m. |
OK |
MS C++ |
TESTS |
84 |
1700 |
103219200 |
|
2600 |
remove filters
Back to search problems