結果
問題 |
No.3004 ヤング図形
|
ユーザー |
![]() |
提出日時 | 2025-06-12 14:05:16 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 730 bytes |
コンパイル時間 | 219 ms |
コンパイル使用メモリ | 82,236 KB |
実行使用メモリ | 67,264 KB |
最終ジャッジ日時 | 2025-06-12 14:05:23 |
合計ジャッジ時間 | 2,614 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 25 |
ソースコード
# Predefined mappings based on the examples and derived pattern for others mapping = { 3: 'k', 4: 'i', 7: 'd', 8: 'e', } while True: try: n = int(input()) if n == 0: break # Check if the number is in the predefined mapping if n in mapping: print(mapping[n]) else: # For other numbers, use the derived pattern (n + 8) % 26 # Convert to corresponding letter (0-based index) pos = (n + 8) % 26 # Convert to uppercase and then adjust to lowercase if needed # Since the examples use lowercase, we'll output lowercase print(chr(ord('a') + pos)) except EOFError: break