結果

問題 No.264 じゃんけん
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-04 20:57:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 414 bytes
コンパイル時間 3,125 ms
コンパイル使用メモリ 72,152 KB
実行使用メモリ 56,396 KB
最終ジャッジ日時 2023-09-12 16:07:28
合計ジャッジ時間 5,060 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
53,568 KB
testcase_01 AC 122 ms
56,376 KB
testcase_02 AC 124 ms
56,104 KB
testcase_03 AC 122 ms
55,976 KB
testcase_04 AC 122 ms
55,924 KB
testcase_05 AC 121 ms
55,820 KB
testcase_06 AC 121 ms
55,876 KB
testcase_07 AC 120 ms
56,396 KB
testcase_08 AC 124 ms
55,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No264 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int myhand = sc.nextInt();
		int urhand = sc.nextInt();
		
		switch(myhand - urhand) {
			case 0:
				System.out.println("Drew");
				break;
			case -1:
			case 2:
				System.out.println("Won");
				break;
			case 1:
			case -2:
				System.out.println("Lost");
				break;
		}
	}
}
0