結果

問題 No.3012 岩井星人グラフ
ユーザー ウチュウジン
提出日時 2025-01-26 22:58:23
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 615 bytes
コンパイル時間 538 ms
コンパイル使用メモリ 60,288 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2025-01-26 22:58:32
合計ジャッジ時間 5,825 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;

int main(){
        int x,y;
        cin >> x >> y;
        cout << x*y << " " << x*y << endl;
        for(int i = 0; i < x; i++){
                for(int j = 0; j < y; j++){
                        if(j==y-1 && i == x-1){
                                cout << i+y*j << " " << i+y*j+1-x << endl;
                        }else if(j==y-1){
                                cout << i+y*j << " " << i+y*j+1 << endl;
                        }else{
                                cout << i+y*j << " " << i+y*(j+1) << endl;
                        }
                }
        }
}
0