結果

問題 No.264 じゃんけん
ユーザー ryosuke0825ryosuke0825
提出日時 2018-04-05 23:53:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 379 bytes
コンパイル時間 2,991 ms
コンパイル使用メモリ 72,612 KB
実行使用メモリ 56,312 KB
最終ジャッジ日時 2023-09-08 17:53:08
合計ジャッジ時間 4,866 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,232 KB
testcase_01 AC 121 ms
55,704 KB
testcase_02 AC 122 ms
56,200 KB
testcase_03 AC 122 ms
56,172 KB
testcase_04 AC 116 ms
55,796 KB
testcase_05 AC 118 ms
55,876 KB
testcase_06 AC 119 ms
55,492 KB
testcase_07 AC 118 ms
55,960 KB
testcase_08 AC 121 ms
56,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No264 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();

		if (N == K) {
			System.out.println("Drew");
		}else if((N==0 && K == 1) || (N==1 && K == 2) || (N==2 && K == 0)) {
			System.out.println("Won");
		}else {
			System.out.println("Lost");
		}

	}

}
0