結果

問題 No.3020 ユークリッドの互除法・改
コンテスト
ユーザー qwewe
提出日時 2025-05-14 13:14:59
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 647 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 225 ms
コンパイル使用メモリ 95,208 KB
実行使用メモリ 78,464 KB
最終ジャッジ日時 2026-07-10 16:20:08
合計ジャッジ時間 3,525 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys

def solve():
    # Read the input string from standard input
    s = sys.stdin.readline().strip()

    # Count the occurrences of each character
    count_y = s.count('Y')
    count_e = s.count('E')
    count_a = s.count('A')
    count_h = s.count('H')
    count_exclamation = s.count('!')

    # Prepare the output string with counts separated by spaces
    # Using an f-string for easy formatting
    output_string = f"{count_y} {count_e} {count_a} {count_h} {count_exclamation}"

    # Print the result followed by a newline (print naturally adds a newline)
    print(output_string)

# Call the function to execute the logic
solve()
0