提交记录 16535
| 提交时间 |
评测时间 |
| 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;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Subtask #1 Testcase #1 | 8.81 us | 28 KB | Accepted | Score: 0 | 显示更多 |
| Subtask #1 Testcase #2 | 1 s | 1 MB + 160 KB | Time Limit Exceeded | Score: -100 | 显示更多 |
| Subtask #1 Testcase #3 | 14.901 ms | 1 MB + 56 KB | Accepted | Score: 100 | 显示更多 |
| Subtask #1 Testcase #4 | 14.949 ms | 1 MB + 48 KB | Accepted | Score: 0 | 显示更多 |
| Subtask #1 Testcase #5 | 10.5 us | 28 KB | Accepted | Score: 0 | 显示更多 |
| Subtask #1 Testcase #6 | 9.43 us | 28 KB | Accepted | Score: 0 | 显示更多 |
| Subtask #1 Testcase #7 | 10.08 us | 28 KB | Accepted | Score: 0 | 显示更多 |
| Subtask #1 Testcase #8 | 1 s | 1 MB + 28 KB | Time Limit Exceeded | Score: 0 | 显示更多 |
| Subtask #1 Testcase #9 | 1 s | 1 MB + 32 KB | Time Limit Exceeded | Score: 0 | 显示更多 |
| Subtask #1 Testcase #10 | 1 s | 924 KB | Time Limit Exceeded | Score: 0 | 显示更多 |
| Subtask #1 Testcase #11 | 1 s | 1 MB + 160 KB | Time Limit Exceeded | Score: 0 | 显示更多 |
| Subtask #1 Testcase #12 | 1 s | 1 MB + 160 KB | Time Limit Exceeded | Score: 0 | 显示更多 |
| Subtask #1 Testcase #13 | 9.42 us | 28 KB | Accepted | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-03-19 01:23:01 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠