1000 : 【输入处理输出】A+B Problem
Description

输入两个数字,输出它们的和。

Input

两个整数: a, b(0 \leq a, b \leq 100)。

Output

输出一个整数,该整数为 a, b 两数字之和。

'

Examples

Input

1 2

Output

3
Hint

Q:输入和输出在哪里?

A:您的程序应始终从 stdin(标准输入)读取输入,并将输出写入 stdout(标准输出)。例如,您可以使用C中的 scanf 或 C++ 中的 cin 从 stdin 中读取,并使用 C 中的 printf 或 C++ 中的 cout 写入 stdout。如果不是题目要求的,您不得输出任何额外的信息到标准输出,否则您会得到一个 Wrong Answer。 用户程序不允许打开和读取/写入文件。如果您尝试这样做,您将收到 Runtime Error 或 Wrong Answer。

以下是问题 1000 使用 C / C++ / Python / Java 的示例解决方案: 

#include <stdio.h>
int main(){
    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 = map(int,input().split())
print(a+b)
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        System.out.print(a + b + "\n");
    }
}
题目参数
Time Limit 1 second
Memory Limit 128 MB
提交次数 70
通过次数 50