for beginners,特设此题,^_^
输入两个自然数,输出他们的和
两个自然数 x 和 y (0 <= x, y <= 32767)(0<=x,y<=32767)
一个数,即 x 和 y 的和
123 500
623
各个测试点1s,16MiB内存空间。
var a,b:longint;
begin
readln(a,b);
writeln(a+b);
end.
#include <stdio.h>
int main(void)
{
int a, b;
scanf("%d%d", &a, &b);
printf("%d\n", a + b);
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
cout << a + b << endl;
return 0;
}
a, b = [int(i) for i in raw_input().split()]
print(a + b)
import java.io.*;
import java.util.Scanner;
public class Main {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
System.out.println(a + b);
}
}