1000: Entry test questions
Time limit: 1000 ms memory limit: 32768 KB
submitted Number: 95306 Number by: 57214
[Description Title]
the sum of two integers.
[Enter]
line, two integers separated by a space.
[Output]
two integers.
Sample Input []
12
[output] Sample
3
This is a simple issue of a + b, c ++ application knowledge, someone asked why not universal header files, because some do not recognize it, or why I do it?
Here is the code:
#include<iostream>
using namespace std;
int main()
{
int a;
cin>>a;//输入a
int b;
cin>>b;//输入b
cout<<a+b/*将a,b相加*/<<endl;
return 0;
}
/*也可以这样写*/
/*{ long long a,b;
cin>>a;
cin>>b;
}
Then remember the point of praise ah!