結果
問題 | No.3012 岩井星人グラフ |
ユーザー |
|
提出日時 | 2025-01-25 13:58:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 458 bytes |
コンパイル時間 | 2,047 ms |
コンパイル使用メモリ | 193,184 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-25 23:04:34 |
合計ジャッジ時間 | 7,526 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge7 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int X,Y; cin >> X >> Y; cout << X*Y << " " << X*Y << "\n"; for(int i=0; i<X; i++) cout << i+1 << " " << (i+1)%X+1 << "\n"; int now = X; for(int i=0; i<X; i++){ int back = i; for(int t=0; t<Y-1; t++){ cout << back+1 << " " << (now+1) << "\n"; back = now; now++; } } }