結果
| 問題 | No.491 10^9+1と回文 |
| コンテスト | |
| ユーザー |
AEn
|
| 提出日時 | 2022-06-15 22:39:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 388 bytes |
| 記録 | |
| コンパイル時間 | 263 ms |
| コンパイル使用メモリ | 81,888 KB |
| 実行使用メモリ | 54,528 KB |
| 最終ジャッジ日時 | 2024-10-04 23:28:31 |
| 合計ジャッジ時間 | 6,374 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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