結果

問題 No.1307 Rotate and Accumulate
ユーザー NyaanNyaanNyaanNyaan
提出日時 2020-12-04 01:43:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 464 ms / 5,000 ms
コード長 159 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 50,636 KB
最終ジャッジ日時 2023-10-12 13:02:33
合計ジャッジ時間 7,998 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
29,620 KB
testcase_01 AC 127 ms
29,588 KB
testcase_02 AC 126 ms
29,528 KB
testcase_03 AC 126 ms
29,612 KB
testcase_04 AC 130 ms
29,556 KB
testcase_05 AC 130 ms
29,448 KB
testcase_06 AC 129 ms
29,632 KB
testcase_07 AC 129 ms
29,420 KB
testcase_08 AC 350 ms
49,056 KB
testcase_09 AC 364 ms
49,880 KB
testcase_10 AC 318 ms
43,684 KB
testcase_11 AC 295 ms
38,640 KB
testcase_12 AC 342 ms
44,696 KB
testcase_13 AC 183 ms
36,320 KB
testcase_14 AC 228 ms
36,976 KB
testcase_15 AC 458 ms
50,164 KB
testcase_16 AC 459 ms
50,420 KB
testcase_17 AC 464 ms
50,300 KB
testcase_18 AC 426 ms
44,376 KB
testcase_19 AC 457 ms
50,636 KB
testcase_20 AC 454 ms
50,620 KB
testcase_21 AC 127 ms
29,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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