x+y Problem
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
题目内容
给你一个整数 和一个整数 ,请你输出他们的和。
输入格式
两个整数 ,。
保证 。
输出格式
输出一个整数,表示 和结果。
样例
输入
输出
限制
。
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
给你一个整数 x 和一个整数 y,请你输出他们的和。
两个整数 x,y。
保证 0≤x,y≤32767。
输出一个整数,表示 x+y 和结果。
123 500
623
1s,1024KIB。
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);
}
}