a, b = map(int, input().split())
for i in range(a, b + 1):
s = str(i)
if s == s[::-1]:
print('Palindrome!')
else:
print(i)
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
27 ms |
3428 KB |
Output is correct |
2 |
Correct |
26 ms |
3308 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
4 |
Correct |
24 ms |
3308 KB |
Output is correct |
5 |
Correct |
25 ms |
3308 KB |
Output is correct |
6 |
Correct |
24 ms |
3308 KB |
Output is correct |
7 |
Correct |
24 ms |
3308 KB |
Output is correct |
8 |
Correct |
24 ms |
3308 KB |
Output is correct |
9 |
Correct |
28 ms |
3300 KB |
Output is correct |
10 |
Correct |
27 ms |
3292 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
27 ms |
3428 KB |
Output is correct |
2 |
Correct |
26 ms |
3308 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
4 |
Correct |
24 ms |
3308 KB |
Output is correct |
5 |
Correct |
25 ms |
3308 KB |
Output is correct |
6 |
Correct |
24 ms |
3308 KB |
Output is correct |
7 |
Correct |
24 ms |
3308 KB |
Output is correct |
8 |
Correct |
24 ms |
3308 KB |
Output is correct |
9 |
Correct |
28 ms |
3300 KB |
Output is correct |
10 |
Correct |
27 ms |
3292 KB |
Output is correct |
11 |
Correct |
24 ms |
3308 KB |
Output is correct |
12 |
Correct |
26 ms |
3308 KB |
Output is correct |
13 |
Correct |
25 ms |
3308 KB |
Output is correct |
14 |
Correct |
23 ms |
3308 KB |
Output is correct |
15 |
Correct |
24 ms |
3308 KB |
Output is correct |
16 |
Correct |
24 ms |
3308 KB |
Output is correct |
17 |
Correct |
26 ms |
3308 KB |
Output is correct |
18 |
Correct |
24 ms |
3308 KB |
Output is correct |
19 |
Correct |
28 ms |
3308 KB |
Output is correct |
20 |
Correct |
28 ms |
3300 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
27 ms |
3428 KB |
Output is correct |
2 |
Correct |
26 ms |
3308 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
4 |
Correct |
24 ms |
3308 KB |
Output is correct |
5 |
Correct |
25 ms |
3308 KB |
Output is correct |
6 |
Correct |
24 ms |
3308 KB |
Output is correct |
7 |
Correct |
24 ms |
3308 KB |
Output is correct |
8 |
Correct |
24 ms |
3308 KB |
Output is correct |
9 |
Correct |
28 ms |
3300 KB |
Output is correct |
10 |
Correct |
27 ms |
3292 KB |
Output is correct |
11 |
Correct |
24 ms |
3308 KB |
Output is correct |
12 |
Correct |
26 ms |
3308 KB |
Output is correct |
13 |
Correct |
25 ms |
3308 KB |
Output is correct |
14 |
Correct |
23 ms |
3308 KB |
Output is correct |
15 |
Correct |
24 ms |
3308 KB |
Output is correct |
16 |
Correct |
24 ms |
3308 KB |
Output is correct |
17 |
Correct |
26 ms |
3308 KB |
Output is correct |
18 |
Correct |
24 ms |
3308 KB |
Output is correct |
19 |
Correct |
28 ms |
3308 KB |
Output is correct |
20 |
Correct |
28 ms |
3300 KB |
Output is correct |
21 |
Correct |
24 ms |
3308 KB |
Output is correct |
22 |
Correct |
24 ms |
3308 KB |
Output is correct |
23 |
Correct |
24 ms |
3308 KB |
Output is correct |
24 |
Correct |
24 ms |
3332 KB |
Output is correct |
25 |
Correct |
24 ms |
3308 KB |
Output is correct |
26 |
Correct |
27 ms |
3308 KB |
Output is correct |
27 |
Correct |
24 ms |
3308 KB |
Output is correct |
28 |
Correct |
28 ms |
3308 KB |
Output is correct |
29 |
Correct |
24 ms |
3308 KB |
Output is correct |
30 |
Correct |
26 ms |
3308 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
27 ms |
3428 KB |
Output is correct |
2 |
Correct |
26 ms |
3308 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
4 |
Correct |
24 ms |
3308 KB |
Output is correct |
5 |
Correct |
25 ms |
3308 KB |
Output is correct |
6 |
Correct |
24 ms |
3308 KB |
Output is correct |
7 |
Correct |
24 ms |
3308 KB |
Output is correct |
8 |
Correct |
24 ms |
3308 KB |
Output is correct |
9 |
Correct |
28 ms |
3300 KB |
Output is correct |
10 |
Correct |
27 ms |
3292 KB |
Output is correct |
11 |
Correct |
24 ms |
3308 KB |
Output is correct |
12 |
Correct |
26 ms |
3308 KB |
Output is correct |
13 |
Correct |
25 ms |
3308 KB |
Output is correct |
14 |
Correct |
23 ms |
3308 KB |
Output is correct |
15 |
Correct |
24 ms |
3308 KB |
Output is correct |
16 |
Correct |
24 ms |
3308 KB |
Output is correct |
17 |
Correct |
26 ms |
3308 KB |
Output is correct |
18 |
Correct |
24 ms |
3308 KB |
Output is correct |
19 |
Correct |
28 ms |
3308 KB |
Output is correct |
20 |
Correct |
28 ms |
3300 KB |
Output is correct |
21 |
Correct |
24 ms |
3308 KB |
Output is correct |
22 |
Correct |
24 ms |
3308 KB |
Output is correct |
23 |
Correct |
24 ms |
3308 KB |
Output is correct |
24 |
Correct |
24 ms |
3332 KB |
Output is correct |
25 |
Correct |
24 ms |
3308 KB |
Output is correct |
26 |
Correct |
27 ms |
3308 KB |
Output is correct |
27 |
Correct |
24 ms |
3308 KB |
Output is correct |
28 |
Correct |
28 ms |
3308 KB |
Output is correct |
29 |
Correct |
24 ms |
3308 KB |
Output is correct |
30 |
Correct |
26 ms |
3308 KB |
Output is correct |
31 |
Correct |
210 ms |
4296 KB |
Output is correct |
32 |
Correct |
102 ms |
3856 KB |
Output is correct |
33 |
Correct |
62 ms |
3648 KB |
Output is correct |
34 |
Correct |
84 ms |
3728 KB |
Output is correct |
35 |
Correct |
142 ms |
4068 KB |
Output is correct |
36 |
Correct |
39 ms |
3608 KB |
Output is correct |
37 |
Correct |
56 ms |
3696 KB |
Output is correct |
38 |
Correct |
230 ms |
4184 KB |
Output is correct |
39 |
Correct |
222 ms |
4184 KB |
Output is correct |
40 |
Correct |
57 ms |
3812 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
27 ms |
3428 KB |
Output is correct |
2 |
Correct |
26 ms |
3308 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
4 |
Correct |
24 ms |
3308 KB |
Output is correct |
5 |
Correct |
25 ms |
3308 KB |
Output is correct |
6 |
Correct |
24 ms |
3308 KB |
Output is correct |
7 |
Correct |
24 ms |
3308 KB |
Output is correct |
8 |
Correct |
24 ms |
3308 KB |
Output is correct |
9 |
Correct |
28 ms |
3300 KB |
Output is correct |
10 |
Correct |
27 ms |
3292 KB |
Output is correct |
11 |
Correct |
24 ms |
3308 KB |
Output is correct |
12 |
Correct |
24 ms |
3308 KB |
Output is correct |
13 |
Correct |
27 ms |
3308 KB |
Output is correct |
14 |
Correct |
24 ms |
3308 KB |
Output is correct |
15 |
Correct |
24 ms |
3308 KB |
Output is correct |
16 |
Correct |
29 ms |
3308 KB |
Output is correct |
17 |
Correct |
23 ms |
3308 KB |
Output is correct |
18 |
Correct |
25 ms |
3308 KB |
Output is correct |
19 |
Correct |
26 ms |
3236 KB |
Output is correct |
20 |
Correct |
24 ms |
3308 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
27 ms |
3428 KB |
Output is correct |
2 |
Correct |
26 ms |
3308 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
4 |
Correct |
24 ms |
3308 KB |
Output is correct |
5 |
Correct |
25 ms |
3308 KB |
Output is correct |
6 |
Correct |
24 ms |
3308 KB |
Output is correct |
7 |
Correct |
24 ms |
3308 KB |
Output is correct |
8 |
Correct |
24 ms |
3308 KB |
Output is correct |
9 |
Correct |
28 ms |
3300 KB |
Output is correct |
10 |
Correct |
27 ms |
3292 KB |
Output is correct |
11 |
Correct |
24 ms |
3308 KB |
Output is correct |
12 |
Correct |
26 ms |
3308 KB |
Output is correct |
13 |
Correct |
25 ms |
3308 KB |
Output is correct |
14 |
Correct |
23 ms |
3308 KB |
Output is correct |
15 |
Correct |
24 ms |
3308 KB |
Output is correct |
16 |
Correct |
24 ms |
3308 KB |
Output is correct |
17 |
Correct |
26 ms |
3308 KB |
Output is correct |
18 |
Correct |
24 ms |
3308 KB |
Output is correct |
19 |
Correct |
28 ms |
3308 KB |
Output is correct |
20 |
Correct |
28 ms |
3300 KB |
Output is correct |
21 |
Correct |
24 ms |
3308 KB |
Output is correct |
22 |
Correct |
24 ms |
3308 KB |
Output is correct |
23 |
Correct |
24 ms |
3308 KB |
Output is correct |
24 |
Correct |
24 ms |
3332 KB |
Output is correct |
25 |
Correct |
24 ms |
3308 KB |
Output is correct |
26 |
Correct |
27 ms |
3308 KB |
Output is correct |
27 |
Correct |
24 ms |
3308 KB |
Output is correct |
28 |
Correct |
28 ms |
3308 KB |
Output is correct |
29 |
Correct |
24 ms |
3308 KB |
Output is correct |
30 |
Correct |
26 ms |
3308 KB |
Output is correct |
31 |
Correct |
210 ms |
4296 KB |
Output is correct |
32 |
Correct |
102 ms |
3856 KB |
Output is correct |
33 |
Correct |
62 ms |
3648 KB |
Output is correct |
34 |
Correct |
84 ms |
3728 KB |
Output is correct |
35 |
Correct |
142 ms |
4068 KB |
Output is correct |
36 |
Correct |
39 ms |
3608 KB |
Output is correct |
37 |
Correct |
56 ms |
3696 KB |
Output is correct |
38 |
Correct |
230 ms |
4184 KB |
Output is correct |
39 |
Correct |
222 ms |
4184 KB |
Output is correct |
40 |
Correct |
57 ms |
3812 KB |
Output is correct |
41 |
Correct |
24 ms |
3308 KB |
Output is correct |
42 |
Correct |
24 ms |
3308 KB |
Output is correct |
43 |
Correct |
27 ms |
3308 KB |
Output is correct |
44 |
Correct |
24 ms |
3308 KB |
Output is correct |
45 |
Correct |
24 ms |
3308 KB |
Output is correct |
46 |
Correct |
29 ms |
3308 KB |
Output is correct |
47 |
Correct |
23 ms |
3308 KB |
Output is correct |
48 |
Correct |
25 ms |
3308 KB |
Output is correct |
49 |
Correct |
26 ms |
3236 KB |
Output is correct |
50 |
Correct |
24 ms |
3308 KB |
Output is correct |
51 |
Correct |
83 ms |
3864 KB |
Output is correct |
52 |
Correct |
166 ms |
4120 KB |
Output is correct |
53 |
Correct |
61 ms |
3708 KB |
Output is correct |
54 |
Correct |
50 ms |
3652 KB |
Output is correct |
55 |
Correct |
94 ms |
3872 KB |
Output is correct |
56 |
Correct |
69 ms |
3724 KB |
Output is correct |
57 |
Correct |
183 ms |
4384 KB |
Output is correct |
58 |
Correct |
42 ms |
3616 KB |
Output is correct |
59 |
Correct |
115 ms |
4000 KB |
Output is correct |
60 |
Correct |
114 ms |
4024 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
27 ms |
3428 KB |
Output is correct |
2 |
Correct |
26 ms |
3308 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
4 |
Correct |
24 ms |
3308 KB |
Output is correct |
5 |
Correct |
25 ms |
3308 KB |
Output is correct |
6 |
Correct |
24 ms |
3308 KB |
Output is correct |
7 |
Correct |
24 ms |
3308 KB |
Output is correct |
8 |
Correct |
24 ms |
3308 KB |
Output is correct |
9 |
Correct |
28 ms |
3300 KB |
Output is correct |
10 |
Correct |
27 ms |
3292 KB |
Output is correct |
11 |
Correct |
24 ms |
3308 KB |
Output is correct |
12 |
Correct |
26 ms |
3308 KB |
Output is correct |
13 |
Correct |
25 ms |
3308 KB |
Output is correct |
14 |
Correct |
23 ms |
3308 KB |
Output is correct |
15 |
Correct |
24 ms |
3308 KB |
Output is correct |
16 |
Correct |
24 ms |
3308 KB |
Output is correct |
17 |
Correct |
26 ms |
3308 KB |
Output is correct |
18 |
Correct |
24 ms |
3308 KB |
Output is correct |
19 |
Correct |
28 ms |
3308 KB |
Output is correct |
20 |
Correct |
28 ms |
3300 KB |
Output is correct |
21 |
Correct |
24 ms |
3308 KB |
Output is correct |
22 |
Correct |
24 ms |
3308 KB |
Output is correct |
23 |
Correct |
24 ms |
3308 KB |
Output is correct |
24 |
Correct |
24 ms |
3332 KB |
Output is correct |
25 |
Correct |
24 ms |
3308 KB |
Output is correct |
26 |
Correct |
27 ms |
3308 KB |
Output is correct |
27 |
Correct |
24 ms |
3308 KB |
Output is correct |
28 |
Correct |
28 ms |
3308 KB |
Output is correct |
29 |
Correct |
24 ms |
3308 KB |
Output is correct |
30 |
Correct |
26 ms |
3308 KB |
Output is correct |
31 |
Correct |
210 ms |
4296 KB |
Output is correct |
32 |
Correct |
102 ms |
3856 KB |
Output is correct |
33 |
Correct |
62 ms |
3648 KB |
Output is correct |
34 |
Correct |
84 ms |
3728 KB |
Output is correct |
35 |
Correct |
142 ms |
4068 KB |
Output is correct |
36 |
Correct |
39 ms |
3608 KB |
Output is correct |
37 |
Correct |
56 ms |
3696 KB |
Output is correct |
38 |
Correct |
230 ms |
4184 KB |
Output is correct |
39 |
Correct |
222 ms |
4184 KB |
Output is correct |
40 |
Correct |
57 ms |
3812 KB |
Output is correct |
41 |
Correct |
24 ms |
3308 KB |
Output is correct |
42 |
Correct |
24 ms |
3308 KB |
Output is correct |
43 |
Correct |
27 ms |
3308 KB |
Output is correct |
44 |
Correct |
24 ms |
3308 KB |
Output is correct |
45 |
Correct |
24 ms |
3308 KB |
Output is correct |
46 |
Correct |
29 ms |
3308 KB |
Output is correct |
47 |
Correct |
23 ms |
3308 KB |
Output is correct |
48 |
Correct |
25 ms |
3308 KB |
Output is correct |
49 |
Correct |
26 ms |
3236 KB |
Output is correct |
50 |
Correct |
24 ms |
3308 KB |
Output is correct |
51 |
Correct |
83 ms |
3864 KB |
Output is correct |
52 |
Correct |
166 ms |
4120 KB |
Output is correct |
53 |
Correct |
61 ms |
3708 KB |
Output is correct |
54 |
Correct |
50 ms |
3652 KB |
Output is correct |
55 |
Correct |
94 ms |
3872 KB |
Output is correct |
56 |
Correct |
69 ms |
3724 KB |
Output is correct |
57 |
Correct |
183 ms |
4384 KB |
Output is correct |
58 |
Correct |
42 ms |
3616 KB |
Output is correct |
59 |
Correct |
115 ms |
4000 KB |
Output is correct |
60 |
Correct |
114 ms |
4024 KB |
Output is correct |
61 |
Correct |
96 ms |
4068 KB |
Output is correct |
62 |
Correct |
129 ms |
4428 KB |
Output is correct |
63 |
Correct |
127 ms |
4452 KB |
Output is correct |
64 |
Correct |
45 ms |
3556 KB |
Output is correct |
65 |
Correct |
111 ms |
4200 KB |
Output is correct |
66 |
Correct |
106 ms |
4196 KB |
Output is correct |
67 |
Correct |
167 ms |
4836 KB |
Output is correct |
68 |
Correct |
188 ms |
4964 KB |
Output is correct |
69 |
Correct |
184 ms |
5092 KB |
Output is correct |
70 |
Correct |
86 ms |
3940 KB |
Output is correct |