結果

問題 No.1264 010
ユーザー karinohitokarinohito
提出日時 2020-10-24 10:35:57
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 3,141 bytes
コンパイル時間 1,067 ms
コンパイル使用メモリ 107,172 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-28 20:13:12
合計ジャッジ時間 2,287 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 1 ms
4,380 KB
testcase_11 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <numeric>
#include <cmath>
#include <limits>
#include <stdio.h>
#include <iomanip>
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
using namespace std;
using ll = long long;
#define all(A) A.begin(),A.end()
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
ll Max(ll(a), ll(b), ll(c)) {
    return max(max(a, b), c);
}
ll Min(ll(a), ll(b), ll(c)) {
    return min(min(a, b), c);
}



ll Q[4000002];

ll modPow(ll a, ll n, ll p) {
    if (n == 0) return 1;
    if (n == 1) return a % p;
    if (n % 2 == 1) return (a * modPow(a, n - 1, p)) % p;
    long long t = modPow(a, n / 2, p);
    return (t * t) % p;
}
ll Xor(ll a, ll b) {
    ll A = a, B = b;
    ll C = 0;
    ll k = 1;
    while (A > 0 || B > 0) {
        if (A % 2 != B % 2) {
            C += k;
        }
        k *= 2;
        A /= 2;
        B /= 2;

    }
    return C;
}
vector<ll> fact, factinv, inv;
ll mod = 1e9 + 7;
void prenCkModp(ll n) {
    fact.resize(n + 5);
    factinv.resize(n + 5);
    inv.resize(n + 5);
    fact.at(0) = fact.at(1) = 1;
    factinv.at(0) = factinv.at(1) = 1;
    inv.at(1) = 1;
    for (ll i = 2; i < n + 5; i++) {
        fact.at(i) = (fact.at(i - 1) * i) % mod;
        inv.at(i) = mod - (inv.at(mod % i) * (mod / i)) % mod;
        factinv.at(i) = (factinv.at(i - 1) * inv.at(i)) % mod;
    }

}
ll nCk(ll n, ll k) {
    return fact.at(n) * (factinv.at(k) * factinv.at(n - k) % mod) % mod;
}
ll dx[4] = { -1,0,1,0 };
ll dy[4] = { 0,-1,0,1 };
ll stll(string S, ll mod) {
    ll n = 0;
    ll k = 1;
    rep(i, S.size()) {
        n += (k * ll(S[S.size() - i - 1] - '0'));
        k *= 10;
        k %= mod;
        n %= mod;
    }
    return n;
}
ll gcd(ll(a), ll(b)) {
    ll c = a;
    while (a % b != 0) {
        c = a % b;
        a = b;
        b = c;
    }
    return b;
}
vector<vector<ll>> AN;
vector<vector<bool>> se;
vector<vector<ll>> A;
ll H, W;
ll pa(ll x, ll y) {
    if (se[x][y])return AN[x][y];
    else {
        ll m = 1;
        rep(i, 4) {
            ll tx = x + dx[i], ty = y + dy[i];
            if (tx < 0 || tx >= H || ty < 0 || ty >= W)continue;
            if (A[tx][ty] > A[x][y])m += pa(tx, ty);
            m %= mod;
        }
        AN[x][y] = m % mod;
        se[x][y] = true;
        return AN[x][y];
    }
}

ll ketawa(ll n) {
    ll k = n;
    ll an = 0;
    while (k > 0) {
        an += k % 10;
        k /= 10;

    }
    return an;
}
ll ans[108][108];
bool s[108][108];
int main() {
    ll N;
    cin >> N;
    cout << "01";
    rep(i, N) {
        cout << "0";
    }
    cout << endl;
    
}
0