結果

問題 No.1307 Rotate and Accumulate
ユーザー testestesttestestest
提出日時 2020-12-04 01:14:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 369 ms / 5,000 ms
コード長 177 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 50,244 KB
最終ジャッジ日時 2023-10-12 12:15:12
合計ジャッジ時間 8,175 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
29,228 KB
testcase_01 AC 129 ms
29,212 KB
testcase_02 AC 132 ms
29,220 KB
testcase_03 AC 131 ms
29,160 KB
testcase_04 AC 132 ms
29,220 KB
testcase_05 AC 130 ms
29,264 KB
testcase_06 AC 129 ms
29,248 KB
testcase_07 AC 127 ms
29,248 KB
testcase_08 AC 313 ms
48,780 KB
testcase_09 AC 308 ms
49,636 KB
testcase_10 AC 272 ms
43,204 KB
testcase_11 AC 243 ms
38,092 KB
testcase_12 AC 301 ms
44,424 KB
testcase_13 AC 176 ms
36,576 KB
testcase_14 AC 212 ms
37,364 KB
testcase_15 AC 369 ms
49,572 KB
testcase_16 AC 357 ms
49,480 KB
testcase_17 AC 358 ms
50,088 KB
testcase_18 AC 336 ms
43,988 KB
testcase_19 AC 352 ms
50,244 KB
testcase_20 AC 362 ms
49,460 KB
testcase_21 AC 131 ms
29,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as p
input()
a=list(map(int,input().split()))
b=[0]*len(a)
for i in map(int,input().split()):b[-i]+=1
print(*(p.fft.ifft(p.fft.fft(a)*p.fft.fft(b))+.5).astype(int))
0