結果

問題 No.264 じゃんけん
ユーザー kazapyon27kazapyon27
提出日時 2017-05-04 18:15:38
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 600 bytes
コンパイル時間 3,040 ms
コンパイル使用メモリ 71,724 KB
実行使用メモリ 49,976 KB
最終ジャッジ日時 2023-10-12 08:03:03
合計ジャッジ時間 4,048 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,376 KB
testcase_01 WA -
testcase_02 AC 44 ms
49,168 KB
testcase_03 WA -
testcase_04 AC 43 ms
49,324 KB
testcase_05 WA -
testcase_06 AC 42 ms
49,584 KB
testcase_07 WA -
testcase_08 AC 42 ms
49,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/*No.264 じゃんけん*/
import java.io.*;
public class No264 {
	public static void main(String[] args) {
		String s_battle,h_battle[]=new String[2];
		byte me,you;
		try(BufferedReader input =new BufferedReader(new InputStreamReader(System.in))){
			s_battle =input.readLine();
			h_battle=s_battle.split(" ");
			me =Byte.parseByte(h_battle[0]);
			you =Byte.parseByte(h_battle[1]);
			if(me>you){
				System.out.println("Won");
			}else if(me==you){
				System.out.println("Drew");
			}else if(me<you){
				System.out.println("Lost");
			}
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}
0