Submission #1240734
Source Code Expand
s = input() a = 0 for i in range(0,len(s)): if s[i] == 'A': a = i break b = 0 for i in reversed(range(0, len(s))): if s[i] == 'Z': b = i break print((b - a) + 1)
Submission Info
Submission Time | |
---|---|
Task | B - A to Z String |
User | mute1997 |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 218 Byte |
Status | AC |
Exec Time | 36 ms |
Memory | 3516 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_example_01.txt, 00_example_02.txt, 00_example_03.txt |
All | 00_example_01.txt, 00_example_02.txt, 00_example_03.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_01.txt | AC | 17 ms | 3060 KB |
00_example_02.txt | AC | 17 ms | 2940 KB |
00_example_03.txt | AC | 17 ms | 2940 KB |
01.txt | AC | 18 ms | 3516 KB |
02.txt | AC | 17 ms | 3412 KB |
03.txt | AC | 18 ms | 3316 KB |
04.txt | AC | 17 ms | 3188 KB |
05.txt | AC | 18 ms | 3496 KB |
06.txt | AC | 36 ms | 3500 KB |
07.txt | AC | 18 ms | 3496 KB |
08.txt | AC | 18 ms | 3496 KB |
09.txt | AC | 18 ms | 3500 KB |