結果
問題 | No.1399 すごろくで世界旅行 (構築) |
ユーザー |
![]() |
提出日時 | 2021-02-19 21:57:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 56 ms / 3,153 ms |
コード長 | 441 bytes |
コンパイル時間 | 1,574 ms |
コンパイル使用メモリ | 165,648 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-16 18:54:19 |
合計ジャッジ時間 | 22,074 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ 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; } } }