結果

問題 No.304 鍵(1)
ユーザー たこしたこし
提出日時 2015-11-27 23:10:31
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 974 bytes
コンパイル時間 735 ms
コンパイル使用メモリ 88,932 KB
実行使用メモリ 24,336 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-23 22:03:24
合計ジャッジ時間 1,560 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <fstream>
#include <queue>
#include <complex>
 
#define INF 100000000
#define YJ 1145141919
#define INF_INT_MAX 2147483647
#define INF_LL_MAX 9223372036854775807
#define EPS 1e-10
#define Pi acos(-1)
#define LL long long
#define ULL unsigned long long

using namespace std;

int main(){

  for(char c1 = '0'; c1 <= '9'; c1++){
    for(char c2 = '0'; c2 <= '9'; c2++){
      for(char c3 = '0'; c3 <= '9'; c3++){
	string str;
	str += c1;
	str += c2;
	str += c3;
	cout << str << endl;
	cin >> str;
	if(str == "unlocked")
	  return 0;
      }
    }
  }

  return 0;

}
0