Submission #3787064
Source Code Expand
A,B=map(int,input().strip().split(" ")) count=0 for i in range(0,B-A+1): C=A+i l=[int(x) for x in list(str(C))] if(l[0]==l[4] and l[1]==l[3]): count+=1 print(count)
Submission Info
Submission Time | |
---|---|
Task | B - Palindromic Numbers |
User | pari437 |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 197 Byte |
Status | AC |
Exec Time | 191 ms |
Memory | 3060 KB |
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 | 190 ms | 2940 KB |
02.txt | AC | 191 ms | 2940 KB |
03.txt | AC | 188 ms | 2940 KB |
04.txt | AC | 103 ms | 3060 KB |
05.txt | AC | 89 ms | 2940 KB |
06.txt | AC | 74 ms | 2940 KB |
07.txt | AC | 183 ms | 2940 KB |
08.txt | AC | 19 ms | 3060 KB |
s1.txt | AC | 19 ms | 2940 KB |
s2.txt | AC | 140 ms | 2940 KB |