結果
問題 |
No.244 ★1のグラフの問題
|
ユーザー |
|
提出日時 | 2025-09-13 16:08:01 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 2,553 bytes |
コンパイル時間 | 1,741 ms |
コンパイル使用メモリ | 194,240 KB |
実行使用メモリ | 7,720 KB |
最終ジャッジ日時 | 2025-09-13 16:08:04 |
合計ジャッジ時間 | 2,824 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
// solved: 2025-09-13 #pragma region templates #include <bits/stdc++.h> using namespace std; //型省略 using ll = long long; using ull = unsigned long long; using lll = __int128; using ld = long double; using pii = pair<int,int>; using pll = pair<ll,ll>; template<class T> using vec = vector<T>; template<class T> using mat = vec<vec<T>>; using vecl = vec<ll>; using matl = mat<ll>; using vvvl = vec<vec<vec<ll>>>; using vvvvl = vec<vec<vec<vec<ll>>>>; using vecs = vec<string>; using mats = mat<string>; using vecld = vec<ld>; using matld = mat<ld>; template<class T> using pq = priority_queue<T, vec<T>>; //大きい順 template<class T> using pq_g = priority_queue<T, vec<T>, greater<T>>; //小さい順 //定数関連 const int INF = 1001001001; const ll LINF = (1LL << 60); const double DINF = 1e18; const double pi = acos(-1.0); constexpr array<int,4> dx2 = {1, 0, -1, 0}; constexpr array<int,4> dy2 = {0, 1, 0, -1}; constexpr array<int,8> dx3 = {1, 1, 0, -1, -1, -1, 0, 1}; constexpr array<int,8> dy3 = {0, 1, 1, 1, 0, -1, -1, -1}; //まっくろくろすけ #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define nfor(i, s, n) for(ll i = s; i < (n); i++) #define rfor(i, s, n) for(ll i = (s) - 1; i >= (n); i--) #define for0(i,n) for(ll i = 0; i < (n); i++) #define for1(i,n) for(ll i = 1; i <= (n); i++) #define nper(v) next_permutation(all(v)) #define YES cout << "Yes\n" #define NO cout << "No\n" #define dame cout << -1 << "\n" #define YN {cout << "Yes\n";} else {cout << "No\n";} #define eudist(x, y) ((x)*(x) + (y)*(y)) #define L1(x1, y1, x2, y2) (abs((x1) - (x2)) + abs((y1) - (y2))) //ACL使う? /* //#include "atcoder/modint" //#include "atcoder/convolution" //#include "atcoder/dsu" //#include "atcoder/fenwicktree" //#include "atcoder/lazysegtree" //#include "atcoder/math" //#include "atcoder/maxflow" //#include "atcoder/mincostflow" //#include "atcoder/scc" //#include "atcoder/segtree" //#include "atcoder/string" //#include "atcoder/twosat" using namespace atcoder; using mint = modint998244353; //using mint = modint1000000007; //using mint = modint; // 好きな数で取りたいとき。上で宣言→main内で set_mod //mint::set_mod(m); // これで m で mod とれるよ(main の中で呼んでね) using vecmint = vec<mint>; using matmint = mat<mint>; using vvvmint = vec<vec<vec<mint>>>; */ #pragma endregion //関数 //メイン関数ここから int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; cout << N - 1 << "\n"; }