結果

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

ソースコード

diff #

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

using ll = long long;
using P = pair<ll, ll>;
const ll INF = (1LL << 61);
ll mod = 998244353;


signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	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++) {
				if (i == 0 || j == 0)cout << 1;
				else cout << 0;
			}
			cout << endl;
		}
	}
	return 0;
}
0