結果
問題 | No.1399 すごろくで世界旅行 (構築) |
ユーザー |
👑 ![]() |
提出日時 | 2021-02-19 23:01:48 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 3,153 ms |
コード長 | 343 bytes |
コンパイル時間 | 1,823 ms |
コンパイル使用メモリ | 195,160 KB |
最終ジャッジ日時 | 2025-01-19 01:25:36 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; using LL=long long; using ULL=unsigned long long; #define rep(i,n) for(int i=0; i<(n); i++) int V,D; int main(){ cin>>V>>D; string I(V,'1'); string o(V-1,'0'); o="1"+o; if(D==1){ rep(i,V) cout<<I<<"\n"; } else{ cout<<I<<"\n"; rep(i,V-1) cout<<o<<"\n"; } return 0; }