0
已解决
刘睿轩
中级光能
中级光能
#include<bits/stdc++.h>
using namespace std;
int main(){
string s1,s2,s3;
long long s=0,r1=0,r2=0,r3=0;
cin>>s1>>s2>>s3;
stringstream ss1,ss2,ss3;
ss1<<s1;
ss1>>r1;
ss2<<s2;
ss2>>r2;
ss3<<s3;
ss3>>r3;
if(r1<=100) s=(s2[2]-'0')+(s3[2]-'0');
else if(r2<=100) s=(s1[2]-'0')+(s3[2]-'0');
else if(r3<=100) s=(s1[2]-'0')+(s2[2]-'0');
else s=(s1[2]-'0')+(s2[2]-'0')+(s3[2]-'0');
cout << s;
return 0;
}