Submission #52841276


Source Code Expand

#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
    vector<int> a(9, 0), b(8, 0);
    int x = 0, y = 0;
    for (int i = 0; i < 9; i++) cin >> a[i], x += a[i];
    for (int i = 0; i < 8; i++) cin >> b[i], y += b[i];
    if (x == y) cout << 1 << endl;
    else cout << x - y + 1 << endl;
}


Submission Info

Submission Time
Task A - The bottom of the ninth
User H_Tatsuhiro
Language C++ 23 (gcc 12.2)
Score 100
Code Size 353 Byte
Status AC
Exec Time 1 ms
Memory 3668 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 12
Set Name Test Cases
Sample example_00.txt, example_01.txt
All example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt
Case Name Status Exec Time Memory
example_00.txt AC 1 ms 3588 KiB
example_01.txt AC 1 ms 3668 KiB
hand_00.txt AC 1 ms 3544 KiB
hand_01.txt AC 1 ms 3480 KiB
hand_02.txt AC 1 ms 3480 KiB
random_00.txt AC 1 ms 3476 KiB
random_01.txt AC 1 ms 3480 KiB
random_02.txt AC 1 ms 3616 KiB
random_03.txt AC 1 ms 3480 KiB
random_04.txt AC 1 ms 3484 KiB
random_05.txt AC 1 ms 3528 KiB
random_06.txt AC 1 ms 3484 KiB