提交记录 16535


用户 题目 状态 得分 用时 内存 语言 代码长度
shenlc 1002i. 【模板题】多项式乘法 Time Limit Exceeded 0 1 s 1184 KB C 605 B
提交时间 评测时间
2021-10-01 20:30:24 2021-10-01 20:30:30
#include <stdio.h>
#include <string.h>

int a[100010], b[100010], result[100010];

int main() {
    int len_a, len_b;
    scanf("%d%d", &len_a, &len_b);
    len_a++;
    len_b++;
    for (int i = 0; i < len_a; ++i) scanf("%d", &a[i]);
    for (int i = 0; i < len_b; ++i) scanf("%d", &b[i]);
    
    int result_len = len_a + len_b - 1;
    memset(result, 0, sizeof(int) * result_len);
    for (int i = 0; i < len_a; ++i) {
        for (int j = 0; j < len_b; ++j) {
            result[i + j] += a[i] * b[j];
        }
    }
    for (int i = 0; i < result_len; ++i) printf("%d ", result[i]);
    return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Subtask #1 Testcase #18.81 us28 KBAcceptedScore: 0

Subtask #1 Testcase #21 s1 MB + 160 KBTime Limit ExceededScore: -100

Subtask #1 Testcase #314.901 ms1 MB + 56 KBAcceptedScore: 100

Subtask #1 Testcase #414.949 ms1 MB + 48 KBAcceptedScore: 0

Subtask #1 Testcase #510.5 us28 KBAcceptedScore: 0

Subtask #1 Testcase #69.43 us28 KBAcceptedScore: 0

Subtask #1 Testcase #710.08 us28 KBAcceptedScore: 0

Subtask #1 Testcase #81 s1 MB + 28 KBTime Limit ExceededScore: 0

Subtask #1 Testcase #91 s1 MB + 32 KBTime Limit ExceededScore: 0

Subtask #1 Testcase #101 s924 KBTime Limit ExceededScore: 0

Subtask #1 Testcase #111 s1 MB + 160 KBTime Limit ExceededScore: 0

Subtask #1 Testcase #121 s1 MB + 160 KBTime Limit ExceededScore: 0

Subtask #1 Testcase #139.42 us28 KBAcceptedScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-03-19 01:23:01 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠