文章
1
粉丝
8
获赞
0
访问
493
#include <iostream>
//#include <bits/stdc++.h>
using namespace std;
int main() {
int num1[100000];
int num2[100000];
int n;
int m;
int x;
cin >> n;
cin >> m;
cin >> x;
for (int i = 0; i < n; i++) {
cin>>num1[i];
}
for (int i = 0; i < m; i++) {
cin >> num2[i];
}
int a1, a2;
for (int i = 0; i < n; i++) {
int nownum = num1[i];
for (int j = 0; j < m&&nownum<=x; j++) {
nownum = num1[i] + num2[j];
...
登录后发布评论
暂无评论,来抢沙发