题解

1 条题解

  • 0
    @ 2026-06-27 09:13:26

    这题不用我再说了吧?!

    Free Pascal 代码

    var a,b:longint;
    begin
        readln(a,b);
        writeln(a+b);
    end.
    

    C 代码

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

    C++ 代码

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

    Python 代码

    a, b = [int(i) for i in raw_input().split()]
    print(a + b)
    

    Java 代码

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

    本题评测系统有bug,正在修复

  • 1

信息

ID
1000
难度
1
分类
(无)
标签
递交数
7
已通过
0
通过率
0%
上传者