描述
It is very easy.
Just calculate a plus b, and then print it.
输入
only one line, have 2 variables,both -2^16<= a and b <=2^32.
输出
only one line, have 1 variables,m in number.
输入样例 1
1 1
输出样例 1
2
来源
own
代码
1.cpp
#include <cstdio>
using namespace std;
int main(){
int a, b;
scanf("%d %d", &a, &b);
printf("%d", a + b);
return 0;
}
2.java
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a, b;
a = sc.nextInt();
b = sc.nextInt();
System.out.println(a + b);
sc.close();
}
}