結果

問題 No.1402 ビル街
ユーザー ytoki28ytoki28
提出日時 2021-02-20 00:17:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 225 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 11,808 KB
実行使用メモリ 42,376 KB
最終ジャッジ日時 2023-10-17 02:28:24
合計ジャッジ時間 14,400 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 474 ms
42,376 KB
testcase_01 AC 470 ms
42,372 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import numpy as np

readline = sys.stdin.readline
read = sys.stdin.read

n = int(readline())
ans = np.full(n+2,2,dtype=np.int64)
d = 2
while(d <= n+2):
    ans[::d] += 1
    d *= 2
ans[[0,-1]] = 2*10**9
print(*ans)
0