結果

問題 No.1307 Rotate and Accumulate
ユーザー trineutrontrineutron
提出日時 2020-12-04 01:45:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 501 ms / 5,000 ms
コード長 147 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 53,728 KB
最終ジャッジ日時 2023-10-12 13:03:05
合計ジャッジ時間 8,020 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
29,556 KB
testcase_01 AC 132 ms
29,656 KB
testcase_02 AC 130 ms
29,616 KB
testcase_03 AC 130 ms
29,616 KB
testcase_04 AC 130 ms
29,604 KB
testcase_05 AC 131 ms
29,560 KB
testcase_06 AC 130 ms
29,628 KB
testcase_07 AC 130 ms
29,584 KB
testcase_08 AC 378 ms
49,664 KB
testcase_09 AC 403 ms
50,344 KB
testcase_10 AC 340 ms
46,368 KB
testcase_11 AC 319 ms
39,528 KB
testcase_12 AC 356 ms
45,316 KB
testcase_13 AC 187 ms
36,260 KB
testcase_14 AC 241 ms
38,080 KB
testcase_15 AC 501 ms
53,668 KB
testcase_16 AC 493 ms
53,728 KB
testcase_17 AC 497 ms
53,508 KB
testcase_18 AC 461 ms
44,988 KB
testcase_19 AC 491 ms
52,664 KB
testcase_20 AC 498 ms
52,392 KB
testcase_21 AC 132 ms
29,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from numpy.fft import fft as F,ifft as G
I=input
I()
a=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