結果

問題 No.264 じゃんけん
ユーザー 8130Tsk
提出日時 2015-08-08 23:56:01
言語 Java
(openjdk 23)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 408 bytes
コンパイル時間 3,227 ms
コンパイル使用メモリ 74,180 KB
実行使用メモリ 41,360 KB
最終ジャッジ日時 2024-07-18 06:06:54
合計ジャッジ時間 5,002 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No264 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		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