結果
問題 |
No.227 簡単ポーカー
|
ユーザー |
![]() |
提出日時 | 2022-07-18 00:20:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 5,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 69 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-30 00:54:20 |
合計ジャッジ時間 | 1,132 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
from collections import Counter A=Counter(map(int,input().split())) V=list(A.values()) if 2 in V and 3 in V: print("FULL HOUSE") elif 3 in V: print("THREE CARD") elif V.count(2)==2: print("TWO PAIR") elif 2 in V: print("ONE PAIR") else: print("NO HAND")