結果

問題 No.227 簡単ポーカー
ユーザー パイソン勉強中パイソン勉強中
提出日時 2018-12-08 00:00:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 493 bytes
コンパイル時間 332 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 7,932 KB
最終ジャッジ日時 2023-10-12 04:05:45
合計ジャッジ時間 1,431 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,736 KB
testcase_01 AC 16 ms
7,740 KB
testcase_02 AC 16 ms
7,912 KB
testcase_03 AC 16 ms
7,828 KB
testcase_04 AC 16 ms
7,780 KB
testcase_05 AC 16 ms
7,804 KB
testcase_06 AC 16 ms
7,728 KB
testcase_07 AC 16 ms
7,768 KB
testcase_08 AC 16 ms
7,776 KB
testcase_09 AC 17 ms
7,932 KB
testcase_10 AC 16 ms
7,776 KB
testcase_11 AC 16 ms
7,912 KB
testcase_12 AC 16 ms
7,832 KB
testcase_13 AC 16 ms
7,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def mainProc(lst) :
    two, three = 0, 0
    for i in range(1,14):
        if (lst.count(i) == 2) : two += 1
        if (lst.count(i) == 3) : three += 1
    if   three == 1 and two == 1 : print('FULL HOUSE')
    elif three == 1 and two == 0 : print('THREE CARD')
    elif three == 0 and two == 2 : print('TWO PAIR')
    elif three == 0 and two == 1 : print('ONE PAIR')
    else : print('NO HAND')

if __name__ == '__main__' :
    
    lst = [int(i) for i in input().split()]
    mainProc(lst)
0