結果
問題 | No.227 簡単ポーカー |
ユーザー |
![]() |
提出日時 | 2020-03-29 09:44:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 508 bytes |
コンパイル時間 | 372 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2025-01-02 13:11:57 |
合計ジャッジ時間 | 1,496 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() A=[int(i) for i in input().split()] A.sort() a,b,c,d,e=A if a==b==c==d or b==c==d==e: print("NO HAND") elif a==b==c and d==e: print("FULL HOUSE") elif a==b and c==d==e: print("FULL HOUSE") elif a==b==c or b==c==d or c==d==e: print("THREE CARD") elif a==b and c==d: print("TWO PAIR") elif a==b and d==e: print("TWO PAIR") elif b==c and d==e: print("TWO PAIR") elif a==b or b==c or c==d or d==e: print("ONE PAIR") else: print("NO HAND")