結果

問題 No.304 鍵(1)
ユーザー karinohitokarinohito
提出日時 2022-07-10 02:29:07
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,397 bytes
コンパイル時間 2,149 ms
コンパイル使用メモリ 202,428 KB
実行使用メモリ 24,420 KB
平均クエリ数 292.50
最終ジャッジ日時 2023-08-30 11:24:28
合計ジャッジ時間 3,437 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
23,376 KB
testcase_01 AC 29 ms
24,312 KB
testcase_02 WA -
testcase_03 AC 29 ms
24,240 KB
testcase_04 AC 45 ms
23,352 KB
testcase_05 AC 29 ms
23,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vll = vector<ll>;
using vvll = vector<vll>;
using vvvll = vector<vvll>;
using vvvvll = vector<vvvll>;
using vb = vector<bool>;
using vvb = vector<vb>;
using vvvb = vector<vvb>;
using vvvvb = vector<vvvb>;
using vd = vector<double>;
using vvd = vector<vd>;
using vvvd = vector<vvd>;
#define all(A) A.begin(),A.end()
#define ALL(A) A.begin(),A.end()
#define rep(i, n) for (ll i = 0; i < (ll) (n); i++)
using pqr = priority_queue<pair<ll, ll>, vector<pair<ll, ll>>, greater<pair<ll, ll>>>;

template<class T>
bool chmax(T& p, T q, bool C = 1) {
    if (C == 0 && p == q) {
        return 1;
    }
    if (p < q) {
        p = q;
        return 1;
    }
    else {
        return 0;
    }
}

template<class T>
bool chmin(T& p, T q, bool C = 1) {
    if (C == 0 && p == q) {
        return 1;
    }
    if (p > q) {
        p = q;
        return 1;
    }
    else {
        return 0;
    }
}

ll gcd(ll(a), ll(b)) {
    if (b == 0)return a;
    ll c = a;
    while (a % b != 0) {
        c = a % b;
        a = b;
        b = c;
    }
    return b;
}

vll D={20104,20063,19892,20011,19874,20199,19898,20163,19956,19841};
int main() {

    rep(i,900){
        ll h=i;
        string S=to_string(h);
        while(S.size()<3)S='0'+S;
        cout<<S<<endl;
        string T;
        cin>>T;
        if(T[0]=='u')return 0;
    }

}
0