結果
| 問題 | No.1307 Rotate and Accumulate |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2020-12-04 01:34:45 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 749 ms / 5,000 ms |
| コード長 | 161 bytes |
| 記録 | |
| コンパイル時間 | 373 ms |
| コンパイル使用メモリ | 20,572 KB |
| 実行使用メモリ | 53,308 KB |
| 最終ジャッジ日時 | 2026-04-04 12:24:14 |
| 合計ジャッジ時間 | 15,886 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
from numpy import fft as F;I=input;I();a=list(map(int,I().split()));b=[0]*len(a) for i in I().split():b[-int(i)]+=1 print(*map(int,F.ifft(F.fft(a)*F.fft(b))+.5))
testestest