結果

問題 No.227 簡単ポーカー
ユーザー 👑 colognecologne
提出日時 2022-08-29 19:04:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 532 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-04-24 09:19:17
合計ジャッジ時間 1,229 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 38 ms
52,352 KB
testcase_02 AC 36 ms
52,224 KB
testcase_03 AC 36 ms
51,456 KB
testcase_04 AC 32 ms
51,968 KB
testcase_05 AC 35 ms
52,096 KB
testcase_06 WA -
testcase_07 AC 34 ms
51,584 KB
testcase_08 WA -
testcase_09 AC 34 ms
51,968 KB
testcase_10 AC 34 ms
51,840 KB
testcase_11 AC 32 ms
52,224 KB
testcase_12 AC 32 ms
51,840 KB
testcase_13 AC 33 ms
51,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    A = sorted(map(int, input().split()))

    if A[0] == A[1] and A[3] == A[4] and A[2] in [A[1], A[3]]:
        print('FULL HOUSE')
    elif A[0] == A[1] == A[2] or A[1] == A[2] == A[3] or A[2] == A[3] == A[4]:
        print('THREE CARD')
    elif (A[0] == A[1] or A[1] == A[2]) and (A[2] == A[3] or A[3] == A[4]):
        print('TWO PAIR')
    elif (A[0] == A[1] or A[1] == A[2]) or (A[2] == A[3] or A[3] == A[4]):
        print('ONE PAIR')
    else:
        print('NO HAND')



if __name__ == '__main__':
    main()
0