結果

問題 No.1307 Rotate and Accumulate
ユーザー しーあるしーある
提出日時 2020-12-07 05:53:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 804 ms / 5,000 ms
コード長 149 bytes
コンパイル時間 436 ms
コンパイル使用メモリ 11,692 KB
実行使用メモリ 58,344 KB
最終ジャッジ日時 2023-10-17 15:56:43
合計ジャッジ時間 18,808 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 446 ms
42,424 KB
testcase_01 AC 447 ms
42,424 KB
testcase_02 AC 449 ms
42,424 KB
testcase_03 AC 450 ms
42,424 KB
testcase_04 AC 449 ms
42,424 KB
testcase_05 AC 448 ms
42,424 KB
testcase_06 AC 450 ms
42,424 KB
testcase_07 AC 450 ms
42,424 KB
testcase_08 AC 724 ms
56,448 KB
testcase_09 AC 673 ms
58,344 KB
testcase_10 AC 658 ms
53,260 KB
testcase_11 AC 606 ms
47,312 KB
testcase_12 AC 682 ms
53,676 KB
testcase_13 AC 539 ms
46,960 KB
testcase_14 AC 570 ms
46,696 KB
testcase_15 AC 798 ms
55,784 KB
testcase_16 AC 798 ms
55,788 KB
testcase_17 AC 804 ms
55,788 KB
testcase_18 AC 775 ms
50,936 KB
testcase_19 AC 797 ms
55,788 KB
testcase_20 AC 802 ms
55,788 KB
testcase_21 AC 461 ms
42,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from numpy import*
(n,q),a,r=eval('int_(input().split()),'*3)
b=zeros(n)
for i in r:
    b[-i]+=1
print(*map(int,fft.ifft(fft.fft(a)*fft.fft(b))+.5))
0