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"Yaroslav likes algorithms. We'll describe one of his favorite algorithms. Yaroslav has a set of n positive integers, he needs to come up with his favorite algorithm that will increase each of the given numbers by one. More formally, if we consider each number as a string representing the decimal representation of the number, then being run on each of these strings separately, the algorithm should receive the output string that is a recording of the corresponding number increased by one. Help Yaroslav. The first line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100) -- the number of elements in the set. The next n lines contains one positive integer each. All the given numbers are less than 1025. Print the algorithm which can individually increase each number of the set. In the i-th line print the command number i without spaces. Your algorithm will be launched for each of these numbers. The answer will be considered correct if: "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
3682048 |
Gassa |
C |
May 5, 2013, 5:57 p.m. |
OK |
D |
TESTS |
23 |
46 |
102400 |
|
2700 |
3698559 |
ZeRoGerc |
C |
May 10, 2013, 8:32 a.m. |
OK |
FPC |
TESTS |
23 |
15 |
0 |
|
2700 |
3850922 |
Omelianenko |
C |
June 9, 2013, 1:46 p.m. |
OK |
FPC |
TESTS |
23 |
15 |
0 |
|
2700 |
3696313 |
Nik_Storm_2010 |
C |
May 9, 2013, 1:23 p.m. |
OK |
FPC |
TESTS |
23 |
15 |
0 |
|
2700 |
3818771 |
PeterTong97 |
C |
June 3, 2013, 12:48 p.m. |
OK |
FPC |
TESTS |
23 |
15 |
0 |
|
2700 |
8685424 |
equation314 |
C |
Nov. 13, 2014, 3:04 p.m. |
OK |
GNU C |
TESTS |
23 |
30 |
0 |
|
2700 |
8685456 |
equation314 |
C |
Nov. 13, 2014, 3:06 p.m. |
OK |
GNU C |
TESTS |
23 |
62 |
0 |
|
2700 |
4712581 |
vjudge3 |
C |
Oct. 9, 2013, 1:51 a.m. |
OK |
GNU C++ |
TESTS |
23 |
0 |
0 |
|
2700 |
3695142 |
architkarandikar |
C |
May 9, 2013, 6:28 a.m. |
OK |
GNU C++ |
TESTS |
23 |
0 |
0 |
|
2700 |
4047483 |
Mex-Mans |
C |
July 10, 2013, 4:35 p.m. |
OK |
GNU C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
4147192 |
netman |
C |
July 24, 2013, 12:25 p.m. |
OK |
GNU C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
4127134 |
hhoomn |
C |
July 21, 2013, 7:33 a.m. |
OK |
GNU C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3930313 |
akshatb |
C |
June 20, 2013, 11:04 p.m. |
OK |
GNU C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3906631 |
tobecontinued |
C |
June 16, 2013, 5:14 p.m. |
OK |
GNU C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3859525 |
ccarter |
C |
June 12, 2013, 7:19 a.m. |
OK |
GNU C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3856142 |
scli |
C |
June 11, 2013, 6:15 a.m. |
OK |
GNU C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3808110 |
azaky |
C |
May 31, 2013, 4:29 p.m. |
OK |
GNU C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3719688 |
icyrhyme |
C |
May 14, 2013, 10:17 a.m. |
OK |
GNU C++0x |
TESTS |
23 |
15 |
0 |
|
2700 |
3696751 |
itytwt |
C |
May 9, 2013, 3:59 p.m. |
OK |
GNU C++0x |
TESTS |
23 |
15 |
0 |
|
2700 |
3696623 |
itytwt |
C |
May 9, 2013, 3:12 p.m. |
OK |
GNU C++0x |
TESTS |
23 |
15 |
0 |
|
2700 |
3695480 |
Isaacpei |
C |
May 9, 2013, 8:55 a.m. |
OK |
GNU C++0x |
TESTS |
23 |
15 |
0 |
|
2700 |
3689416 |
roosephu |
C |
May 7, 2013, 7:21 a.m. |
OK |
GNU C++0x |
TESTS |
23 |
15 |
0 |
|
2700 |
7297536 |
kcm1700 |
C |
July 31, 2014, 7:28 a.m. |
OK |
GNU C++0x |
TESTS |
23 |
30 |
0 |
|
2700 |
39534247 |
zhouyuyang |
C |
June 23, 2018, 6:57 a.m. |
OK |
GNU C++11 |
TESTS |
23 |
30 |
0 |
|
2700 |
14908943 |
Altria-PenDragon |
C |
Dec. 21, 2015, 8:42 a.m. |
OK |
GNU C++11 |
TESTS |
23 |
30 |
0 |
|
2700 |
12975672 |
kondranin |
C |
Sept. 12, 2015, 4:54 p.m. |
OK |
GNU C++11 |
TESTS |
23 |
30 |
0 |
|
2700 |
11849472 |
Anti-matter_condenser |
C |
June 30, 2015, 11:15 a.m. |
OK |
GNU C++11 |
TESTS |
23 |
30 |
0 |
|
2700 |
10405117 |
dojiboy9 |
C |
March 22, 2015, 10:22 p.m. |
OK |
GNU C++11 |
TESTS |
23 |
30 |
0 |
|
2700 |
29258784 |
fsps60312 |
C |
Aug. 7, 2017, 8:09 a.m. |
OK |
GNU C++11 |
TESTS |
23 |
30 |
1945600 |
|
2700 |
33824157 |
ntu_vjudge_1 |
C |
Dec. 31, 2017, 3:27 a.m. |
OK |
GNU C++11 |
TESTS |
23 |
30 |
2048000 |
|
2700 |
28008387 |
Viktor_Terziev |
C |
June 24, 2017, 4:06 p.m. |
OK |
GNU C++11 |
TESTS |
23 |
30 |
2048000 |
|
2700 |
29461051 |
ntu_vjudge_1 |
C |
Aug. 14, 2017, 3:15 p.m. |
OK |
GNU C++11 |
TESTS |
23 |
30 |
2150400 |
|
2700 |
29321049 |
ntu_vjudge_1 |
C |
Aug. 10, 2017, 8:08 a.m. |
OK |
GNU C++11 |
TESTS |
23 |
30 |
2150400 |
|
2700 |
32036929 |
blue__legend |
C |
Nov. 3, 2017, 8:51 p.m. |
OK |
GNU C++14 |
TESTS |
23 |
30 |
0 |
|
2700 |
29814497 |
Egor.Lifar |
C |
Aug. 26, 2017, 8:16 p.m. |
OK |
GNU C++14 |
TESTS |
23 |
30 |
0 |
|
2700 |
22698010 |
Qoogle |
C |
Dec. 4, 2016, 2:53 p.m. |
OK |
GNU C++14 |
TESTS |
23 |
30 |
0 |
|
2700 |
50570396 |
Sarasvati |
C |
Feb. 27, 2019, 3:08 p.m. |
OK |
GNU C++14 |
TESTS |
23 |
30 |
204800 |
|
2700 |
35206179 |
boook |
C |
Feb. 13, 2018, 4:50 p.m. |
OK |
GNU C++14 |
TESTS |
23 |
30 |
1945600 |
|
2700 |
33972057 |
mjhun |
C |
Jan. 6, 2018, 8:18 p.m. |
OK |
GNU C++14 |
TESTS |
23 |
30 |
1945600 |
|
2700 |
33280180 |
gkevinyen5418 |
C |
Dec. 16, 2017, 3:45 a.m. |
OK |
GNU C++14 |
TESTS |
23 |
30 |
1945600 |
|
2700 |
29222757 |
owke |
C |
Aug. 5, 2017, 4:02 p.m. |
OK |
GNU C++14 |
TESTS |
23 |
30 |
1945600 |
|
2700 |
24612818 |
chemthan |
C |
Feb. 12, 2017, 4:32 p.m. |
OK |
GNU C++14 |
TESTS |
23 |
30 |
1945600 |
|
2700 |
23661517 |
Ali.Pi |
C |
Jan. 9, 2017, 7:15 a.m. |
OK |
GNU C++14 |
TESTS |
23 |
30 |
1945600 |
|
2700 |
55906525 |
tap_tapii |
C |
June 21, 2019, 9:27 p.m. |
OK |
GNU C++17 |
TESTS |
23 |
60 |
0 |
|
2700 |
51911791 |
roll_no_1 |
C |
March 27, 2019, 6:35 p.m. |
OK |
GNU C++17 |
TESTS |
23 |
62 |
0 |
|
2700 |
65903813 |
hjk1030 |
C |
Nov. 28, 2019, 9:58 a.m. |
OK |
GNU C++17 |
TESTS |
23 |
62 |
0 |
|
2700 |
53796573 |
majk |
C |
May 5, 2019, 3:37 p.m. |
OK |
GNU C++17 |
TESTS |
23 |
62 |
0 |
|
2700 |
52780180 |
ruo |
C |
April 15, 2019, 1:54 p.m. |
OK |
GNU C++17 |
TESTS |
23 |
62 |
0 |
|
2700 |
50596578 |
adedalic |
C |
Feb. 28, 2019, 10:38 a.m. |
OK |
GNU C++17 |
TESTS |
23 |
62 |
102400 |
|
2700 |
3680836 |
uwi |
C |
May 5, 2013, 5:32 p.m. |
OK |
Java 6 |
TESTS |
23 |
78 |
0 |
|
2700 |
3696816 |
sweiss |
C |
May 9, 2013, 4:21 p.m. |
OK |
Java 7 |
TESTS |
23 |
78 |
0 |
|
2700 |
3687385 |
dusty.and.rusty |
C |
May 6, 2013, 3:25 p.m. |
OK |
Java 7 |
TESTS |
23 |
78 |
0 |
|
2700 |
3685658 |
gh_ost |
C |
May 6, 2013, 9:48 a.m. |
OK |
Java 7 |
TESTS |
23 |
78 |
0 |
|
2700 |
3681933 |
cerealguy |
C |
May 5, 2013, 5:55 p.m. |
OK |
Java 7 |
TESTS |
23 |
78 |
0 |
|
2700 |
3680861 |
SergeyLazarev |
C |
May 5, 2013, 5:33 p.m. |
OK |
Java 7 |
TESTS |
23 |
78 |
0 |
|
2700 |
3678901 |
mmaxio |
C |
May 5, 2013, 5 p.m. |
OK |
Java 7 |
TESTS |
23 |
78 |
0 |
|
2700 |
3688298 |
ns_serg |
C |
May 6, 2013, 7:16 p.m. |
OK |
Java 7 |
TESTS |
23 |
93 |
102400 |
|
2700 |
19180704 |
jeffrey.xiao |
C |
July 16, 2016, 10:48 p.m. |
OK |
Java 8 |
TESTS |
23 |
310 |
0 |
|
2700 |
3784628 |
dwoolley3 |
C |
May 27, 2013, 2:19 p.m. |
OK |
Mono C# |
TESTS |
23 |
62 |
204800 |
|
2700 |
3683192 |
it4.kp |
C |
May 5, 2013, 8:33 p.m. |
OK |
MS C# |
TESTS |
23 |
46 |
1740800 |
|
2700 |
4641347 |
antofik |
C |
Oct. 2, 2013, 1:55 p.m. |
OK |
MS C# |
TESTS |
23 |
62 |
0 |
|
2700 |
3823755 |
proVIDec |
C |
June 5, 2013, 6:05 a.m. |
OK |
MS C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3812759 |
GlebsHP |
C |
June 2, 2013, 12:20 a.m. |
OK |
MS C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3781506 |
caustique |
C |
May 26, 2013, 9:33 p.m. |
OK |
MS C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3753860 |
ADJA |
C |
May 21, 2013, 5:02 p.m. |
OK |
MS C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3725283 |
kingofnumbers |
C |
May 15, 2013, 11:24 p.m. |
OK |
MS C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3687704 |
Angor |
C |
May 6, 2013, 4:25 p.m. |
OK |
MS C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3687169 |
916852 |
C |
May 6, 2013, 2:42 p.m. |
OK |
MS C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3683967 |
alexander-nsk94 |
C |
May 6, 2013, 1:34 a.m. |
OK |
MS C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3680718 |
RAD |
C |
May 5, 2013, 5:30 p.m. |
OK |
MS C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
3851843 |
Mark_tven |
C |
June 9, 2013, 7:14 p.m. |
OK |
MS C++ |
TESTS |
23 |
15 |
0 |
|
2700 |
13589307 |
anta |
C |
Oct. 13, 2015, 8:30 a.m. |
OK |
PHP |
TESTS |
23 |
62 |
0 |
|
2700 |
51103736 |
ivanilos |
C |
March 9, 2019, 8:32 p.m. |
OK |
PHP |
TESTS |
23 |
62 |
409600 |
|
2700 |
34970923 |
muht |
C |
Feb. 6, 2018, 12:54 p.m. |
OK |
PHP |
TESTS |
23 |
92 |
6041600 |
|
2700 |
34970178 |
assbb |
C |
Feb. 6, 2018, 12:29 p.m. |
OK |
PHP |
TESTS |
23 |
92 |
6041600 |
|
2700 |
3756763 |
daidailanlan |
C |
May 22, 2013, 12:13 p.m. |
OK |
Python 2 |
TESTS |
23 |
46 |
0 |
|
2700 |
3690440 |
safeasmilk |
C |
May 7, 2013, 12:55 p.m. |
OK |
Python 2 |
TESTS |
23 |
46 |
0 |
|
2700 |
3683426 |
permin |
C |
May 5, 2013, 9:22 p.m. |
OK |
Python 2 |
TESTS |
23 |
46 |
0 |
|
2700 |
3681400 |
enhydra |
C |
May 5, 2013, 5:43 p.m. |
OK |
Python 2 |
TESTS |
23 |
46 |
0 |
|
2700 |
3807666 |
dolphinigle |
C |
May 31, 2013, 2:45 p.m. |
OK |
Python 2 |
TESTS |
23 |
62 |
0 |
|
2700 |
3724921 |
Jarekczek |
C |
May 15, 2013, 7:43 p.m. |
OK |
Python 2 |
TESTS |
23 |
62 |
0 |
|
2700 |
3684751 |
liouzhou_101 |
C |
May 6, 2013, 6:01 a.m. |
OK |
Python 2 |
TESTS |
23 |
62 |
0 |
|
2700 |
8494379 |
zshi |
C |
Oct. 31, 2014, 7:01 a.m. |
OK |
Python 2 |
TESTS |
23 |
92 |
0 |
|
2700 |
17926981 |
VastoLorde95 |
C |
May 16, 2016, 5:14 a.m. |
OK |
Python 2 |
TESTS |
23 |
92 |
4710400 |
|
2700 |
35858604 |
______u______ |
C |
March 2, 2018, 9:02 p.m. |
OK |
Python 2 |
TESTS |
23 |
122 |
4608000 |
|
2700 |
27705975 |
GEOTCBRL |
C |
June 10, 2017, 12:14 p.m. |
OK |
Python 3 |
TESTS |
23 |
124 |
0 |
|
2700 |
19357253 |
jerry |
C |
July 23, 2016, 6:16 a.m. |
OK |
Python 3 |
TESTS |
23 |
124 |
0 |
|
2700 |
7197408 |
chaotic_iak |
C |
July 21, 2014, 6:38 p.m. |
OK |
Python 3 |
TESTS |
23 |
124 |
0 |
|
2700 |
3818363 |
asdsteven2 |
C |
June 3, 2013, 10:45 a.m. |
OK |
Python 3 |
TESTS |
23 |
125 |
0 |
|
2700 |
56067152 |
Shine_Sky |
C |
June 26, 2019, 8:32 a.m. |
OK |
Python 3 |
TESTS |
23 |
248 |
0 |
|
2700 |
42135116 |
Mk_Python_v1 |
C |
Aug. 26, 2018, 10:43 p.m. |
OK |
Python 3 |
TESTS |
23 |
248 |
0 |
|
2700 |
3690947 |
delta_4d |
C |
May 7, 2013, 3:43 p.m. |
OK |
Ruby |
TESTS |
23 |
46 |
0 |
|
2700 |
3689718 |
ftiasch |
C |
May 7, 2013, 9:18 a.m. |
OK |
Ruby |
TESTS |
23 |
46 |
0 |
|
2700 |
3686791 |
bakabakashyoshyo |
C |
May 6, 2013, 1:28 p.m. |
OK |
Ruby |
TESTS |
23 |
46 |
0 |
|
2700 |
remove filters
Back to search problems