結果
問題 |
No.3012 岩井星人グラフ
|
ユーザー |
|
提出日時 | 2025-01-25 13:56:59 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 458 bytes |
コンパイル時間 | 1,710 ms |
コンパイル使用メモリ | 192,908 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-01-25 23:03:15 |
合計ジャッジ時間 | 6,919 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge7 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 1 WA * 22 |
ソースコード
#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<X-1; t++){ cout << back+1 << " " << (now+1) << "\n"; back = now; now++; } } }