Submission #64053318
Source Code Expand
Copy
A = list(map(int, input().split()))B = list(set(A))C = []D = []for i in range(len(B)):if A.count(B[i]) >= 3:C.append(i)elif A.count(B[i]) == 2:D.append(i)if len(C) >= 2:print("Yes")elif len(C) == 1 and len(D) >= 1:print("Yes")else:print("No")
A = list(map(int, input().split())) B = list(set(A)) C = [] D = [] for i in range(len(B)): if A.count(B[i]) >= 3: C.append(i) elif A.count(B[i]) == 2: D.append(i) if len(C) >= 2: print("Yes") elif len(C) == 1 and len(D) >= 1: print("Yes") else: print("No")
Submission Info
Submission Time | |
---|---|
Task | B - Full House 3 |
User | shige111 |
Language | Python (CPython 3.11.4) |
Score | 250 |
Code Size | 304 Byte |
Status | AC |
Exec Time | 9 ms |
Memory | 8632 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 250 / 250 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt |
All | hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
hand_01.txt | AC | 8 ms | 8524 KB |
hand_02.txt | AC | 9 ms | 8472 KB |
hand_03.txt | AC | 9 ms | 8492 KB |
hand_04.txt | AC | 9 ms | 8512 KB |
sample_01.txt | AC | 9 ms | 8528 KB |
sample_02.txt | AC | 9 ms | 8592 KB |
sample_03.txt | AC | 9 ms | 8548 KB |
sample_04.txt | AC | 9 ms | 8512 KB |
test_01.txt | AC | 9 ms | 8484 KB |
test_02.txt | AC | 8 ms | 8472 KB |
test_03.txt | AC | 9 ms | 8492 KB |
test_04.txt | AC | 9 ms | 8472 KB |
test_05.txt | AC | 9 ms | 8488 KB |
test_06.txt | AC | 9 ms | 8500 KB |
test_07.txt | AC | 9 ms | 8524 KB |
test_08.txt | AC | 9 ms | 8488 KB |
test_09.txt | AC | 9 ms | 8600 KB |
test_10.txt | AC | 9 ms | 8532 KB |
test_11.txt | AC | 8 ms | 8460 KB |
test_12.txt | AC | 9 ms | 8448 KB |
test_13.txt | AC | 9 ms | 8496 KB |
test_14.txt | AC | 9 ms | 8524 KB |
test_15.txt | AC | 9 ms | 8424 KB |
test_16.txt | AC | 9 ms | 8472 KB |
test_17.txt | AC | 8 ms | 8392 KB |
test_18.txt | AC | 9 ms | 8464 KB |
test_19.txt | AC | 9 ms | 8416 KB |
test_20.txt | AC | 9 ms | 8468 KB |
test_21.txt | AC | 9 ms | 8584 KB |
test_22.txt | AC | 9 ms | 8440 KB |
test_23.txt | AC | 9 ms | 8632 KB |
test_24.txt | AC | 9 ms | 8592 KB |
test_25.txt | AC | 8 ms | 8456 KB |
test_26.txt | AC | 8 ms | 8540 KB |