結果

問題 No.304 鍵(1)
ユーザー mizuyoukannKBmizuyoukannKB
提出日時 2016-04-03 13:58:17
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 179 bytes
コンパイル時間 368 ms
コンパイル使用メモリ 50,320 KB
実行使用メモリ 24,408 KB
平均クエリ数 1.00
最終ジャッジ日時 2023-09-23 10:12:10
合計ジャッジ時間 2,054 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,436 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:15:3: warning: ‘i’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   ++i;
   ^~~

ソースコード

diff #

#include <iostream>

using namespace std;

int main()
{
	int i;
	char str[9];

	do
	{
		printf("%03d\n", i);
		cout.flush();

		++i;
	} while(scanf("%s", str) == 6);

	return 0;
}
0