rt,自己在网上找了一个,但是输出结果前面都会多一个1
#include <bits/stdc++.h>
using namespace std;
int read(){
int a=1,sum=1;
char c=getchar();
while(c<'0' || c>'9'){
c=getchar();
}
while(c>='0' && c<='9'){
sum=sum*10+c-'0';
c=getchar();
}
return a*sum;
}
int main(){
int a,b;
a=read();
b=read();
cout<<a<<endl<<b;
return 0;
}
Input
1
2
Output
11
12