結果

問題 No.227 簡単ポーカー
ユーザー MaboyMaboy
提出日時 2018-02-15 10:06:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 255 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 7,952 KB
最終ジャッジ日時 2023-08-26 20:17:55
合計ジャッジ時間 950 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 14 ms
7,904 KB
testcase_02 WA -
testcase_03 AC 13 ms
7,692 KB
testcase_04 AC 13 ms
7,772 KB
testcase_05 AC 13 ms
7,904 KB
testcase_06 AC 14 ms
7,768 KB
testcase_07 AC 12 ms
7,756 KB
testcase_08 AC 12 ms
7,824 KB
testcase_09 AC 13 ms
7,816 KB
testcase_10 AC 14 ms
7,760 KB
testcase_11 AC 13 ms
7,952 KB
testcase_12 AC 13 ms
7,756 KB
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

c=input().split()
s=set(c)
l=len(s)
if l==4:
  a="ONE PAIR"
elif l==3:
  for i in s:
    m=max(0,c.count(i)-2)
  a=("TWO PAIR","THREE CARD")[m]
elif l==2:
  for i in s:
    m=max(0,c.count(i)-3)
  a=("FULL HOUSE","NO HAND")[m]
else:
  a="NO HAND"
print(a)
0