結果

問題 No.331 CodeRunnerでやれ
ユーザー 37zigen37zigen
提出日時 2016-05-28 13:02:44
言語 Java21
(openjdk 21)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 523 bytes
コンパイル時間 2,192 ms
コンパイル使用メモリ 74,600 KB
実行使用メモリ 76,796 KB
平均クエリ数 5675.94
最終ジャッジ日時 2023-09-23 23:59:11
合計ジャッジ時間 16,919 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 237 ms
71,772 KB
testcase_01 AC 290 ms
71,796 KB
testcase_02 AC 640 ms
76,724 KB
testcase_03 AC 459 ms
74,532 KB
testcase_04 AC 686 ms
75,220 KB
testcase_05 AC 462 ms
72,256 KB
testcase_06 AC 1,058 ms
76,560 KB
testcase_07 AC 1,509 ms
76,796 KB
testcase_08 AC 983 ms
59,752 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
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
		while(true){
			int r=(int)(Math.random()*4);
			if(r==0){
				System.out.println("F");
			}else if(r==1){
				System.out.println("B");
			}else if(r==2){
				System.out.println("L");
			}else if(r==3){
				System.out.println("R");
			}
			String s=sc.nextLine();
			if(s.equals("Merry Christmas!")){
				return;
			}
		}
	}
}
0