結果
| 問題 | No.227 簡単ポーカー |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-11 11:18:18 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 33 ms / 5,000 ms |
| + 234µs | |
| コード長 | 992 bytes |
| 記録 | |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 83,244 KB |
| 実行使用メモリ | 64,356 KB |
| 最終ジャッジ日時 | 2026-10-11 06:16:59 |
| 合計ジャッジ時間 | 1,688 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
import sys
import math
import bisect
from heapq import heapify, heappop, heappush
from collections import deque, defaultdict, Counter
from functools import lru_cache
from itertools import accumulate, combinations, permutations, product
sys.set_int_max_str_digits(10 ** 6)
sys.setrecursionlimit(1000000)
MOD = 10 ** 9 + 7
MOD99 = 998244353
input = lambda: sys.stdin.readline().strip()
NI = lambda: int(input())
NMI = lambda: map(int, input().split())
NLI = lambda: list(NMI())
SI = lambda: input()
SMI = lambda: input().split()
SLI = lambda: list(SMI())
EI = lambda m: [NLI() for _ in range(m)]
def main():
A = sorted(NLI())
C = Counter(A)
if len(C) == 2 and set(C.values()) == {2, 3}:
print("FULL HOUSE")
elif 3 in C.values():
print("THREE CARD")
elif list(C.values()).count(2) == 2:
print("TWO PAIR")
elif list(C.values()).count(2) == 1:
print("ONE PAIR")
else:
print("NO HAND")
if __name__ == "__main__":
main()