結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
29,580 KB
testcase_01 AC 129 ms
29,524 KB
testcase_02 AC 130 ms
29,680 KB
testcase_03 AC 131 ms
29,512 KB
testcase_04 AC 132 ms
29,660 KB
testcase_05 AC 130 ms
29,620 KB
testcase_06 AC 129 ms
29,624 KB
testcase_07 AC 130 ms
29,660 KB
testcase_08 AC 376 ms
49,856 KB
testcase_09 AC 395 ms
50,428 KB
testcase_10 AC 342 ms
46,300 KB
testcase_11 AC 320 ms
39,716 KB
testcase_12 AC 367 ms
45,408 KB
testcase_13 AC 189 ms
36,164 KB
testcase_14 AC 243 ms
38,016 KB
testcase_15 AC 491 ms
53,688 KB
testcase_16 AC 492 ms
53,696 KB
testcase_17 AC 497 ms
53,732 KB
testcase_18 AC 458 ms
44,920 KB
testcase_19 AC 485 ms
52,464 KB
testcase_20 AC 495 ms
52,384 KB
testcase_21 AC 132 ms
29,700 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