結果
問題 |
No.227 簡単ポーカー
|
ユーザー |
|
提出日時 | 2021-06-16 22:04:13 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 46 ms / 5,000 ms |
コード長 | 298 bytes |
コンパイル時間 | 1,043 ms |
コンパイル使用メモリ | 82,156 KB |
実行使用メモリ | 55,280 KB |
最終ジャッジ日時 | 2024-12-31 10:37:22 |
合計ジャッジ時間 | 1,976 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
import collections A = list(map(int, input().split())) _, c = zip(*collections.Counter(A).most_common()) if c == (3, 2): print("FULL HOUSE") elif c == (3, 1, 1): print("THREE CARD") elif c == (2, 2, 1): print("TWO PAIR") elif c == (2, 1, 1, 1): print("ONE PAIR") else: print("NO HAND")