結果

問題 No.304 鍵(1)
コンテスト
ユーザー imulan
提出日時 2016-01-20 00:24:42
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 798 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 653 ms
コンパイル使用メモリ 96,264 KB
実行使用メモリ 28,720 KB
平均クエリ数 1.00
最終ジャッジ日時 2026-03-30 21:23:44
合計ジャッジ時間 3,450 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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=="unlocked") continue;
    else break;
  }

  return 0;
}
0