Submit Info #55937

Problem Lang User Status Time Memory
Many A + B cpp risujiroh AC 201 ms 19.83 MiB

ケース詳細
Name Status Time Memory
all_max_00 AC 201 ms 19.83 MiB
all_zero_00 AC 22 ms 2.59 MiB
digit_random_00 AC 113 ms 11.33 MiB
digit_random_01 AC 113 ms 11.34 MiB
example_00 AC 1 ms 0.61 MiB
max_random_00 AC 198 ms 19.33 MiB
max_random_01 AC 196 ms 19.34 MiB
random_00 AC 77 ms 7.96 MiB
random_01 AC 97 ms 9.34 MiB

#include <bits/stdc++.h> char getc() { static char buf[1 << 15], *ptr = buf, *end = buf; return ptr == end && (ptr = buf) == (end = buf + fread(buf, 1, std::size(buf), stdin)) ? EOF : *ptr++; } void putc(char c) { static char buf[1 << 15], *ptr = buf; *(ptr -= ptr == std::end(buf) || c == EOF ? fwrite(buf, 1, ptr - buf, stdout) : 0)++ = c; } __attribute__((destructor)) void put_eof() { putc(EOF); } bool scan_single(char& c) { return isspace(c = getc()) ? scan_single(c) : c != EOF; } template <class T> bool scan_single(T& x, char c = EOF) { for (scan_single(c), x = c == '-' ? 48 - getc() : c & 15; isdigit(c = getc()); x += x < 0 ? 48 - c : c & 15) x *= 10; return c != EOF; } template <class... Args> bool scan(Args&... args) { return (... && scan_single(args)); } template <class T> void put(T x) { x < 0 ? (putc('-'), put(-std::make_unsigned_t<T>(x))) : (x >= 10 && (put(x / 10), 0), putc(48 | x % 10)); } void put(const char* s) { for (int i = 0, n = strlen(s); i < n; ++i) putc(s[i]); } template <class T> void put(const std::vector<T>& v, bool first = true) { for (auto&& e : v) std::exchange(first, false) || (putc(' '), 0), put(e); } template <class Head, class... Tail> void print(const Head& head, const Tail&... tail) { (put(head), ..., (putc(' '), put(tail))), putc('\n'); } int main() { int tt; scan(tt); while (tt--) { int64_t a, b; scan(a, b); print(a + b); } }