This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub tatyam-prime/ICPC_notebook
#define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_A" #include "test/template.hpp" int main() { ll a = 0; assert(chmin(a, 1) == 0); assert(chmax(a, 1) == 1); assert(chmax(a, 1) == 0); assert(chmin(a, 0) == 1); puts("Hello World"); }
#line 1 "test/template.test.cpp" #define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_A" #line 1 "test/template.hpp" #include <bits/stdc++.h> using namespace std; using ll = long long; const ll INF = LLONG_MAX / 4; #define rep(i, a, b) for(ll i = a; i < (b); i++) #define all(a) begin(a), end(a) #define sz(a) ssize(a) bool chmin(auto& a, auto b) { return a > b ? a = b, 1 : 0; } bool chmax(auto& a, auto b) { return a < b ? a = b, 1 : 0; } #line 3 "test/template.test.cpp" int main() { ll a = 0; assert(chmin(a, 1) == 0); assert(chmax(a, 1) == 1); assert(chmax(a, 1) == 0); assert(chmin(a, 0) == 1); puts("Hello World"); }