結果

問題 No.264 じゃんけん
ユーザー r.suzukir.suzuki
提出日時 2015-12-08 12:07:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 366 bytes
コンパイル時間 3,255 ms
コンパイル使用メモリ 71,016 KB
実行使用メモリ 56,100 KB
最終ジャッジ日時 2023-10-12 21:35:35
合計ジャッジ時間 5,163 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,868 KB
testcase_01 AC 124 ms
55,864 KB
testcase_02 AC 125 ms
56,100 KB
testcase_03 AC 127 ms
55,824 KB
testcase_04 AC 129 ms
55,668 KB
testcase_05 AC 127 ms
55,388 KB
testcase_06 AC 127 ms
55,404 KB
testcase_07 AC 128 ms
55,620 KB
testcase_08 AC 128 ms
55,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No_264 {

	public static void main(String[] args) {
		String[][] standings = {{"Drew","Won","Lost"},
								{"Lost","Drew","Won"},
								{"Won","Lost","Drew"}
								};
		
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		System.out.println(standings[a][b]);
		sc.close();

	}

}
0