結果
問題 |
No.227 簡単ポーカー
|
ユーザー |
|
提出日時 | 2022-04-22 18:24:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 481 bytes |
コンパイル時間 | 97 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-23 23:17:53 |
合計ジャッジ時間 | 1,269 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 14 |
ソースコード
def main(): a, b, c, d, e = (int(x) for x in input().split( )) l = [a, b, c, d, e] l.sort() n_dic = {} for y in l: n_dic[y] = l.count(y) hand = list(n_dic.values()) hand.sort() print(hand) if hand == [2,3]: print("FULL HOUSE") if hand == [1,1,3]: print('THREE CARD') if hand == [1,2,2]: print('TWO PAIR') if hand == [1,1,1,2]: print('ONE PAIR') if __name__ == "__main__": main()