結果
問題 | No.1399 すごろくで世界旅行 (構築) |
ユーザー | umezo |
提出日時 | 2021-02-19 23:30:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 55 ms / 3,153 ms |
コード長 | 409 bytes |
コンパイル時間 | 1,804 ms |
コンパイル使用メモリ | 191,828 KB |
最終ジャッジ日時 | 2025-01-19 01:49:36 |
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 22 |
ソースコード
#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include <bits/stdc++.h> using namespace std; int main(){ int v,d; cin>>v>>d; if(d==1){ rep(i,v){ rep(j,v) cout<<1; cout<<endl; } } else{ rep(i,v){ rep(j,v){ if(i==0 || j==0) cout<<1; else cout<<0; } cout<<endl; } } return 0; }