开始 2024-08-20 08:00:00

8.19-8.24集训第二天

结束 2024-08-25 00:00:00
Contest is over.
当前 2024-12-22 19:44:10

C题解

include<bits/stdc++.h>

using namespace std; int main() {

int a=0,b=0,n,a1,b1; cin>>n; for(int i=1;i<=n;i++) {

//cout<<"A="<<a<<endl;
//cout<<"B="<<b<<endl;
//cout<<"__________________________________"<<endl;
cin>>a1;
a=a+a1;
a=a*10;
cin>>b1;
b=b+b1;
b=b*10;

} cout<<a/10+b/10; }


LIUYC  •  4个月前

include<bits/stdc++.h>

using namespace std; int main() {

int a=0,b=0,n,a1,b1; cin>>n; for(int i=1;i<=n;i++) {

//cout<<"A="<<a<<endl;
//cout<<"B="<<b<<endl;
//cout<<"__________________________________"<<endl;
cin>>a1;
a=a+a1;
a=a*10;
cin>>b1;
b=b+b1;
b=b*10;

} cout<<a/10+b/10; }


LIUYC  •  4个月前

是B题


LIUYC  •  4个月前

比赛已结束。