結果

問題 No.3004 ヤング図形
ユーザー gew1fw
提出日時 2025-06-12 19:22:02
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 381 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 82,228 KB
実行使用メモリ 66,720 KB
最終ジャッジ日時 2025-06-12 19:22:24
合計ジャッジ時間 2,538 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

# Read the input lines until 0 is encountered
import sys

mapping = {
    3: 'k',
    4: 'i',
    7: 'd',
    8: 'e'
}

for line in sys.stdin:
    num = int(line.strip())
    if num == 0:
        break
    if num in mapping:
        print(mapping[num])
    else:
        # Handle numbers not in the mapping (though problem constraints may imply they are covered)
        print('?')
0