結果

問題 No.227 簡単ポーカー
ユーザー togatogatogatoga
提出日時 2015-08-23 08:29:25
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 309 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 6,664 KB
実行使用メモリ 6,040 KB
最終ジャッジ日時 2023-09-25 16:15:59
合計ジャッジ時間 1,031 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,904 KB
testcase_01 AC 11 ms
5,900 KB
testcase_02 AC 11 ms
5,920 KB
testcase_03 AC 11 ms
5,920 KB
testcase_04 AC 11 ms
6,024 KB
testcase_05 AC 11 ms
5,836 KB
testcase_06 AC 10 ms
5,916 KB
testcase_07 AC 11 ms
6,024 KB
testcase_08 AC 11 ms
5,904 KB
testcase_09 AC 11 ms
6,036 KB
testcase_10 AC 11 ms
6,040 KB
testcase_11 AC 11 ms
5,836 KB
testcase_12 AC 11 ms
5,840 KB
testcase_13 AC 11 ms
5,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A = map(int, raw_input().split())
A.sort()
deg = [0] * 14
for x in A:
    deg[x] += 1
if (deg.count(3) and deg.count(2)):
    print "FULL HOUSE"
elif (deg.count(3)):
    print "THREE CARD"
elif (deg.count(2) == 2):
    print "TWO PAIR"
elif (deg.count(2) == 1):
    print "ONE PAIR"
else:
    print "NO HAND"
0