結果

問題 No.264 じゃんけん
ユーザー newoota0331newoota0331
提出日時 2016-09-01 17:35:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 716 bytes
コンパイル時間 2,210 ms
コンパイル使用メモリ 74,448 KB
実行使用メモリ 54,224 KB
最終ジャッジ日時 2024-04-27 14:26:16
合計ジャッジ時間 3,856 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
54,040 KB
testcase_01 AC 129 ms
53,968 KB
testcase_02 AC 130 ms
53,928 KB
testcase_03 AC 130 ms
54,032 KB
testcase_04 AC 133 ms
54,224 KB
testcase_05 AC 118 ms
52,992 KB
testcase_06 AC 130 ms
54,156 KB
testcase_07 AC 118 ms
52,836 KB
testcase_08 AC 131 ms
54,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		int a,b;
		String c;
		
		a = sc.nextInt();
		b = sc.nextInt();
		
		if(a==0){
			if(b==1){
				c="Won";
			}else if(b==2){
				c="Lost";
			}else{
				c="Drew";
			}
		}else if(a==1){
			if(b==1){
				c="Drew";
			}else if(b==2){
				c="Won";
			}else{
				c="Lost";
			}
		}else{
			if(b==1){
				c="Lost";
			}else if(b==2){
				c="Drew";
			}else{
				c="Won";
			}
		}
		
		System.out.println(c);
	}
}
0