1 条题解

  • 1
    @ 2025-4-6 17:49:56

    LightOJ官方:

    #include <bits/stdc++.h>
    
    /**
     * Returns the total number of problems.
     *
     * @param a denotes the number of problems in the first computer
     * @param b denotes the number of problems in the second computer
     */
    int sum(int a, int b) {
        return a+b;
        // Implement this method
    }
    
    /**
     * Takes care of the problem input and output.
     */
    int main() {
        int cases;
        scanf("%d", &cases);
        for (int caseno = 1; caseno <= cases; ++caseno) {
            int a, b;
            scanf("%d %d", &a, &b);
            printf("Case %d: %d\n", caseno, sum(a, b));
        }
        return 0;
    }
    
    
    • 1

    信息

    ID
    605
    时间
    1000ms
    内存
    256MiB
    难度
    10
    标签
    递交数
    4
    已通过
    1
    上传者