Submission #2243456


Source Code Expand

Copy
#include<iostream>
#define R(i,n)for(int i=1;i<=n;++i)
using U=unsigned;using namespace std;enum{M=7<<14};U N,A[M],B[M],C[M*2];int main(){cin>>N;R(i,N)cin>>A[i]>>B[i];R(i,N)R(j,N)C[i+j]+=A[i]*B[j];R(i,N*2)printf("%d\n",C[i]);}

Submission Info

Submission Time
Task C - 高速フーリエ変換
User Aquarius
Language C++14 (Clang 3.8.0)
Score 100
Code Size 228 Byte
Status
Exec Time 4513 ms
Memory 3712 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 1 ms 256 KB
01_00_01 1 ms 256 KB
01_01_19 1 ms 256 KB
01_02_31 1 ms 256 KB
01_03_22 1 ms 256 KB
01_04_31 1 ms 256 KB
01_05_40 1 ms 256 KB
01_06_15 1 ms 256 KB
01_07_39 1 ms 256 KB
01_08_28 1 ms 256 KB
01_09_30 1 ms 256 KB
01_10_23 1 ms 256 KB
01_11_33 1 ms 256 KB
01_12_11 1 ms 256 KB
01_13_28 1 ms 256 KB
01_14_41 1 ms 256 KB
01_15_26 1 ms 256 KB
01_16_49 1 ms 256 KB
01_17_34 1 ms 256 KB
01_18_02 1 ms 256 KB
01_19_33 1 ms 256 KB
01_20_29 1 ms 256 KB
02_00_51254 1179 ms 1920 KB
02_01_82431 3111 ms 3072 KB
02_02_17056 125 ms 768 KB
02_03_34866 506 ms 1408 KB
02_04_6779 27 ms 512 KB
02_05_65534 1982 ms 2432 KB
02_06_65535 1984 ms 2432 KB
02_07_65536 1955 ms 2432 KB
02_08_65537 1920 ms 2432 KB
02_09_65538 1948 ms 2432 KB
02_10_100000 4513 ms 3712 KB