結果

問題 No.227 簡単ポーカー
ユーザー あかりきあかりき
提出日時 2021-05-24 06:13:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 286 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 82,780 KB
実行使用メモリ 55,356 KB
最終ジャッジ日時 2024-04-20 16:19:54
合計ジャッジ時間 1,340 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
54,452 KB
testcase_01 AC 38 ms
54,436 KB
testcase_02 AC 38 ms
54,300 KB
testcase_03 AC 36 ms
54,572 KB
testcase_04 AC 36 ms
54,440 KB
testcase_05 AC 38 ms
53,968 KB
testcase_06 AC 37 ms
55,356 KB
testcase_07 AC 36 ms
53,944 KB
testcase_08 AC 36 ms
53,912 KB
testcase_09 AC 36 ms
53,356 KB
testcase_10 AC 41 ms
54,448 KB
testcase_11 AC 36 ms
53,960 KB
testcase_12 AC 37 ms
53,696 KB
testcase_13 AC 39 ms
53,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
a=list(map(int,input().split()))
A=collections.Counter(a)
L=list(A.values())
L.sort()
L.reverse()
if L==[3,2]:
  print('FULL HOUSE')
elif L==[3,1,1]:
  print('THREE CARD')
elif L==[2,2,1]:
  print('TWO PAIR')
elif L[0]==2:
  print('ONE PAIR')
else:
  print('NO HAND')
0