結果
問題 |
No.3020 ユークリッドの互除法・改
|
ユーザー |
![]() |
提出日時 | 2025-06-12 15:57:15 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 394 bytes |
コンパイル時間 | 149 ms |
コンパイル使用メモリ | 82,972 KB |
実行使用メモリ | 67,324 KB |
最終ジャッジ日時 | 2025-06-12 15:57:45 |
合計ジャッジ時間 | 2,331 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)))