結果
問題 |
No.227 簡単ポーカー
|
ユーザー |
![]() |
提出日時 | 2017-12-29 06:56:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 384 bytes |
コンパイル時間 | 297 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-21 09:50:37 |
合計ジャッジ時間 | 1,259 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 10 |
ソースコード
def main(): cards = input().split() cards.sort() hands = [1] for i in range(4): if cards[i] == cards[i+1]: hands[-1]+=1 else: hands.append(1) hands.sort() if hands == [3,2]: print("FULL HOUSE") elif hands == [3,1,1]: print("THREE CARD") elif hands == [2,2,1]: print("TWO PAIR") elif hands == [2,1,1,1]: print("ONE PAIR") else: print("NO HAND") main()