結果

問題 No.264 じゃんけん
ユーザー ぴろずぴろず
提出日時 2015-08-07 22:21:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 342 bytes
コンパイル時間 1,929 ms
コンパイル使用メモリ 71,228 KB
実行使用メモリ 56,208 KB
最終ジャッジ日時 2023-09-25 05:59:40
合計ジャッジ時間 3,756 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,940 KB
testcase_01 AC 120 ms
56,052 KB
testcase_02 AC 124 ms
55,628 KB
testcase_03 AC 121 ms
56,016 KB
testcase_04 AC 120 ms
56,120 KB
testcase_05 AC 123 ms
55,652 KB
testcase_06 AC 121 ms
55,932 KB
testcase_07 AC 119 ms
56,044 KB
testcase_08 AC 119 ms
56,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no264;

import java.util.Scanner;

public class Main {

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

}
0