Submission #62028083
Source Code Expand
Copy
a = list(map(int, input().split()))ans = "No"for i in range(5):if a[i] == i+1:continueif a[i] == i+2 and a[i+1] == i+1:ans = "Yes"else:breakprint(ans)
a = list(map(int, input().split())) ans = "No" for i in range(5): if a[i] == i+1: continue if a[i] == i+2 and a[i+1] == i+1: ans = "Yes" else: break print(ans)
Submission Info
Submission Time | |
---|---|
Task | A - 12435 |
User | amit3396 |
Language | Python (CPython 3.11.4) |
Score | 150 |
Code Size | 208 Byte |
Status | AC |
Exec Time | 10 ms |
Memory | 8588 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 150 / 150 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt |
All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_handmade_00.txt, 01_handmade_01.txt, 01_handmade_02.txt, 02_Yes_00.txt, 02_Yes_01.txt, 03_No_00.txt, 03_No_01.txt, 03_No_02.txt, 03_No_03.txt, 03_No_04.txt, 03_No_05.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 9 ms | 8464 KB |
00_sample_01.txt | AC | 9 ms | 8524 KB |
00_sample_02.txt | AC | 9 ms | 8492 KB |
00_sample_03.txt | AC | 9 ms | 8588 KB |
01_handmade_00.txt | AC | 9 ms | 8564 KB |
01_handmade_01.txt | AC | 9 ms | 8556 KB |
01_handmade_02.txt | AC | 9 ms | 8468 KB |
02_Yes_00.txt | AC | 9 ms | 8432 KB |
02_Yes_01.txt | AC | 9 ms | 8488 KB |
03_No_00.txt | AC | 9 ms | 8472 KB |
03_No_01.txt | AC | 9 ms | 8532 KB |
03_No_02.txt | AC | 10 ms | 8508 KB |
03_No_03.txt | AC | 10 ms | 8516 KB |
03_No_04.txt | AC | 9 ms | 8408 KB |
03_No_05.txt | AC | 9 ms | 8524 KB |