結果

問題 No.264 じゃんけん
ユーザー 37zigen37zigen
提出日時 2016-03-29 13:40:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 339 bytes
コンパイル時間 2,331 ms
コンパイル使用メモリ 74,800 KB
実行使用メモリ 54,300 KB
最終ジャッジ日時 2024-04-10 05:48:27
合計ジャッジ時間 4,308 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
54,220 KB
testcase_01 AC 128 ms
54,004 KB
testcase_02 AC 130 ms
54,264 KB
testcase_03 AC 129 ms
54,052 KB
testcase_04 AC 131 ms
53,820 KB
testcase_05 AC 129 ms
54,112 KB
testcase_06 AC 129 ms
54,300 KB
testcase_07 AC 131 ms
54,180 KB
testcase_08 AC 132 ms
54,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder264;
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();
		//G:0
		//T:1
		//P:2
		//Win:0-1,1-2,2-0
		int res=n-k;
		while(res<0)res+=3;
		System.out.println(new String[]{"Drew","Lost","Won"}[res]);

	}
}
0