Skip to the content.

:heavy_check_mark: test/many_aplusb.test.cpp

Code

#define PROBLEM "https://judge.yosupo.jp/problem/many_aplusb"

#include <stdint.h>     // for uint64_t
#include <sys/types.h>  // for uint

#include <fastio/base.hpp>                  // for FASTIO, cin, FIO, cout
#include <fastio/unsigned/read.hpp>         // for operator>>
#include <fastio/unsigned/write.hpp>        // for operator<<
#include <templates/macro/abbrev/endl.hpp>  // for endl
#include <templates/rep.hpp>                // for rep
#include <templates/template.hpp>
#include <version>  // for std

int main() {
    uint t;
    cin >> t;
    rep(_, 0U, t) {
        uint64_t a, b;
        cin >> a >> b;
        cout << a + b;
        *FIO.opos++ = endl;
    }
}
#line 1 "test/many_aplusb.test.cpp"
#define PROBLEM "https://judge.yosupo.jp/problem/many_aplusb"

#include <stdint.h>     // for uint64_t
#include <sys/types.h>  // for uint

#include <fastio/base.hpp>                  // for FASTIO, cin, FIO, cout
#include <fastio/unsigned/read.hpp>         // for operator>>
#include <fastio/unsigned/write.hpp>        // for operator<<
#include <templates/macro/abbrev/endl.hpp>  // for endl
#include <templates/rep.hpp>                // for rep
#include <templates/template.hpp>
#include <version>  // for std

int main() {
    uint t;
    cin >> t;
    rep(_, 0U, t) {
        uint64_t a, b;
        cin >> a >> b;
        cout << a + b;
        *FIO.opos++ = endl;
    }
}

Test cases

Env Name Status Elapsed Memory
g++ all_max_00 :heavy_check_mark: AC 106 ms 46 MB
g++ all_zero_00 :heavy_check_mark: AC 28 ms 11 MB
g++ digit_random_00 :heavy_check_mark: AC 64 ms 27 MB
g++ digit_random_01 :heavy_check_mark: AC 64 ms 27 MB
g++ example_00 :heavy_check_mark: AC 5 ms 4 MB
g++ max_random_00 :heavy_check_mark: AC 61 ms 44 MB
g++ max_random_01 :heavy_check_mark: AC 62 ms 44 MB
g++ random_00 :heavy_check_mark: AC 28 ms 21 MB
g++ random_01 :heavy_check_mark: AC 31 ms 24 MB
Back to top page