結果
| 問題 |
No.3012 岩井星人グラフ
|
| ユーザー |
it_is_a_pity_
|
| 提出日時 | 2025-01-25 20:02:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 648 bytes |
| コンパイル時間 | 3,560 ms |
| コンパイル使用メモリ | 222,584 KB |
| 実行使用メモリ | 9,088 KB |
| 最終ジャッジ日時 | 2025-01-26 00:05:03 |
| 合計ジャッジ時間 | 12,875 ms |
|
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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,N){
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;
}
}
}
it_is_a_pity_