結果
| 問題 |
No.3012 岩井星人グラフ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-25 13:27:11 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 346 ms / 2,000 ms |
| コード長 | 346 bytes |
| コンパイル時間 | 3,262 ms |
| コンパイル使用メモリ | 273,648 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-01-25 22:48:05 |
| 合計ジャッジ時間 | 10,936 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge7 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int x = 0,y = 0;
cin >> x >> y;
cout << x * y << " " << x * y << endl;
for (int i = 1;i < x;i++) {
cout << i << " " << i + 1 << endl;
}
cout << x << " 1" << endl;
for (int i = x + 1;i <= x * y;i++) {
cout << i - x << " " << i << endl;
}
}