test/many_aplusb_128bit.test.cpp
Code
#define PROBLEM "https://judge.yosupo.jp/problem/many_aplusb_128bit"
#include <sys/types.h> // for uint
#include <fastio/base.hpp> // for FASTIO, cin, cout
#include <fastio/char/write.hpp> // for operator<<
#include <fastio/int128/read.hpp> // for operator>>
#include <fastio/int128/write.hpp> // for operator<<
#include <fastio/unsigned/read.hpp> // for operator>>
#include <templates/macro/abbrev/endl.hpp> // for endl
#include <templates/macro/abbrev/lint.hpp> // for lint
#include <templates/rep.hpp> // for rep
#include <templates/template.hpp>
#include <version> // for std
using namespace std;
int main() {
uint t;
cin >> t;
rep(_, t) {
lint a, b;
cin >> a >> b;
cout << a + b << endl;
}
}
#line 1 "test/many_aplusb_128bit.test.cpp"
#define PROBLEM "https://judge.yosupo.jp/problem/many_aplusb_128bit"
#include <sys/types.h> // for uint
#include <fastio/base.hpp> // for FASTIO, cin, cout
#include <fastio/char/write.hpp> // for operator<<
#include <fastio/int128/read.hpp> // for operator>>
#include <fastio/int128/write.hpp> // for operator<<
#include <fastio/unsigned/read.hpp> // for operator>>
#include <templates/macro/abbrev/endl.hpp> // for endl
#include <templates/macro/abbrev/lint.hpp> // for lint
#include <templates/rep.hpp> // for rep
#include <templates/template.hpp>
#include <version> // for std
using namespace std;
int main() {
uint t;
cin >> t;
rep(_, t) {
lint a, b;
cin >> a >> b;
cout << a + b << endl;
}
}
Test cases
Env |
Name |
Status |
Elapsed |
Memory |
g++ |
all_max_abs_00 |
AC |
58 ms |
45 MB |
g++ |
all_zero_00 |
AC |
14 ms |
7 MB |
g++ |
carry_up_00 |
AC |
86 ms |
40 MB |
g++ |
digit_random_00 |
AC |
76 ms |
27 MB |
g++ |
digit_random_01 |
AC |
76 ms |
27 MB |
g++ |
example_00 |
AC |
5 ms |
4 MB |
g++ |
max_random_00 |
AC |
95 ms |
44 MB |
g++ |
max_random_01 |
AC |
97 ms |
44 MB |
g++ |
random_00 |
AC |
77 ms |
36 MB |
g++ |
random_01 |
AC |
92 ms |
41 MB |
Back to top page