結果
| 問題 |
No.1399 すごろくで世界旅行 (構築)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-20 06:45:29 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 3,153 ms |
| コード長 | 920 bytes |
| コンパイル時間 | 628 ms |
| コンパイル使用メモリ | 78,580 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-17 09:06:33 |
| 合計ジャッジ時間 | 20,610 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 22 |
ソースコード
#include<iostream>
#include<string>
#include<iomanip>
#include<cmath>
#include<vector>
#include<algorithm>
#include<utility>
using namespace std;
#define int long long
#define endl "\n"
constexpr long long INF = (long long)1e18;
constexpr long long MOD = 1'000'000'007;
struct fast_io {
fast_io(){
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
};
} fio;
signed main(){
cout<<fixed<<setprecision(10);
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 j = 0; j < V; j++){
cout<<1;
}
cout<<endl;
for(int i = 1; i < V; i++){
cout<<1;
for(int j = 1; j < V; j++){
cout<<0;
}
cout<<endl;
}
}
return 0;
}