Submission #52843554


Source Code Expand

         #include          <bits/stdc++.h>
       template<typename  T>using  Vec=std::
      vector<T>;template<typename T1,typename
     T2> using Pr=std::pair<T1,T2>;int64_t I=
      1;using Str=std::string;int jk=1;using
         i64 = int64_t;using i32 = int32_t;
           void solve () ; int main () {
             std:: ios::sync_with_stdio
              (false);std::cin.tie(0);
                 /* std::cin  >>  jk; */                           
                  while(jk  -- )
                     solve (); 
                      return 
                        0;}

template<typename... Args>
void print(const Args&... args) {(std::cout << ... << args);}
template<typename T>
void read(T& arg) {std::cin >> arg;}
template<typename T, typename... Args>
void read(T& arg, Args&... args) {std::cin >> arg; read(args...);}
void yesno(bool yes){std::cout<<(yes?"Yes\n":"No\n");}

const i64 MOD = 1e9+7;

i64 qpow(i64 _a, i64 _b, i64 _p) {i64 _ret = 1 % _p, _t = _a; while (_b) {if (_b&1) _ret = _ret * _t % _p; _t = _t * _t % _p; _b >>= 1;} return _ret;}


void solve() {
    i32 sumA = 0, sumB = 0;

    for (i32 i = 0; i < 9; ++ i) {
        i32 x; read(x);
        sumA += x;
    }

    for (i32 i = 0; i < 8; ++ i) {
        i32 x; read(x);
        sumB += x;
    }

    print(sumA - sumB + 1, '\n');
}



Submission Info

Submission Time
Task A - The bottom of the ninth
User d1n9yx
Language C++ 20 (gcc 12.2)
Score 100
Code Size 1366 Byte
Status AC
Exec Time 1 ms
Memory 3564 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 3404 KiB
example_01.txt AC 1 ms 3564 KiB
hand_00.txt AC 1 ms 3432 KiB
hand_01.txt AC 1 ms 3500 KiB
hand_02.txt AC 1 ms 3396 KiB
random_00.txt AC 1 ms 3428 KiB
random_01.txt AC 1 ms 3504 KiB
random_02.txt AC 1 ms 3564 KiB
random_03.txt AC 1 ms 3404 KiB
random_04.txt AC 1 ms 3372 KiB
random_05.txt AC 1 ms 3484 KiB
random_06.txt AC 1 ms 3364 KiB