結果

問題 No.264 じゃんけん
ユーザー maki17maki17
提出日時 2017-02-05 22:24:58
言語 Java21
(openjdk 21)
結果
AC  
実行時間 109 ms / 5,000 ms
コード長 501 bytes
コンパイル時間 3,111 ms
コンパイル使用メモリ 72,584 KB
実行使用メモリ 56,260 KB
最終ジャッジ日時 2023-08-25 22:48:56
合計ジャッジ時間 4,221 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
55,964 KB
testcase_01 AC 102 ms
56,052 KB
testcase_02 AC 101 ms
55,732 KB
testcase_03 AC 104 ms
56,108 KB
testcase_04 AC 109 ms
56,244 KB
testcase_05 AC 107 ms
55,676 KB
testcase_06 AC 109 ms
56,068 KB
testcase_07 AC 104 ms
56,260 KB
testcase_08 AC 106 ms
55,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class sample264 {

    public static void main(String[] args) {
         Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
                if((3+a-b)%3 == 0 ){
                    System.out.println("Drew");
                }else if((3+a-b)%3 == 1){
                    System.out.println("Lost");
                }else{
                    System.out.println("Won");
                }
                
               
    }
}
0