結果
問題 | No.227 簡単ポーカー |
ユーザー |
|
提出日時 | 2021-06-18 09:54:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 234 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-13 03:25:45 |
合計ジャッジ時間 | 1,442 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
from collections import Counter A = list(map(int, input().split())) c = Counter(A) mc = c.most_common() if mc[0][1]==3 and mc[1][1]==2: print("FULL HOUSE") elif mc[0][1]==3: print("THREE CARD") elif mc[0][1]==2 and mc[1][1]==2: print("TWO PAIR") elif mc[0][1]==2: print("ONE PAIR") else: print("NO HAND")