Submission #8528112
Source Code Expand
N = int(input()) li = [int(input()) for _ in range(N)] num = N cnt = 0 for i in li[::-1]: if i == num: cnt += 1 num -= 1 print(N - cnt)
Submission Info
Submission Time | |
---|---|
Task | B - Backfront |
User | hiraku |
Language | PyPy3 (2.4.0) |
Score | 0 |
Code Size | 153 Byte |
Status | WA |
Exec Time | 781 ms |
Memory | 58968 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 500 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt, s3.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 20.txt, 21.txt, 22.txt, 23.txt, 24.txt, 25.txt, s1.txt, s2.txt, s3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | WA | 781 ms | 58968 KB |
02.txt | WA | 730 ms | 58712 KB |
03.txt | WA | 755 ms | 58712 KB |
04.txt | WA | 744 ms | 58712 KB |
05.txt | WA | 735 ms | 58840 KB |
06.txt | WA | 739 ms | 58712 KB |
07.txt | AC | 728 ms | 58584 KB |
08.txt | AC | 757 ms | 58584 KB |
09.txt | AC | 746 ms | 58584 KB |
10.txt | AC | 740 ms | 58584 KB |
11.txt | WA | 777 ms | 58712 KB |
12.txt | WA | 730 ms | 58840 KB |
13.txt | WA | 748 ms | 58584 KB |
14.txt | WA | 730 ms | 58712 KB |
15.txt | WA | 730 ms | 58712 KB |
16.txt | WA | 719 ms | 58712 KB |
17.txt | WA | 739 ms | 58712 KB |
18.txt | WA | 752 ms | 58712 KB |
19.txt | WA | 724 ms | 58840 KB |
20.txt | WA | 751 ms | 58724 KB |
21.txt | WA | 768 ms | 58584 KB |
22.txt | WA | 734 ms | 58584 KB |
23.txt | AC | 165 ms | 38256 KB |
24.txt | AC | 161 ms | 38256 KB |
25.txt | AC | 162 ms | 38256 KB |
s1.txt | AC | 162 ms | 38256 KB |
s2.txt | AC | 164 ms | 38256 KB |
s3.txt | AC | 161 ms | 38256 KB |