結果
問題 | No.491 10^9+1と回文 |
ユーザー |
|
提出日時 | 2023-11-29 16:22:18 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 224 bytes |
コンパイル時間 | 302 ms |
コンパイル使用メモリ | 82,448 KB |
実行使用メモリ | 76,172 KB |
最終ジャッジ日時 | 2024-09-26 13:30:10 |
合計ジャッジ時間 | 6,501 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 90 MLE * 13 |
ソースコード
n = int(input())ans = 0for i in map(str, range(1000000001)):if int(i + i[::-1]) * 1000000001 <= n:ans += 1if int(i + i[:-1][::-1]) * 1000000001 <= n:ans += 1else:breakprint(ans)