結果
問題 |
No.3264 岩井数
|
ユーザー |
|
提出日時 | 2025-09-15 12:58:16 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 643 bytes |
コンパイル時間 | 509 ms |
コンパイル使用メモリ | 82,388 KB |
実行使用メモリ | 89,996 KB |
最終ジャッジ日時 | 2025-09-15 12:58:25 |
合計ジャッジ時間 | 8,771 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | AC * 2 TLE * 1 -- * 27 |
ソースコード
import sys from collections import * from functools import cache, partial from itertools import * from pprint import pprint from typing import Any, Final try: from icecream import ic except ImportError: # Graceful fallback if IceCream isn't installed. ic = lambda *a: None if not a else (a[0] if len(a) == 1 else a) # noqa debug = partial(print, file=sys.stderr) dpprint = partial(pprint, stream=sys.stderr) sys.setrecursionlimit(10 ** 6) MOD=998244353 N: Final = int(input()) M = 10**10 s = (10**9 + N - 1) // N * N for i in range(s, M, 10): v = str(i * N) s = v[:-1] if s == s[::-1]: print(v) break