Submission #1606711
Source Code Expand
def solution(): a = raw_input() aIdx = 0 zIdx = 0 maxLength = 0 hasSet = False for i in range(len(a)): if a[i] == 'A' and not hasSet: aIdx = i hasSet = True if a[i] == 'Z': zIdx = i print zIdx - aIdx + 1 solution()
Submission Info
Submission Time | |
---|---|
Task | A - RGB Cards |
User | vjudge5 |
Language | Python (2.7.6) |
Score | 0 |
Code Size | 246 Byte |
Status | WA |
Exec Time | 10 ms |
Memory | 2568 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt |
All | in1.txt, in2.txt, in3.txt, in4.txt, in5.txt, s1.txt, s2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
in1.txt | WA | 9 ms | 2568 KB |
in2.txt | WA | 10 ms | 2568 KB |
in3.txt | WA | 10 ms | 2568 KB |
in4.txt | WA | 10 ms | 2568 KB |
in5.txt | WA | 10 ms | 2568 KB |
s1.txt | WA | 10 ms | 2568 KB |
s2.txt | WA | 10 ms | 2568 KB |