CPLibrary

This documentation is automatically generated by competitive-verifier/competitive-verifier

View the Project on GitHub o06660o/CPLibrary

:heavy_check_mark: test/misc/read.test.cpp

Depends on

Code

// competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/many_aplusb
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

#include "../../src/misc/read.hpp"

void solve() {
  ll a = read(), b = read();
  cout << a + b << "\n";
}

int main() {
  cin.tie(nullptr)->sync_with_stdio(false);
  int tt = read();
  while (tt--) {
    solve();
  }
  return 0;
}
#line 1 "test/misc/read.test.cpp"
// competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/many_aplusb
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

#line 1 "src/misc/read.hpp"
#define GC ch = getchar_unlocked()
ll read() {
  ll x = 0, f = 1, GC;
  while (ch < '0' || ch > '9') ch == '-' ? f = -1, GC : GC;
  while (ch >= '0' && ch <= '9') x = x * 10 + ch - '0', GC;
  return x * f;
}
#undef GC
#line 7 "test/misc/read.test.cpp"

void solve() {
  ll a = read(), b = read();
  cout << a + b << "\n";
}

int main() {
  cin.tie(nullptr)->sync_with_stdio(false);
  int tt = read();
  while (tt--) {
    solve();
  }
  return 0;
}

Test cases

Env Name Status Elapsed Memory
g++ all_max_00 :heavy_check_mark: AC 119 ms 4 MB
g++ all_zero_00 :heavy_check_mark: AC 56 ms 4 MB
g++ digit_random_00 :heavy_check_mark: AC 102 ms 4 MB
g++ digit_random_01 :heavy_check_mark: AC 97 ms 4 MB
g++ example_00 :heavy_check_mark: AC 5 ms 4 MB
g++ max_random_00 :heavy_check_mark: AC 136 ms 4 MB
g++ max_random_01 :heavy_check_mark: AC 138 ms 4 MB
g++ random_00 :heavy_check_mark: AC 58 ms 4 MB
g++ random_01 :heavy_check_mark: AC 60 ms 4 MB
Back to top page