-
Notifications
You must be signed in to change notification settings - Fork 2
Home
GorgearYang edited this page May 5, 2019
·
3 revisions
内核部分采用: JudgeServer
a + b 问题: 输入两个数字,输出两个数字的和
1 2
4 5
10 21
示例输出:
3
9
31
#include 'stdio.h'
using namespace std;
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%d", a + b);
return 0;
}
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a + b << endl;
return 0;
}
import java.util.Scanner;
public class Main {
public static void main(String [] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
System.out.println(a + b);
}
}
a = input()
b = input()
print a + b
参考:语言配置
v1 | Freezind | Gorgear | lbx | ||
---|---|---|---|---|---|
v2 | lbx | yh | wyh | lbq | Gorgear |