結果

問題 No.264 じゃんけん
ユーザー star filed☆star filed☆
提出日時 2020-04-25 15:14:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 5,000 ms
コード長 362 bytes
コンパイル時間 2,143 ms
コンパイル使用メモリ 73,844 KB
実行使用メモリ 41,252 KB
最終ジャッジ日時 2024-04-24 19:07:25
合計ジャッジ時間 3,990 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
39,620 KB
testcase_01 AC 115 ms
40,316 KB
testcase_02 AC 118 ms
40,180 KB
testcase_03 AC 107 ms
39,784 KB
testcase_04 AC 115 ms
41,252 KB
testcase_05 AC 102 ms
39,744 KB
testcase_06 AC 113 ms
40,972 KB
testcase_07 AC 102 ms
39,944 KB
testcase_08 AC 118 ms
41,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
 
class RPS{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int me = sc.nextInt();
		int you = sc.nextInt();
		
		if(me == you){
		    System.out.println("Drew");
		}else if((me==you-1) || ((me == 2) && (you == 0))){
		    System.out.println("Won");
		}else{
		    System.out.println("Lost");
		}
	}
}
0