結果
| 問題 |
No.3020 ユークリッドの互除法・改
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 20:47:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 394 bytes |
| コンパイル時間 | 198 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 65,024 KB |
| 最終ジャッジ日時 | 2025-06-12 20:49:07 |
| 合計ジャッジ時間 | 2,877 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 21 |
ソースコード
# Read the input string
s = input().strip()
# Initialize the counts for each character
counts = [0, 0, 0, 0, 0]
# Mapping each character to its respective index
char_map = {'Y': 0, 'E': 1, 'A': 2, 'H': 3, '!': 4}
# Iterate through each character in the string
for c in s:
idx = char_map[c]
counts[idx] += 1
# Print the counts in the specified order
print(' '.join(map(str, counts)))
gew1fw