結果

問題 No.304 鍵(1)
ユーザー imulanimulan
提出日時 2016-01-20 00:26:43
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 796 bytes
コンパイル時間 659 ms
コンパイル使用メモリ 73,160 KB
実行使用メモリ 24,048 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-23 23:07:13
合計ジャッジ時間 1,578 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,832 KB
testcase_01 AC 28 ms
23,820 KB
testcase_02 AC 63 ms
23,388 KB
testcase_03 AC 28 ms
24,048 KB
testcase_04 AC 45 ms
23,544 KB
testcase_05 AC 29 ms
23,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <set>
#include <sstream>
#include <utility>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <cctype>
#include <climits>
using namespace std;

typedef long long ll;
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) for(int i=0;i<(n);++i)
#define foreach(itr,c) for(__typeof(c.begin()) itr=c.begin(); itr!=c.end(); itr++)

int main(int argc, char const *argv[]) {
  REP(i,1000){
    int t=i;
    char s[4];

    for(int j=2; j>=0; --j){
      s[j]='0'+t%10;
      t/=10;
    }
    printf("%s\n",s);
    cout << flush;

    string ret;
    cin >>ret;

    if(ret=="locked") continue;
    else break;
  }

  return 0;
}
0