結果

問題 No.1307 Rotate and Accumulate
ユーザー KudeKude
提出日時 2020-12-04 06:47:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 496 ms / 5,000 ms
コード長 129 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 10,596 KB
実行使用メモリ 58,256 KB
最終ジャッジ日時 2023-10-12 18:31:45
合計ジャッジ時間 11,259 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
29,548 KB
testcase_01 AC 131 ms
29,532 KB
testcase_02 AC 131 ms
29,616 KB
testcase_03 AC 130 ms
29,440 KB
testcase_04 AC 130 ms
29,704 KB
testcase_05 AC 131 ms
29,476 KB
testcase_06 AC 131 ms
29,572 KB
testcase_07 AC 129 ms
29,588 KB
testcase_08 AC 406 ms
52,876 KB
testcase_09 AC 398 ms
55,136 KB
testcase_10 AC 337 ms
48,452 KB
testcase_11 AC 319 ms
41,024 KB
testcase_12 AC 360 ms
54,204 KB
testcase_13 AC 190 ms
36,828 KB
testcase_14 AC 246 ms
42,216 KB
testcase_15 AC 490 ms
58,020 KB
testcase_16 AC 491 ms
58,160 KB
testcase_17 AC 492 ms
58,168 KB
testcase_18 AC 458 ms
45,620 KB
testcase_19 AC 487 ms
58,256 KB
testcase_20 AC 496 ms
58,244 KB
testcase_21 AC 132 ms
29,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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