1 条题解
-
0OI不止C LV 5 MOD @ 2019-12-13 13:32:33
这道题解有点敷衍,以下给出各种流行语言的code
Pascal
var a,b:longint; begin readln(a,b); writeln(a+b); end.
C Code
#include <stdio.h> int main(void) { int a, b; scanf("%d%d", &a, &b); printf("%d\n", a + b); return 0; }
C++ Code
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a + b << endl; return 0; }
Python Code
a, b = [int(i) for i in raw_input().split()] print(a + b)
Java Code
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); } }
请独立思考!!
摸着你那 * * 的良心
- 1