Submission #4506829


Source Code Expand

Copy
from scipy import signal
n = int(input())
xs, ys = [], []
for i in range(n):
	x, y = map(int, input().split())
	xs.append(x)
	ys.append(y)
ans = signal.fftconvolve(xs, ys)
print(0)
for a in ans:
	print(a)

Submission Info

Submission Time
Task C - 高速フーリエ変換
User sifi_border
Language Python (3.4.3)
Score 100
Code Size 216 Byte
Status
Exec Time 1132 ms
Memory 40592 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 00_sample_01
All 100 / 100 00_sample_01, 01_00_01, 01_01_19, 01_02_31, 01_03_22, 01_04_31, 01_05_40, 01_06_15, 01_07_39, 01_08_28, 01_09_30, 01_10_23, 01_11_33, 01_12_11, 01_13_28, 01_14_41, 01_15_26, 01_16_49, 01_17_34, 01_18_02, 01_19_33, 01_20_29, 02_00_51254, 02_01_82431, 02_02_17056, 02_03_34866, 02_04_6779, 02_05_65534, 02_06_65535, 02_07_65536, 02_08_65537, 02_09_65538, 02_10_100000
Case Name Status Exec Time Memory
00_sample_01 331 ms 22468 KB
01_00_01 341 ms 22552 KB
01_01_19 334 ms 22468 KB
01_02_31 333 ms 22468 KB
01_03_22 331 ms 22484 KB
01_04_31 338 ms 22528 KB
01_05_40 330 ms 22500 KB
01_06_15 330 ms 22468 KB
01_07_39 331 ms 22492 KB
01_08_28 332 ms 22476 KB
01_09_30 336 ms 22464 KB
01_10_23 331 ms 22524 KB
01_11_33 332 ms 22468 KB
01_12_11 332 ms 22436 KB
01_13_28 332 ms 22540 KB
01_14_41 331 ms 22520 KB
01_15_26 336 ms 22500 KB
01_16_49 333 ms 22464 KB
01_17_34 333 ms 22504 KB
01_18_02 331 ms 22476 KB
01_19_33 334 ms 22500 KB
01_20_29 335 ms 22548 KB
02_00_51254 725 ms 31280 KB
02_01_82431 1004 ms 40292 KB
02_02_17056 465 ms 26592 KB
02_03_34866 609 ms 30800 KB
02_04_6779 383 ms 23664 KB
02_05_65534 849 ms 31696 KB
02_06_65535 845 ms 31660 KB
02_07_65536 847 ms 32060 KB
02_08_65537 839 ms 40592 KB
02_09_65538 886 ms 40556 KB
02_10_100000 1132 ms 39988 KB