結果
問題 | No.227 簡単ポーカー |
ユーザー | Shin09shin |
提出日時 | 2019-01-15 04:22:19 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 430 bytes |
コンパイル時間 | 303 ms |
コンパイル使用メモリ | 86,916 KB |
実行使用メモリ | 71,852 KB |
最終ジャッジ日時 | 2023-09-05 21:10:35 |
合計ジャッジ時間 | 2,493 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 95 ms
71,544 KB |
testcase_02 | AC | 95 ms
71,412 KB |
testcase_03 | AC | 93 ms
71,356 KB |
testcase_04 | AC | 96 ms
71,524 KB |
testcase_05 | AC | 94 ms
71,368 KB |
testcase_06 | AC | 96 ms
71,560 KB |
testcase_07 | WA | - |
testcase_08 | AC | 98 ms
71,368 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 96 ms
71,624 KB |
testcase_13 | WA | - |
ソースコード
import collections # 入力 input = list(map(int, input().split())) # 計算 # 重複を取得 c = collections.Counter(input) list = list(c.values()) if len(list) == 2: if list[0] == 3 and list[1] == 2: print("FULL HOUSE") elif len(list) == 3: if list[0] == 3: print("THREE CARD") else: print("TWO PAIR") else: if list[0] == 2: print("ONE PAIR") else: print("NO HAND")