結果
| 問題 |
No.3264 岩井数
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-09-15 22:10:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 243 bytes |
| コンパイル時間 | 420 ms |
| コンパイル使用メモリ | 82,652 KB |
| 実行使用メモリ | 84,052 KB |
| 最終ジャッジ日時 | 2025-09-15 22:10:27 |
| 合計ジャッジ時間 | 5,360 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | AC * 7 TLE * 1 -- * 22 |
ソースコード
N = int(input())
x = 10 ** 9 // N
a = -x % 10 + 1
x += a
f = True
while f:
s = str(N * x)
ns = len(s) - 1
for i in range(ns//2):
if s[i] != s[ns-i-1]:
break
else:
f = False
x += 10
print(s)
ntuda