結果
| 問題 | No.491 10^9+1と回文 |
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2025-03-06 18:49:56 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 192 bytes |
| 記録 | |
| コンパイル時間 | 237 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 84,480 KB |
| 最終ジャッジ日時 | 2026-07-06 21:46:35 |
| 合計ジャッジ時間 | 11,010 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | MLE * 3 |
| other | MLE * 103 |
ソースコード
n=int(input())
c=0
for i in range(10000):
s=str(i)
if i==0:
s=""
for i in range(10):
c+=int(s+str(i)+s[::-1])*(10**9+1)<=n
if s!="":
c+=int(s+s[::-1])*(10**9+1)<=n
print(c)
sasa8uyauya