結果

問題 No.227 簡単ポーカー
ユーザー 初見わこつです初見わこつです
提出日時 2015-09-24 21:01:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 527 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 10,756 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2023-09-26 14:53:37
合計ジャッジ時間 1,230 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,764 KB
testcase_01 AC 15 ms
7,760 KB
testcase_02 AC 15 ms
7,684 KB
testcase_03 AC 15 ms
7,764 KB
testcase_04 AC 14 ms
7,792 KB
testcase_05 AC 15 ms
7,756 KB
testcase_06 AC 15 ms
7,796 KB
testcase_07 WA -
testcase_08 AC 15 ms
7,800 KB
testcase_09 AC 15 ms
7,792 KB
testcase_10 AC 15 ms
7,760 KB
testcase_11 AC 16 ms
7,756 KB
testcase_12 AC 15 ms
7,844 KB
testcase_13 AC 15 ms
7,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python3

# This problem is http://yukicoder.me/problems/562

first_line  = input()

# first_line  = '5 6 5 6 5'

no_duplication  = set(first_line.split(' '))

answer  = []
for char in no_duplication:
    answer.append(len(first_line.split(char)) - 1)

answer  = sorted(answer)

if answer == [2, 3]:
    print('FULL HOUSE')
elif answer == [1, 1, 3]:
    print('THREE CARD')
elif answer == [1, 2, 2]:
    print('TWO PAIR')
elif answer == [1, 1, 1, 2]:
    print('ONE PAIR')
else:
    print('NO HAND')

# print(answer)
0