結果

問題 No.1307 Rotate and Accumulate
ユーザー KudeKude
提出日時 2020-12-04 03:23:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 487 ms / 5,000 ms
コード長 133 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 10,608 KB
実行使用メモリ 53,256 KB
最終ジャッジ日時 2023-10-12 15:14:39
合計ジャッジ時間 10,297 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
29,452 KB
testcase_01 AC 126 ms
29,448 KB
testcase_02 AC 127 ms
29,500 KB
testcase_03 AC 128 ms
29,564 KB
testcase_04 AC 127 ms
29,388 KB
testcase_05 AC 128 ms
29,552 KB
testcase_06 AC 127 ms
29,412 KB
testcase_07 AC 126 ms
29,460 KB
testcase_08 AC 408 ms
50,268 KB
testcase_09 AC 385 ms
51,852 KB
testcase_10 AC 329 ms
45,620 KB
testcase_11 AC 311 ms
40,204 KB
testcase_12 AC 351 ms
45,720 KB
testcase_13 AC 182 ms
36,348 KB
testcase_14 AC 239 ms
37,968 KB
testcase_15 AC 487 ms
52,660 KB
testcase_16 AC 477 ms
52,400 KB
testcase_17 AC 480 ms
52,832 KB
testcase_18 AC 450 ms
45,304 KB
testcase_19 AC 478 ms
53,096 KB
testcase_20 AC 485 ms
53,256 KB
testcase_21 AC 127 ms
29,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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