結果

問題 No.264 じゃんけん
ユーザー hnthnt
提出日時 2016-04-10 20:11:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 397 bytes
コンパイル時間 3,453 ms
コンパイル使用メモリ 74,572 KB
実行使用メモリ 54,196 KB
最終ジャッジ日時 2024-04-14 23:54:19
合計ジャッジ時間 5,150 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
53,940 KB
testcase_01 AC 127 ms
53,960 KB
testcase_02 AC 128 ms
54,196 KB
testcase_03 AC 128 ms
53,988 KB
testcase_04 AC 126 ms
54,032 KB
testcase_05 AC 129 ms
53,940 KB
testcase_06 AC 132 ms
54,068 KB
testcase_07 AC 130 ms
54,120 KB
testcase_08 AC 132 ms
53,968 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==0 && K==0 || N==1 && K==1 || N==2 && K==2){
			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