結果

問題 No.227 簡単ポーカー
ユーザー ABKZABKZ
提出日時 2021-06-16 22:04:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 5,000 ms
コード長 298 bytes
コンパイル時間 431 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 71,824 KB
最終ジャッジ日時 2023-08-30 03:33:47
合計ジャッジ時間 2,675 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
71,656 KB
testcase_01 AC 95 ms
71,632 KB
testcase_02 AC 91 ms
71,824 KB
testcase_03 AC 91 ms
71,632 KB
testcase_04 AC 91 ms
71,628 KB
testcase_05 AC 91 ms
71,732 KB
testcase_06 AC 90 ms
71,800 KB
testcase_07 AC 92 ms
71,816 KB
testcase_08 AC 93 ms
71,636 KB
testcase_09 AC 91 ms
71,600 KB
testcase_10 AC 91 ms
71,396 KB
testcase_11 AC 91 ms
71,792 KB
testcase_12 AC 93 ms
71,692 KB
testcase_13 AC 91 ms
71,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

A = list(map(int, input().split()))

_, c = zip(*collections.Counter(A).most_common())

if c == (3, 2):
  print("FULL HOUSE")
elif c == (3, 1, 1):
  print("THREE CARD")
elif c == (2, 2, 1):
  print("TWO PAIR")
elif c == (2, 1, 1, 1):
  print("ONE PAIR")
else:
  print("NO HAND")
0