Submission #20945456
Source Code Expand
a,b=map(int,input().split())
cnt=0
for i in range(a,b+1):
x=int(str(i)[::-1])
if x==i and a<=x<=b:
cnt+=1
print(cnt)
Submission Info
| Submission Time | |
|---|---|
| Task | B - Palindromic Numbers |
| User | nia48 |
| Language | Python (3.8.2) |
| Score | 200 |
| Code Size | 146 Byte |
| Status | AC |
| Exec Time | 65 ms |
| Memory | 9008 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | s1.txt, s2.txt |
| All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, s1.txt, s2.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01.txt | AC | 65 ms | 8856 KiB |
| 02.txt | AC | 59 ms | 8980 KiB |
| 03.txt | AC | 60 ms | 8868 KiB |
| 04.txt | AC | 43 ms | 9008 KiB |
| 05.txt | AC | 38 ms | 8956 KiB |
| 06.txt | AC | 34 ms | 8812 KiB |
| 07.txt | AC | 57 ms | 8812 KiB |
| 08.txt | AC | 18 ms | 8984 KiB |
| s1.txt | AC | 18 ms | 8856 KiB |
| s2.txt | AC | 50 ms | 8812 KiB |