#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m,sum,c;
int a[110],b[110];
while(scanf("%d%d",&n,&m)
hdu2034
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m,sum,c;
int a[110],b[110];
while(scanf("%d%d",&n,&m)