結果

問題 No.264 じゃんけん
ユーザー Koketti1Koketti1
提出日時 2017-02-05 16:40:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 383 bytes
コンパイル時間 1,980 ms
コンパイル使用メモリ 71,428 KB
実行使用メモリ 56,236 KB
最終ジャッジ日時 2023-08-25 20:27:42
合計ジャッジ時間 3,706 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,848 KB
testcase_01 AC 120 ms
55,612 KB
testcase_02 AC 120 ms
55,956 KB
testcase_03 AC 121 ms
55,740 KB
testcase_04 AC 121 ms
55,724 KB
testcase_05 AC 120 ms
55,540 KB
testcase_06 AC 122 ms
55,844 KB
testcase_07 AC 122 ms
56,132 KB
testcase_08 AC 121 ms
56,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int A = scanner.nextInt();
		int B = scanner.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");
		}
		scanner.close();
	}
}
0