結果

問題 No.304 鍵(1)
ユーザー sggkshiosggkshio
提出日時 2018-03-09 07:59:01
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 629 bytes
コンパイル時間 952 ms
コンパイル使用メモリ 83,168 KB
実行使用メモリ 24,228 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-23 15:53:57
合計ジャッジ時間 1,866 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
24,228 KB
testcase_01 AC 31 ms
23,748 KB
testcase_02 AC 64 ms
23,160 KB
testcase_03 AC 31 ms
23,292 KB
testcase_04 AC 46 ms
24,228 KB
testcase_05 AC 30 ms
23,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string>
#include<iostream>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include <sstream>
#include<iomanip>
#include <ctype.h>
using namespace std;

//#include<bits/stdc++.h>



int main() {
	string a = "000";
	
	while (1) {
		cout << a << endl;
		string b;
		cin >> b;
		if (b == "unlocked")break;
		a[2]++;
		if (a[2] > '9') {
			a[1]++; a[2] = '0';
		}
		if (a[1] > '9') {
			a[0]++; a[1] = '0';
		}
	}


	return 0;
}
0