結果

問題 No.331 CodeRunnerでやれ
ユーザー 37zigen37zigen
提出日時 2016-05-28 13:08:14
言語 Java21
(openjdk 21)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 435 bytes
コンパイル時間 3,148 ms
コンパイル使用メモリ 71,140 KB
実行使用メモリ 88,732 KB
平均クエリ数 13421.59
最終ジャッジ日時 2023-09-23 23:58:51
合計ジャッジ時間 10,489 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 284 ms
71,192 KB
testcase_01 AC 335 ms
54,244 KB
testcase_02 AC 2,806 ms
84,688 KB
testcase_03 AC 715 ms
74,852 KB
testcase_04 AC 755 ms
74,624 KB
testcase_05 AC 1,126 ms
78,460 KB
testcase_06 AC 1,232 ms
75,952 KB
testcase_07 AC 1,209 ms
75,248 KB
testcase_08 AC 1,143 ms
74,760 KB
testcase_09 AC 2,261 ms
81,328 KB
testcase_10 AC 3,924 ms
88,732 KB
testcase_11 AC 3,855 ms
86,952 KB
testcase_12 AC 1,628 ms
77,232 KB
testcase_13 AC 4,259 ms
86,136 KB
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;
import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		new Main().solve();
	}
	void solve(){
		Scanner sc=new Scanner(System.in);
		//F,B,L,R
		String s="";
		while(true){
			int r=(int)(Math.random()*2);
			if(r==0){
				System.out.println("F");
			}else if(r==1){
				System.out.println("R");
			}
			s=sc.nextLine();
			if(s.equals("Merry Christmas!")){
				return;
			}
		}
	}
}
0