Submission #891310
Source Code Expand
N = int(raw_input()) a = map(int, raw_input().split()) ret = 0 for idx, val in enumerate(a): if a[idx] == idx: ret += 1 print ret
Submission Info
Submission Time | |
---|---|
Task | B - Friendly Rabbits |
User | yhan |
Language | Python (2.7.6) |
Score | 0 |
Code Size | 142 Byte |
Status | WA |
Exec Time | 71 ms |
Memory | 11328 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.txt |
All | 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt, 1_08.txt, 1_09.txt, 1_10.txt, 1_11.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | AC | 16 ms | 2568 KB |
0_01.txt | AC | 16 ms | 2568 KB |
0_02.txt | WA | 16 ms | 2568 KB |
1_00.txt | AC | 16 ms | 2568 KB |
1_01.txt | WA | 70 ms | 11328 KB |
1_02.txt | AC | 68 ms | 11328 KB |
1_03.txt | WA | 71 ms | 11328 KB |
1_04.txt | WA | 70 ms | 11200 KB |
1_05.txt | WA | 70 ms | 11328 KB |
1_06.txt | WA | 68 ms | 11328 KB |
1_07.txt | WA | 70 ms | 11328 KB |
1_08.txt | WA | 35 ms | 5804 KB |
1_09.txt | AC | 59 ms | 9768 KB |
1_10.txt | WA | 54 ms | 8688 KB |
1_11.txt | WA | 24 ms | 3972 KB |