結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
29,604 KB
testcase_01 AC 128 ms
29,608 KB
testcase_02 AC 126 ms
29,560 KB
testcase_03 AC 125 ms
29,440 KB
testcase_04 AC 126 ms
29,672 KB
testcase_05 AC 127 ms
29,700 KB
testcase_06 AC 127 ms
29,676 KB
testcase_07 AC 126 ms
29,544 KB
testcase_08 AC 387 ms
49,676 KB
testcase_09 AC 384 ms
50,332 KB
testcase_10 AC 334 ms
46,316 KB
testcase_11 AC 311 ms
39,852 KB
testcase_12 AC 353 ms
45,184 KB
testcase_13 AC 187 ms
37,068 KB
testcase_14 AC 240 ms
38,136 KB
testcase_15 AC 489 ms
53,748 KB
testcase_16 AC 487 ms
53,788 KB
testcase_17 AC 488 ms
53,564 KB
testcase_18 AC 449 ms
45,512 KB
testcase_19 AC 480 ms
53,644 KB
testcase_20 AC 484 ms
53,740 KB
testcase_21 AC 125 ms
29,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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