結果

問題 No.304 鍵(1)
ユーザー vain0vain0
提出日時 2015-11-27 22:56:36
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 919 bytes
コンパイル時間 489 ms
コンパイル使用メモリ 72,724 KB
実行使用メモリ 12,388 KB
最終ジャッジ日時 2023-09-23 22:02:19
合計ジャッジ時間 7,003 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <functional>
#include <cmath>
#ifndef ONLINE_JUDGE
# include <complex>
# include <random>
# include <array>
# include <unordered_map>
# define mkt make_tuple
#endif
#ifdef _LOCAL
# include "module/for_local.h"
#else
# define assert(...) ((void)0)
# define ifdebug if (false)
# define echo(...) ((void)0)
#endif
using namespace std;
typedef long long ll; typedef unsigned long long ull;
#define repi(_I, _B, _E) for(int _I = (_B); (_I) < (_E); ++ (_I))
#define rep(_I, _N) for(int _I = 0; (_I) < (_N); ++ (_I))
#define all(_X) (_X).begin(), (_X).end()


int main()
{
	rep(i, 1000)
	{
		printf("%03d\n", i);
		fflush(stdin);

		char msg[100] {};
		scanf("%s", msg);
		if ( ! strcmp(msg, "unlocked") ) {
			break;
		}
	}
	return 0;
}
0