結果
問題 |
No.3264 岩井数
|
ユーザー |
![]() |
提出日時 | 2025-09-06 14:49:05 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 380 bytes |
コンパイル時間 | 355 ms |
コンパイル使用メモリ | 82,444 KB |
実行使用メモリ | 76,032 KB |
最終ジャッジ日時 | 2025-09-06 14:49:13 |
合計ジャッジ時間 | 6,506 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | AC * 7 TLE * 1 -- * 22 |
ソースコード
N = int(input()) def is_yiwiy9_number(num: str): if num[-1] != "9": return False for i in range((len(num) - 1) // 2): if num[i] != num[len(num) - i - 1 - 1]: return False return True NN = N * ((10**9) // N + 1) while True: if NN % 10 == 9: if is_yiwiy9_number(str(NN)): print(NN) break NN += N