結果
| 問題 |
No.3012 岩井星人グラフ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-25 12:51:34 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 450 bytes |
| コンパイル時間 | 3,055 ms |
| コンパイル使用メモリ | 274,756 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2025-01-25 22:24:23 |
| 合計ジャッジ時間 | 10,297 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 23 |
ソースコード
#include <bits/stdc++.h>
#include <cstdlib>
#include <math.h>
using namespace std;
using ll = long long;
int main(){
int x,y;
cin >> x >> y;
cout << x*y <<" "<< x*y << endl;
cout << x*y <<" " << 1 << endl;
for(int i=0;i<x;i++){
if(i!=0){
cout << (i-1)*y +1 << " " <<i*y+1<< endl;
}
for(int j=0;j<y-1;j++){
cout << i*y+j+1 << " " << i*y+j+2 << endl;
}
}
return 0;
}