結果
問題 |
No.1264 010
|
ユーザー |
|
提出日時 | 2020-10-24 09:10:43 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 801 bytes |
コンパイル時間 | 3,716 ms |
コンパイル使用メモリ | 229,316 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-21 14:58:00 |
合計ジャッジ時間 | 4,376 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 8 WA * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; #include <atcoder/all> using namespace atcoder; template <typename T> bool chmax(T &u, const T z) { if (u < z) {u = z; return true;} else return false; } template <typename T> bool chmin(T &u, const T z) { if (u > z) {u = z; return true;} else return false; } #define ll long long #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) //#define endl "\n" typedef pair<ll, ll> P; //const ll INF = LLONG_MAX; using mint = modint1000000007; //using mint = modint998244353; //const int MOD = 1000000007; ll gcd(ll x, ll y) { return y ? gcd(y, x % y) : x; } int main(){ int n; cin>>n; if(n==0)cout<<1<<endl; else if(n==1)cout<<010<<endl; else if(n==2)cout<<010010<<endl; else { cout<<01; rep(i,n)cout<<0; cout<<10<<endl; } return 0; }