テンプレート2026/11/17更新
| 投稿者 | wellover23 |
|---|---|
| 言語 | C++23(gcc16) |
| 更新日時 (JST) | 2026-11-17 06:47:37 |
| サイズ | 1,083 Byte |
| 参照URL | |
更新すると更新日時が変わるので、不都合がある場合は新しく投稿してください。
#ifndef ONLINE_JUDGE
#define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll INF = 2e18;
using P = pair<ll, ll>;
template<typename T> using vc = vector<T>;
template<typename T> using vv = vc<vc<T>>;
using vl = vc<ll>; using vvl = vv<ll>; using vvvl = vv<vl>;
#define rep(i,n) for (ll i = 0; i < (n); i++)
#define drep(i,n) for (ll i = (n)-1; i >= 0; i--)//decreaseのd
#define rrep(i,n) for (ll i = 1; i <= (n); i++)
#define nfor(i,s,n) for (ll i = s; i < n; i++)
#define nall(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
template<class T>
void dbg(const vector<T>& v) {
cerr << "[";
for (size_t i = 0; i < v.size(); ++i) {
if (i) cerr << ", ";
cerr << v[i];
}
cerr << "]\n";
}
#define show(x) cerr << #x " = " << (x) << '\n'
void YesNo(bool d) {
if (d) cout << "Yes" << '\n';
else cout << "No" << '\n';
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
}
// このテンプレートは https://yukicoder.me/users/24957/ai_code で公開しています