結果

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

ソースコード

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