結果

問題 No.304 鍵(1)
ユーザー koukonkokoukonko
提出日時 2018-08-24 14:05:27
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 417 bytes
コンパイル時間 660 ms
コンパイル使用メモリ 75,164 KB
実行使用メモリ 24,288 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-24 01:52:45
合計ジャッジ時間 1,537 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,568 KB
testcase_01 AC 31 ms
23,748 KB
testcase_02 AC 63 ms
24,288 KB
testcase_03 AC 30 ms
23,580 KB
testcase_04 AC 46 ms
23,856 KB
testcase_05 AC 29 ms
24,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <math.h>
#include <string>
#include <algorithm>
#include <sstream>
#include <iomanip>

typedef long long ll;
#define MIN(x, y) (x < y ? x : y)
#define MAX(x, y) (x > y ? x : y)

using namespace std;

int main(){
	ostringstream oss;
	for(int i = 0; i <= 999; ++i){
		cout << setw(3) << setfill('0') << i << endl;

		string res;
		cin >> res;
		if(res == "unlocked"){
			return 0;
		}
	}
}
0