結果
問題 |
No.3012 岩井星人グラフ
|
ユーザー |
![]() |
提出日時 | 2025-01-25 20:03:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 648 bytes |
コンパイル時間 | 4,041 ms |
コンパイル使用メモリ | 221,596 KB |
実行使用メモリ | 9,040 KB |
最終ジャッジ日時 | 2025-01-26 00:05:35 |
合計ジャッジ時間 | 10,821 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge7 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 23 |
ソースコード
#ifdef LOCAL #define _GLIBCXX_DEBUG #endif #include <bits/stdc++.h> #include <atcoder/all> using namespace atcoder; using namespace std; #define ll long long #define rep(i,n) for(ll i=0;i<(ll)n;i++) #define all(v) v.begin(),v.end() const ll INF = (ll)2e18; int main(){ cin.tie(0); ios::sync_with_stdio(false); ll X, Y; cin >> X >> Y; cout << X * Y << ' ' << X * Y << endl; ll N = X * Y; vector<vector<ll>> G(N); rep(i,X){ cout << i + 1 << ' ' << (i + 1) % N + 1 << endl; } rep(i,Y-1){ rep(j,X){ cout << (i + 1) * X + j + 1 << ' ' << i * X + j + 1 << endl; } } }