結果
| 問題 |
No.227 簡単ポーカー
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-01 18:25:32 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 5,000 ms |
| コード長 | 477 bytes |
| コンパイル時間 | 447 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 10,368 KB |
| 最終ジャッジ日時 | 2025-05-01 18:25:34 |
| 合計ジャッジ時間 | 1,834 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
def main():
ns = list(map(int, input().split()))
count = 0
for i in range(0, 5):
for j in range(0, 5):
if ns[i] == ns[j]:
count += 1
match count:
case 7:
print("ONE PAIR")
case 9:
print("TWO PAIR")
case 11:
print("THREE CARD")
case 13:
print("FULL HOUSE")
case _:
print("NO HAND")
if __name__ == '__main__':
main()