結果

問題 No.331 CodeRunnerでやれ
ユーザー cielciel
提出日時 2015-12-24 00:32:21
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 310 ms / 5,000 ms
コード長 450 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 23,380 KB
実行使用メモリ 24,360 KB
平均クエリ数 390.53
最終ジャッジ日時 2023-09-23 22:37:23
合計ジャッジ時間 5,602 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
23,976 KB
testcase_01 AC 185 ms
24,360 KB
testcase_02 AC 158 ms
23,464 KB
testcase_03 AC 197 ms
24,004 KB
testcase_04 AC 159 ms
24,348 KB
testcase_05 AC 156 ms
23,412 KB
testcase_06 AC 211 ms
24,276 KB
testcase_07 AC 173 ms
24,336 KB
testcase_08 AC 244 ms
24,352 KB
testcase_09 AC 235 ms
24,196 KB
testcase_10 AC 245 ms
23,956 KB
testcase_11 AC 208 ms
23,404 KB
testcase_12 AC 199 ms
23,356 KB
testcase_13 AC 269 ms
24,012 KB
testcase_14 AC 242 ms
24,192 KB
testcase_15 AC 226 ms
23,356 KB
testcase_16 AC 310 ms
24,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(){
	int N,x;scanf("%d",&N);
	for(;;){
		puts("L");
		fflush(stdout);
		scanf("%d",&N);
		for(x=99;--x;){
			puts("R");
			fflush(stdout);
			scanf("%d",&N);
			for(;!N;){
				puts("L");
				fflush(stdout);
				scanf("%d",&N);
			}
			if(N>50){
				for(x=50;--x;)puts("F");
				return 0;
			}
			puts("F");
			fflush(stdout);
			scanf("%d",&N);
		}
		for(;N--;){
			puts("F");
			fflush(stdout);
			scanf("%d",&x);
		}
	}
}
0