結果

問題 No.1307 Rotate and Accumulate
ユーザー %20%20
提出日時 2020-12-04 03:35:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 463 ms / 5,000 ms
コード長 140 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 54,332 KB
最終ジャッジ日時 2023-10-12 15:26:03
合計ジャッジ時間 10,401 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
29,468 KB
testcase_01 AC 126 ms
29,556 KB
testcase_02 AC 128 ms
29,664 KB
testcase_03 AC 133 ms
29,660 KB
testcase_04 AC 129 ms
29,540 KB
testcase_05 AC 128 ms
29,672 KB
testcase_06 AC 128 ms
29,544 KB
testcase_07 AC 128 ms
29,652 KB
testcase_08 AC 362 ms
49,592 KB
testcase_09 AC 367 ms
50,348 KB
testcase_10 AC 314 ms
46,292 KB
testcase_11 AC 291 ms
39,612 KB
testcase_12 AC 333 ms
44,864 KB
testcase_13 AC 176 ms
36,784 KB
testcase_14 AC 234 ms
37,600 KB
testcase_15 AC 463 ms
53,880 KB
testcase_16 AC 449 ms
53,624 KB
testcase_17 AC 444 ms
53,636 KB
testcase_18 AC 414 ms
45,376 KB
testcase_19 AC 444 ms
54,332 KB
testcase_20 AC 447 ms
52,784 KB
testcase_21 AC 149 ms
29,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from numpy.fft import*
I='input().split()'
exec(I+f';b=[0]*len(a:={I})\nfor i in {I}:b[-int(i)]+=1')
print(*map(int,ifft(fft(a)*fft(b))+.5))
0