結果
| 問題 |
No.491 10^9+1と回文
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2025-03-06 18:49:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 192 bytes |
| コンパイル時間 | 662 ms |
| コンパイル使用メモリ | 82,772 KB |
| 実行使用メモリ | 76,340 KB |
| 最終ジャッジ日時 | 2025-03-06 18:50:07 |
| 合計ジャッジ時間 | 11,246 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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