#include <bits/stdc++.h>
#define ull unsigned long long
#define ll long long
#define con const
#define re register
using namespace std;
inline int read() {int ret=0; int flag=1;char ch=getchar();while(ch < '0' || ch > '9') {if(ch == '-') flag=-1;ch=getchar();}while(ch >= '0' && ch <= '9') {ret=ret*10+ch-'0';ch=getchar();}return ret*flag;}
inline void writecore(ll x) {if(x >= 10) writecore(x/10);putchar(x%10+'0');}
inline void write(ll x,char ch) {if(x < 0) putchar('-'),x=-x;writecore(x);putchar(ch);}
int n,m;
int main()
{
n = read(); m = read();
int k = read();
int tot = 0;
for (re int i=1; i<=n; i++) {
tot += read();
}
for (re int i=1; i<=m; i++) {
tot += read();
}
write(tot/2,'\n');
return 0;
}
这都可以。。。
请求加强数据