結果
| 問題 | No.491 10^9+1と回文 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-22 22:56:55 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 261 bytes |
| 記録 | |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 82,172 KB |
| 実行使用メモリ | 76,384 KB |
| 最終ジャッジ日時 | 2024-09-26 07:42:34 |
| 合計ジャッジ時間 | 6,913 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)