結果

問題 No.304 鍵(1)
ユーザー imulanimulan
提出日時 2016-01-20 00:20:24
言語 C++11
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 779 bytes
コンパイル時間 524 ms
コンパイル使用メモリ 71,768 KB
実行使用メモリ 35,692 KB
最終ジャッジ日時 2023-09-23 23:06:54
合計ジャッジ時間 7,064 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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[]) {
  char s[4];

  REP(i,1000){
    int t=i;
    for(int j=2; j>=0; ++j){
      s[j]='0'+t%10;
      t/=10;
    }

    printf("%s\n", s);

    string ret;
    cin >>ret;

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

  return 0;
}
0