結果

問題 No.264 じゃんけん
ユーザー papipenpapipen
提出日時 2017-03-23 23:25:06
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 393 bytes
コンパイル時間 4,097 ms
コンパイル使用メモリ 71,752 KB
実行使用メモリ 57,920 KB
最終ジャッジ日時 2023-09-19 06:46:53
合計ジャッジ時間 4,120 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,360 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 126 ms
55,788 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 126 ms
55,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Janken{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    if(a == b){
      System.out.println("Drew");
    }else if((a == 0 && b == 1) || (a == 1 && b == 2) || (a == 2 && b == 0)){
      System.out.println("won");
    }else{
      System.out.println("Lose");
    }
  }
}
0