結果

問題 No.331 CodeRunnerでやれ
ユーザー cielciel
提出日時 2015-12-24 00:24:32
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 330 ms / 5,000 ms
コード長 580 bytes
コンパイル時間 359 ms
コンパイル使用メモリ 23,716 KB
実行使用メモリ 24,420 KB
平均クエリ数 382.41
最終ジャッジ日時 2023-09-23 22:35:58
合計ジャッジ時間 5,720 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
24,396 KB
testcase_01 AC 140 ms
23,436 KB
testcase_02 AC 154 ms
24,028 KB
testcase_03 AC 164 ms
24,376 KB
testcase_04 AC 162 ms
23,640 KB
testcase_05 AC 161 ms
24,288 KB
testcase_06 AC 168 ms
23,532 KB
testcase_07 AC 185 ms
23,388 KB
testcase_08 AC 221 ms
24,040 KB
testcase_09 AC 248 ms
23,344 KB
testcase_10 AC 213 ms
23,836 KB
testcase_11 AC 258 ms
24,340 KB
testcase_12 AC 214 ms
23,380 KB
testcase_13 AC 205 ms
23,616 KB
testcase_14 AC 324 ms
24,420 KB
testcase_15 AC 242 ms
23,560 KB
testcase_16 AC 330 ms
24,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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