結果
問題 |
No.3012 岩井星人グラフ
|
ユーザー |
|
提出日時 | 2025-01-25 15:12:06 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 669 bytes |
コンパイル時間 | 5,705 ms |
コンパイル使用メモリ | 332,088 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-01-25 23:41:56 |
合計ジャッジ時間 | 8,933 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 23 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using mint = atcoder::static_modint<998244353>; // using mint = atcoder::static_modint<1000000007>; using namespace std; using namespace atcoder; using ld = long double; using ll = long long; #define mp(a,b) make_pair(a,b) #define rep(i,s,n) for(int i=s; i<n; i++) const vector<int> dx{1,0,-1,0},dy{0,1,0,-1}; int main(){ int x,y; cin >> x >> y; rep(i,0,x){ int u=i,v=(i+1)%x; cout << u+1 << " " << v+1 << "\n"; } int cnt=x+1; rep(i,1,x+1){ int p=i; rep(j,0,y-1){ cout << p << " " << cnt << "\n"; p=cnt; cnt++; } } }