結果

問題 No.331 CodeRunnerでやれ
ユーザー uwiuwi
提出日時 2015-12-19 07:14:29
言語 Java21
(openjdk 21)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 1,078 bytes
コンパイル時間 3,413 ms
コンパイル使用メモリ 75,880 KB
実行使用メモリ 88,240 KB
平均クエリ数 16812.41
最終ジャッジ日時 2023-09-23 22:25:04
合計ジャッジ時間 39,153 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 254 ms
71,144 KB
testcase_01 AC 270 ms
72,072 KB
testcase_02 AC 738 ms
72,048 KB
testcase_03 AC 303 ms
68,764 KB
testcase_04 AC 658 ms
70,904 KB
testcase_05 AC 693 ms
74,136 KB
testcase_06 AC 845 ms
75,252 KB
testcase_07 TLE -
testcase_08 AC 733 ms
75,688 KB
testcase_09 AC 4,545 ms
86,980 KB
testcase_10 AC 826 ms
76,132 KB
testcase_11 AC 2,324 ms
82,792 KB
testcase_12 AC 4,777 ms
86,528 KB
testcase_13 AC 2,610 ms
82,660 KB
testcase_14 AC 3,599 ms
85,164 KB
testcase_15 AC 1,765 ms
82,284 KB
testcase_16 AC 3,756 ms
84,536 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){
			String input = in.next();
			if(input.charAt(0) >= '0' && input.charAt(0) <= '9'){
				if(input.equals("20151224")){
					out.println("F");
					out.flush();
					continue;
				}
			}else{
				break;
			}
			char command = "FBLR".charAt(gen.nextInt(4));
			out.println(command);
			out.flush();
		}
	}
	
	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