結果
| 問題 | No.3012 岩井星人グラフ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-02 00:31:15 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 437 bytes |
| 記録 | |
| コンパイル時間 | 1,769 ms |
| コンパイル使用メモリ | 194,720 KB |
| 実行使用メモリ | 7,852 KB |
| 最終ジャッジ日時 | 2026-01-02 00:31:24 |
| 合計ジャッジ時間 | 8,052 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
void print(int i, int j){
printf("%d %d\n", i, j);
}
int main () {
int x,y;
cin >> x >> y;
printf("%d %d\n", x * y, x * y);
for(int i = 1; i <= x * y; i++){
if(i <= x - 1){
print(i, i + 1);
print(i, i + x);
} else if (i == x){
print(i, 1);
print(i, i + x);
} else if (i <= y * (x - 1)){
print(i, i + x);
}
}
cout << endl;
}