結果

問題 No.304 鍵(1)
ユーザー Lay_ecLay_ec
提出日時 2015-11-27 23:08:03
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 577 bytes
コンパイル時間 995 ms
コンパイル使用メモリ 77,732 KB
実行使用メモリ 24,252 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-23 22:03:16
合計ジャッジ時間 1,686 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
23,556 KB
testcase_01 AC 28 ms
24,252 KB
testcase_02 AC 62 ms
24,048 KB
testcase_03 AC 28 ms
23,424 KB
testcase_04 AC 42 ms
23,460 KB
testcase_05 AC 27 ms
24,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <cstdio>
#include <functional>
#include <set>
#include <sstream>
#include <map>
#include <queue>
#include <stack>

using namespace std;

int main(){

    for(int i=0;i<1000;i++){
        stringstream ss;
        ss<<i;
        string out=ss.str();
        while(out.size()!=3) out='0'+out;
        cout<<out<<endl;
        cout.flush();
        
        string res;
        cin>>res;
        if(res[0]=='u') break;
    }

    return 0;

}
0