結果

問題 No.331 CodeRunnerでやれ
コンテスト
ユーザー ciel
提出日時 2015-12-24 00:24:32
言語 C90(gcc12)
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc12.so -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 424 ms / 5,000 ms
+ 999µs
コード長 580 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 95 ms
コンパイル使用メモリ 31,944 KB
実行使用メモリ 9,796 KB
平均クエリ数 370.79
最終ジャッジ日時 2026-10-31 18:09:37
合計ジャッジ時間 6,575 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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