Submission #4214476
Source Code Expand
l = list()
flg=True
for i in range(3):
l.extend(input().split())
cnt = [0,0,0,0]
l = [int(i) for i in l]
for i in l:
cnt[i-1]+=1
for i in cnt:
if i > 2:
flg=False
if flg:
print("YES")
else:
print("NO")
Submission Info
| Submission Time | |
|---|---|
| Task | B - Path |
| User | naoki12 |
| Language | Python (3.4.3) |
| Score | 200 |
| Code Size | 229 Byte |
| Status | AC |
| Exec Time | 17 ms |
| Memory | 3064 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| 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, s1.txt, s2.txt, s3.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01.txt | AC | 17 ms | 3060 KiB |
| 02.txt | AC | 17 ms | 3060 KiB |
| 03.txt | AC | 17 ms | 2940 KiB |
| 04.txt | AC | 17 ms | 3060 KiB |
| 05.txt | AC | 17 ms | 3060 KiB |
| 06.txt | AC | 17 ms | 2940 KiB |
| 07.txt | AC | 17 ms | 3064 KiB |
| 08.txt | AC | 17 ms | 3060 KiB |
| 09.txt | AC | 17 ms | 2940 KiB |
| 10.txt | AC | 17 ms | 3064 KiB |
| s1.txt | AC | 17 ms | 3060 KiB |
| s2.txt | AC | 17 ms | 3060 KiB |
| s3.txt | AC | 17 ms | 3060 KiB |