結果

問題 No.264 じゃんけん
ユーザー FVRChanFVRChan
提出日時 2017-10-02 21:28:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 343 bytes
コンパイル時間 1,990 ms
コンパイル使用メモリ 74,564 KB
実行使用メモリ 54,336 KB
最終ジャッジ日時 2024-04-27 18:16:55
合計ジャッジ時間 3,822 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
54,136 KB
testcase_01 AC 116 ms
52,888 KB
testcase_02 AC 129 ms
53,836 KB
testcase_03 AC 128 ms
54,032 KB
testcase_04 AC 134 ms
54,148 KB
testcase_05 AC 133 ms
54,028 KB
testcase_06 AC 129 ms
53,880 KB
testcase_07 AC 132 ms
53,648 KB
testcase_08 AC 131 ms
54,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main{
	private static Scanner sc=new Scanner(System.in);
	public static void main(String args[])throws Exception{
		int n=sc.nextInt(),k=sc.nextInt();
		if(n==k)System.out.println("Drew");
		else if(n-k==2 || n-k==-1)System.out.println("Won");
		else if(n-k==1 || n-k==-2)System.out.println("Lost");
	}
}
0