結果

問題 No.304 鍵(1)
ユーザー dazydazy
提出日時 2018-05-27 01:38:26
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 831 bytes
コンパイル時間 3,583 ms
コンパイル使用メモリ 142,960 KB
実行使用メモリ 36,244 KB
最終ジャッジ日時 2023-09-23 16:04:09
合計ジャッジ時間 7,756 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;
#define fastcin {\
    cin.tie(0);\
    ios::sync_with_stdio(false);\
}
#define rep(i, a, b) for(int i = a; i < b; i++)
#define rrep(i, a, b) for(int i = a; i >= b; i--)
#define fore(i, a) for(auto &i:a)
#define print(x) cout << x << "\n"
#define SORT(a, n) sort(a, a+n);
#define REVERSE(a,n) reverse(a,a+n);
#define VSORT(v) sort(v.begin(), v.end());
#define VREVERSE(v) reverse(v.begin(), v.end());
#define MOD 1000000007
#define yes "YES"
#define no "NO"
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vll;

int main() {
    fastcin;
    int ans = 0;
    string result;
    rep(i, 0, 999) {
        printf("%03d\n", ans);
        flush(cout);
        cin >> result;
        if(result=="unlocked") break;
        ans++;
    }
    return 0;
}
0