結果
問題 |
No.227 簡単ポーカー
|
ユーザー |
|
提出日時 | 2018-05-07 20:28:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 440 bytes |
コンパイル時間 | 86 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-06-28 02:19:23 |
合計ジャッジ時間 | 1,138 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 14 |
ソースコード
def check_hand(a,b,c,d,e): list_hands = [a,b,c,d,e] for i in list_hands: if list_hands.count(i) > 1: result = "ONE PAIR" for j in list_hands: if list_hands.count(j) == 2 and j != i: result = "TWO PAIR" elif list_hands.count(j) == 3 and j != i: result = "FULL HOUSE" else: result = "NO PAIR" return result