結果

問題 No.1399 すごろくで世界旅行 (構築)
ユーザー trineutron
提出日時 2021-02-19 22:04:21
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 61 ms / 3,153 ms
コード長 557 bytes
コンパイル時間 1,852 ms
コンパイル使用メモリ 192,180 KB
最終ジャッジ日時 2025-01-19 00:05:19
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(int argc, char const *argv[])
{
    int v, d;
    cin >> v >> d;
    if (d == 1)
    {
        for (int i = 0; i < v; i++)
        {
            for (int j = 0; j < v; j++)
            {
                cout << 1;
            }
            cout << endl;
        }
    }
    else
    {
        for (int i = 0; i < v; i++)
        {
            for (int j = 0; j < v; j++)
            {
                cout << (i == 0 or j == 0);
            }
            cout << endl;
        }
    }
    return 0;
}
0