結果

問題 No.331 CodeRunnerでやれ
ユーザー ciel
提出日時 2015-12-24 00:24:32
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 354 ms / 5,000 ms
コード長 580 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 20,352 KB
実行使用メモリ 25,232 KB
平均クエリ数 382.41
最終ジャッジ日時 2024-07-16 22:19:22
合計ジャッジ時間 5,614 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

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