結果
| 問題 | No.491 10^9+1と回文 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-13 21:52:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 319 ms |
| コンパイル使用メモリ | 82,116 KB |
| 実行使用メモリ | 76,120 KB |
| 最終ジャッジ日時 | 2024-06-22 08:18:15 |
| 合計ジャッジ時間 | 12,079 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)