結果

問題 No.1307 Rotate and Accumulate
ユーザー NyaanNyaanNyaanNyaan
提出日時 2020-12-04 02:35:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 506 ms / 5,000 ms
コード長 135 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 53,784 KB
最終ジャッジ日時 2023-10-12 14:28:44
合計ジャッジ時間 8,823 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
29,732 KB
testcase_01 AC 138 ms
29,600 KB
testcase_02 AC 136 ms
29,760 KB
testcase_03 AC 137 ms
29,644 KB
testcase_04 AC 138 ms
29,760 KB
testcase_05 AC 134 ms
29,660 KB
testcase_06 AC 133 ms
29,696 KB
testcase_07 AC 128 ms
29,636 KB
testcase_08 AC 387 ms
49,656 KB
testcase_09 AC 381 ms
50,476 KB
testcase_10 AC 333 ms
46,376 KB
testcase_11 AC 323 ms
39,888 KB
testcase_12 AC 360 ms
45,328 KB
testcase_13 AC 192 ms
37,184 KB
testcase_14 AC 249 ms
38,100 KB
testcase_15 AC 506 ms
53,620 KB
testcase_16 AC 499 ms
53,644 KB
testcase_17 AC 487 ms
53,688 KB
testcase_18 AC 450 ms
45,432 KB
testcase_19 AC 480 ms
53,784 KB
testcase_20 AC 491 ms
53,728 KB
testcase_21 AC 133 ms
29,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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