結果
| 問題 | No.491 10^9+1と回文 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-22 22:56:55 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 261 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 80,768 KB |
| 最終ジャッジ日時 | 2026-04-13 10:56:40 |
| 合計ジャッジ時間 | 6,016 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 90 MLE * 13 |
ソースコード
from itertools import count
N = 1000000001
n = int(input())
ans = 0
for i in map(str, count(1)):
x = int(i + i[::-1])
y = int(i + i[:-1][::-1])
if N * x <= n:
ans += 1
if N * y <= n:
ans += 1
else:
break
print(ans)