結果

問題 No.331 CodeRunnerでやれ
ユーザー uwiuwi
提出日時 2015-12-16 05:02:32
言語 Java21
(openjdk 21)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 982 bytes
コンパイル時間 5,014 ms
コンパイル使用メモリ 75,448 KB
実行使用メモリ 87,324 KB
平均クエリ数 17461.12
最終ジャッジ日時 2023-09-23 22:19:00
合計ジャッジ時間 42,935 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 275 ms
70,832 KB
testcase_01 AC 286 ms
70,408 KB
testcase_02 AC 746 ms
74,432 KB
testcase_03 AC 902 ms
73,824 KB
testcase_04 AC 685 ms
73,680 KB
testcase_05 AC 757 ms
75,052 KB
testcase_06 AC 908 ms
76,400 KB
testcase_07 TLE -
testcase_08 AC 1,351 ms
80,788 KB
testcase_09 AC 4,668 ms
82,320 KB
testcase_10 AC 918 ms
75,360 KB
testcase_11 AC 2,329 ms
82,512 KB
testcase_12 AC 4,837 ms
87,256 KB
testcase_13 AC 2,619 ms
82,004 KB
testcase_14 AC 3,741 ms
84,932 KB
testcase_15 AC 1,722 ms
85,052 KB
testcase_16 AC 3,894 ms
87,324 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(0);
		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