結果

問題 No.1307 Rotate and Accumulate
ユーザー しーあるしーある
提出日時 2020-12-07 05:54:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 888 ms / 5,000 ms
コード長 126 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 11,872 KB
実行使用メモリ 68,444 KB
最終ジャッジ日時 2023-10-17 15:57:03
合計ジャッジ時間 16,790 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 472 ms
42,424 KB
testcase_01 AC 472 ms
42,424 KB
testcase_02 AC 475 ms
42,428 KB
testcase_03 AC 473 ms
42,424 KB
testcase_04 AC 467 ms
42,424 KB
testcase_05 AC 472 ms
42,428 KB
testcase_06 AC 466 ms
42,424 KB
testcase_07 AC 467 ms
42,428 KB
testcase_08 AC 739 ms
63,980 KB
testcase_09 AC 747 ms
66,072 KB
testcase_10 AC 715 ms
59,552 KB
testcase_11 AC 662 ms
51,036 KB
testcase_12 AC 732 ms
65,764 KB
testcase_13 AC 545 ms
47,508 KB
testcase_14 AC 593 ms
52,836 KB
testcase_15 AC 888 ms
68,440 KB
testcase_16 AC 882 ms
68,440 KB
testcase_17 AC 881 ms
68,440 KB
testcase_18 AC 840 ms
56,008 KB
testcase_19 AC 870 ms
68,440 KB
testcase_20 AC 866 ms
68,444 KB
testcase_21 AC 473 ms
42,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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