結果
| 問題 |
No.491 10^9+1と回文
|
| ユーザー |
AEn
|
| 提出日時 | 2022-06-15 22:39:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 388 bytes |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-04 23:28:42 |
| 合計ジャッジ時間 | 5,028 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 42 WA * 61 |
ソースコード
import bisect
n = []
for i in range(10, 19, 2):
nn = (i-8)//2
for j in range(1,10):
num = int(str(j)*nn+'0'*8+str(j)*nn)
s = 1
while 1:
ss = num*s
if ss <= 10**18:
n.append(ss)
else:
break
s *= 10
s += 1
n.sort()
N = int(input())
print(bisect.bisect_left(n, N+1))
AEn