結果

問題 No.264 じゃんけん
ユーザー yu_017yu_017
提出日時 2019-01-13 19:18:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 367 bytes
コンパイル時間 3,305 ms
コンパイル使用メモリ 71,892 KB
実行使用メモリ 56,224 KB
最終ジャッジ日時 2023-08-26 22:36:28
合計ジャッジ時間 5,266 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
56,224 KB
testcase_01 AC 122 ms
55,740 KB
testcase_02 AC 120 ms
55,628 KB
testcase_03 AC 122 ms
55,488 KB
testcase_04 AC 120 ms
55,536 KB
testcase_05 AC 120 ms
55,580 KB
testcase_06 AC 126 ms
55,640 KB
testcase_07 AC 123 ms
55,716 KB
testcase_08 AC 121 ms
55,600 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class A000264 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int p = (-sc.nextInt()+sc.nextInt()+3)%3;
		sc.close();
		switch (p) {
		case 0:
			System.out.println("Drew");
			break;
		case 1:
			System.out.println("Won");
			break;
		case 2:
			System.out.println("Lost");
			break;
		}
	}

}
0