1000. A+B 问题

C 参考代码:

#include <stdio.h> int main() { int a, b; scanf("%d%d", &a, &b); printf("%d", a + b); }

C++ 参考代码:

#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a + b; }

Java 参考代码:

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); } }

Python 参考代码:

s = input().split() print(int(s[0]) + int(s[1]))