結果

問題 No.305 鍵(2)
ユーザー sggkshiosggkshio
提出日時 2018-12-26 23:30:37
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 785 bytes
コンパイル時間 625 ms
コンパイル使用メモリ 84,632 KB
実行使用メモリ 24,312 KB
平均クエリ数 86.69
最終ジャッジ日時 2023-09-24 02:05:11
合計ジャッジ時間 2,121 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
23,664 KB
testcase_01 AC 28 ms
24,048 KB
testcase_02 AC 28 ms
24,288 KB
testcase_03 AC 27 ms
23,604 KB
testcase_04 AC 28 ms
23,628 KB
testcase_05 AC 28 ms
23,640 KB
testcase_06 AC 25 ms
23,808 KB
testcase_07 AC 29 ms
23,628 KB
testcase_08 AC 28 ms
23,616 KB
testcase_09 AC 28 ms
24,300 KB
testcase_10 AC 28 ms
23,436 KB
testcase_11 AC 28 ms
24,312 KB
testcase_12 AC 29 ms
23,604 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>
#include <fstream>
#include <cassert>

using namespace std;

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



int main() {

	string d = "0000000000";
	
	
	string a;
		int n, b = 0;
	for (int i = 0; i < 10; i++) {
		char y = '0';
	
		for (int j = 0; j < 10; j++) {
			fflush(0);
			cout << d << endl;
			cin >> n >> a;
			if (a == "unlocked")return 0;
			if (b < n) {
				b = n; y = d[i];
			}
			
			d[i]+=1;
		//	cout << i << endl;
			
		}
		d[i] = y;
	}

	return 0;
}
0