結果
問題 |
No.227 簡単ポーカー
|
ユーザー |
|
提出日時 | 2018-03-28 00:19:16 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 616 bytes |
コンパイル時間 | 143 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-25 12:59:39 |
合計ジャッジ時間 | 1,060 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 RE * 2 |
ソースコード
A=[] first = raw_input() for i in range(0,5): split_first = first.split() A.append(int(split_first[i])) LL = list(set(A)) if len(set(A)) == 2: if A.count(LL[0]) == 2 or A.count(LL[0]) == 3: print 'FULL HOUSE' else: print 'NO HAND' elif A.count(A[0]) == 3 or A.count(A[1]) == 3 or A.count(A[2]) ==3 or A.count(A[3]) == 3 or A.count(A[4]) == 3: print 'THREE CARD' elif len(set(A)) == 3: if A.count(L[0]) <= 2 or A.count(L[1]) <= 2 or A.count(L[2]) <= 2: print 'TWO PAIR' elif len(set(A)) == 4: print 'ONE PAIR' else: print 'NO HAND'