結果
| 問題 | No.491 10^9+1と回文 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-13 21:52:05 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 303 ms |
| コンパイル使用メモリ | 85,592 KB |
| 実行使用メモリ | 80,964 KB |
| 最終ジャッジ日時 | 2026-03-06 13:45:01 |
| 合計ジャッジ時間 | 10,055 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | MLE * 3 |
| other | MLE * 103 |
ソースコード
N = int(input()) // (10 ** 9 + 1)
ans = 0
for i in range(1, 10 ** 5):
s = str(i)
if int(s + s[::-1]) <= N:
ans += 1
if int(s[:-1] + s[::-1]) <= N:
ans += 1
print(ans)