結果
| 問題 | No.491 10^9+1と回文 |
| コンテスト | |
| ユーザー |
_____TAB_____
|
| 提出日時 | 2017-03-12 13:24:16 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 164 bytes |
| 記録 | |
| コンパイル時間 | 471 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 30,720 KB |
| 最終ジャッジ日時 | 2026-03-19 16:15:57 |
| 合計ジャッジ時間 | 39,846 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 90 TLE * 13 |
ソースコード
N = int(input()) m = 10**9+1 n = N // m ans = 0 for i in range(1,n+1): I = str(i) l = len(I) if i < 10 or I[:l//2] == I[:-l//2-(l+1)%2:-1]: ans += 1 print(ans)
_____TAB_____