結果

問題 No.331 CodeRunnerでやれ
ユーザー 37zigen
提出日時 2016-05-28 13:02:44
言語 Java
(openjdk 23)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 523 bytes
コンパイル時間 2,237 ms
コンパイル使用メモリ 78,708 KB
実行使用メモリ 75,296 KB
平均クエリ数 11218.71
最終ジャッジ日時 2024-07-16 23:49:34
合計ジャッジ時間 16,346 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 11 TLE * 1 -- * 4
権限があれば一括ダウンロードができます

ソースコード

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