結果

問題 No.331 CodeRunnerでやれ
ユーザー uwiuwi
提出日時 2015-12-16 04:53:45
言語 Java21
(openjdk 21)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 981 bytes
コンパイル時間 3,160 ms
コンパイル使用メモリ 75,044 KB
実行使用メモリ 86,772 KB
平均クエリ数 12852.06
最終ジャッジ日時 2023-09-23 22:19:36
合計ジャッジ時間 21,805 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 258 ms
69,780 KB
testcase_01 AC 263 ms
69,164 KB
testcase_02 AC 732 ms
75,396 KB
testcase_03 AC 556 ms
73,944 KB
testcase_04 AC 734 ms
71,928 KB
testcase_05 AC 598 ms
71,992 KB
testcase_06 AC 803 ms
76,756 KB
testcase_07 AC 1,314 ms
83,428 KB
testcase_08 AC 582 ms
74,384 KB
testcase_09 AC 1,328 ms
82,236 KB
testcase_10 AC 3,085 ms
86,072 KB
testcase_11 AC 1,334 ms
83,012 KB
testcase_12 AC 3,494 ms
86,772 KB
testcase_13 AC 1,604 ms
84,932 KB
testcase_14 TLE -
testcase_15 AC 942 ms
79,500 KB
testcase_16 AC 4,471 ms
85,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package writer;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;

public class RandomCrawler {
	static Scanner in;
	static PrintWriter out;
	static String INPUT = "";
	
	static void solve()
	{
		Random gen = new Random();
		while(true){
			char command = "FBLR".charAt(gen.nextInt(4));
			out.println(command);
			out.flush();
			String input = in.next();
			if(input.charAt(0) >= '0' && input.charAt(0) <= '9'){
			}else{
				break;
			}
		}
	}
	
	public static void main(String[] args) throws Exception
	{
		in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT);
		out = new PrintWriter(System.out);
		
		solve();
		out.flush();
	}
	
	static int ni() { return Integer.parseInt(in.next()); }
	static long nl() { return Long.parseLong(in.next()); }
	static double nd() { return Double.parseDouble(in.next()); }
	static void tr(Object... o) { if(INPUT.length() != 0)System.out.println(Arrays.deepToString(o)); }
}
0