結果
問題 | No.491 10^9+1と回文 |
ユーザー |
|
提出日時 | 2023-06-13 21:50:15 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 146 bytes |
コンパイル時間 | 425 ms |
コンパイル使用メモリ | 81,864 KB |
実行使用メモリ | 76,232 KB |
最終ジャッジ日時 | 2024-06-22 08:15:18 |
合計ジャッジ時間 | 11,056 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | MLE * 3 |
other | MLE * 103 |
ソースコード
n,c=int(input())//-~10**9,0for x in range(1,10**5):b=d=e=str(x);b=b[::-1];d+=b;e+=b[1:]if int(d)<=n:c+=1if int(e)<=n:c+=1print(c)