結果

問題 No.304 鍵(1)
ユーザー yamachu_nazoyamachu_nazo
提出日時 2015-11-27 23:45:02
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 361 ms
コンパイル使用メモリ 52,184 KB
実行使用メモリ 24,084 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-23 22:10:21
合計ジャッジ時間 1,299 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,364 KB
testcase_01 AC 28 ms
23,628 KB
testcase_02 AC 61 ms
24,036 KB
testcase_03 AC 29 ms
24,084 KB
testcase_04 AC 45 ms
23,652 KB
testcase_05 AC 28 ms
23,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
	int i=1;
	string ans;
	cout << "000" << endl;
	cin >> ans;
	while(ans=="locked"){
		if(i<10){
			cout << "00" << i << endl;
		}else if(i<100){
			cout << "0" << i << endl;
		}else{
			cout << i << endl;
		}
		cin >> ans;
		i++;
	}
	return 0;
}
0