結果

問題 No.264 じゃんけん
ユーザー atkrymatkrym
提出日時 2016-10-23 16:43:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 111 ms / 5,000 ms
コード長 383 bytes
コンパイル時間 1,917 ms
コンパイル使用メモリ 72,092 KB
実行使用メモリ 56,300 KB
最終ジャッジ日時 2023-08-15 17:58:29
合計ジャッジ時間 3,265 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
55,756 KB
testcase_01 AC 104 ms
55,924 KB
testcase_02 AC 107 ms
55,644 KB
testcase_03 AC 106 ms
56,052 KB
testcase_04 AC 106 ms
55,628 KB
testcase_05 AC 107 ms
56,300 KB
testcase_06 AC 108 ms
56,128 KB
testcase_07 AC 106 ms
55,760 KB
testcase_08 AC 111 ms
55,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;
import java.text.*;

public class Main {
    private static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws Exception {
        int[][] ret = {{0, 1, 2}, {2, 0, 1}, {1, 2, 0}};
        String[] s = {"Drew", "Won", "Lost"};
        
        System.out.println(s[ret[sc.nextInt()][sc.nextInt()]]);
    }
}
0