結果
問題 |
No.227 簡単ポーカー
|
ユーザー |
|
提出日時 | 2019-10-08 20:53:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 399 bytes |
コンパイル時間 | 442 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-07 16:45:08 |
合計ジャッジ時間 | 1,201 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
nums = input().split() dict={} for i in nums: if i in dict: dict[i]+=1 else: dict[i]=1 ans=[] for key,value in dict.items(): ans.append(value) if ans.count(3)==1 and ans.count(2)==1: print("FULL HOUSE") elif ans.count(3)==1: print("THREE CARD") elif ans.count(2)==2: print("TWO PAIR") elif ans.count(2)==1: print("ONE PAIR") else: print("NO HAND")