結果
| 問題 |
No.3020 ユークリッドの互除法・改
|
| コンテスト | |
| ユーザー |
qwewe
|
| 提出日時 | 2025-05-14 13:14:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 647 bytes |
| コンパイル時間 | 354 ms |
| コンパイル使用メモリ | 82,320 KB |
| 実行使用メモリ | 54,188 KB |
| 最終ジャッジ日時 | 2025-05-14 13:15:56 |
| 合計ジャッジ時間 | 2,103 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 21 |
ソースコード
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()
qwewe