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"One day Vasya was solving arithmetical problems. He wrote down an expression a xe2 x80 x89+ xe2 x80 x89b xe2 x80 x89= xe2 x80 x89c in his notebook. When the teacher checked Vasya's work it turned out that Vasya had solved the problem incorrectly. Now Vasya tries to find excuses. He says that he simply forgot to write down several digits in numbers a, b and c, but he can't remember what numbers they actually were. Help Vasya, find such numbers x, y and z, with which the following conditions are met: The first and only input line contains the expression a xe2 x80 x89+ xe2 x80 x89b xe2 x80 x89= xe2 x80 x89c (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a, xe2 x80 x89b, xe2 x80 x89c xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106, a, b and c don't contain leading zeroes) which is the expression Vasya wrote down. Print the correct expression x xe2 x80 x89+ xe2 x80 x89y xe2 x80 x89= xe2 x80 x89z (x, y and z are non-negative numbers without leading zeroes). The expression a xe2 x80 x89+ xe2 x80 x89b xe2 x80 x89= xe2 x80 x89c must be met in x xe2 x80 x89+ xe2 x80 x89y xe2 x80 x89= xe2 x80 x89z as a subsequence. The printed solution should have the minimal possible number of characters. If there are several such solutions, you can print any of them."... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
35979424 |
lxy666 |
E |
March 6, 2018, 1:28 a.m. |
OK |
GNU C++ |
TESTS |
30 |
30 |
2150400 |
|
2400 |
35833186 |
248926 |
E |
March 2, 2018, 11:07 a.m. |
OK |
GNU C++ |
TESTS |
30 |
30 |
3174400 |
|
2400 |
40459231 |
luogu_bot3 |
E |
July 17, 2018, 2:48 a.m. |
OK |
GNU C++ |
TESTS |
30 |
60 |
0 |
|
2400 |
40383574 |
Itst |
E |
July 15, 2018, 4:09 p.m. |
OK |
GNU C++ |
TESTS |
30 |
60 |
0 |
|
2400 |
40065487 |
lil_T |
E |
July 7, 2018, 4:13 p.m. |
OK |
GNU C++ |
TESTS |
30 |
60 |
0 |
|
2400 |
40459251 |
luogu_bot3 |
E |
July 17, 2018, 2:49 a.m. |
OK |
GNU C++ |
TESTS |
30 |
62 |
0 |
|
2400 |
61939104 |
rainboy |
E |
Oct. 5, 2019, 7 p.m. |
OK |
GNU C11 |
TESTS |
30 |
62 |
614400 |
|
2400 |
35905222 |
thchuan |
E |
March 4, 2018, 2:22 a.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
2048000 |
|
2400 |
35868453 |
-skyline- |
E |
March 3, 2018, 4:56 a.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
2048000 |
|
2400 |
35847068 |
KAKA_YiZhong |
E |
March 2, 2018, 4:38 p.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
2048000 |
|
2400 |
35833486 |
tqyaaaaaaaang |
E |
March 2, 2018, 11:24 a.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
2048000 |
|
2400 |
35833005 |
lzr_010506 |
E |
March 2, 2018, 10:56 a.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
2048000 |
|
2400 |
36073854 |
primojaypan |
E |
March 8, 2018, 2:18 p.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
2048000 |
|
2400 |
35894559 |
______n______ |
E |
March 3, 2018, 4:24 p.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
2150400 |
|
2400 |
35894314 |
______u______ |
E |
March 3, 2018, 4:19 p.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
2150400 |
|
2400 |
35894126 |
_____i_____ |
E |
March 3, 2018, 4:13 p.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
2150400 |
|
2400 |
35895297 |
_____k_____ |
E |
March 3, 2018, 4:41 p.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
2150400 |
|
2400 |
54815252 |
bhargav_0085 |
E |
May 29, 2019, 7:25 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
0 |
|
2400 |
35835390 |
ugly2333 |
E |
March 2, 2018, 12:30 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
2355200 |
|
2400 |
36043233 |
RayPatterson |
E |
March 7, 2018, 12:09 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
2969600 |
|
2400 |
36042634 |
RayPatterson |
E |
March 7, 2018, 11:53 a.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
2969600 |
|
2400 |
35962852 |
little_waxberry |
E |
March 5, 2018, 11:16 a.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
3174400 |
|
2400 |
35906610 |
tender_green |
E |
March 4, 2018, 4:18 a.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
3174400 |
|
2400 |
48313687 |
vjudge5 |
E |
Jan. 13, 2019, 4:56 a.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
6553600 |
|
2400 |
34814207 |
Cmise |
E |
Feb. 1, 2018, 5:58 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
6860800 |
|
2400 |
34814265 |
Cmise |
E |
Feb. 1, 2018, 5:59 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
6860800 |
|
2400 |
36762117 |
Big_black_jujube |
E |
March 31, 2018, 2:58 a.m. |
OK |
GNU C++14 |
TESTS |
30 |
60 |
3379200 |
|
2400 |
50518177 |
vjudge5 |
E |
Feb. 26, 2019, 7:54 a.m. |
OK |
GNU C++17 |
TESTS |
30 |
30 |
0 |
|
2400 |
35869077 |
BackOnTrack |
E |
March 3, 2018, 5:34 a.m. |
OK |
GNU C++17 |
TESTS |
30 |
30 |
2048000 |
|
2400 |
45070890 |
185217 |
E |
Oct. 29, 2018, 7:38 p.m. |
OK |
GNU C++17 |
TESTS |
30 |
60 |
204800 |
|
2400 |
38879053 |
BaCl2 |
E |
June 2, 2018, 8:12 a.m. |
OK |
GNU C++17 |
TESTS |
30 |
60 |
3584000 |
|
2400 |
58532974 |
KillerX |
E |
Aug. 10, 2019, 10:28 a.m. |
OK |
GNU C++17 |
TESTS |
30 |
62 |
0 |
|
2400 |
64165697 |
Mai-sanBestWaifu |
E |
Nov. 3, 2019, 4:11 p.m. |
OK |
GNU C++17 |
TESTS |
30 |
62 |
0 |
|
2400 |
58518202 |
Hacheylight |
E |
Aug. 10, 2019, 2:12 a.m. |
OK |
GNU C++17 |
TESTS |
30 |
62 |
0 |
|
2400 |
53183525 |
vjudge3 |
E |
April 23, 2019, 8:56 a.m. |
OK |
GNU C++17 |
TESTS |
30 |
62 |
0 |
|
2400 |
50518138 |
pkgunboat |
E |
Feb. 26, 2019, 7:52 a.m. |
OK |
GNU C++17 |
TESTS |
30 |
62 |
0 |
|
2400 |
58519220 |
vjudge5 |
E |
Aug. 10, 2019, 3:08 a.m. |
OK |
GNU C++17 |
TESTS |
30 |
62 |
102400 |
|
2400 |
61939073 |
Dukkha |
E |
Oct. 5, 2019, 6:59 p.m. |
OK |
Java 8 |
TESTS |
30 |
342 |
0 |
|
2400 |
37659985 |
uwi |
E |
April 27, 2018, 12:09 p.m. |
OK |
Java 8 |
TESTS |
30 |
684 |
21606400 |
|
2400 |
49205093 |
namratha_253 |
E |
Jan. 30, 2019, 1:40 p.m. |
OK |
Python 2 |
TESTS |
30 |
404 |
614400 |
|
2400 |
remove filters
Back to search problems