国内版
国际版
5
5
C: #include <stdio.h> void main() { int a; scanf("%d", &a); printf("%d", a); } C++: #include <iostream> using namespace std; int main() { int a; cin>>a; cout<<a; return 0; } Python: a=int(input()) print(a) JAVA: import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner keyboard = new Scanner(System.in); int a; a = keyboard.nextInt(); System.out.println(a); } }