Luo Valley P1001 A + B Problem

Title Description

Input two integers a, b, and the output thereof (| a |, | b | <= 10 ^ 9).

note

  1. pascal will be ringing off the hook using integer oh!
  2. There are negative Oh!
  3. c / c ++ main function must be of type int, and the last to return 0. This is not only effective Luo Gu other topics, but also noip requirements / noi game!

Well, comrades, we start with this question, marching toward the path of Daniel.

Any great ideas, there is a small start.

Input Format

Two integers separated by a space

Output Format

A number

Sample input and output

Input # 1
20 30
Output # 1
50
1 #include<bits/stdc++.h>
2 using namespace std;
3 int main()
4 {
5     int a,b;
6     cin>>a>>b;
7     cout<<a+b;
8 }

 

Guess you like

Origin www.cnblogs.com/anbujingying/p/11293659.html