結果

問題 No.264 じゃんけん
ユーザー jimanojimano
提出日時 2016-01-10 16:47:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 458 bytes
コンパイル時間 5,264 ms
コンパイル使用メモリ 75,136 KB
実行使用メモリ 57,584 KB
最終ジャッジ日時 2023-10-19 19:47:57
合計ジャッジ時間 6,660 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
57,336 KB
testcase_01 AC 135 ms
57,464 KB
testcase_02 AC 133 ms
57,156 KB
testcase_03 AC 133 ms
57,172 KB
testcase_04 AC 134 ms
57,396 KB
testcase_05 AC 133 ms
57,296 KB
testcase_06 AC 132 ms
57,472 KB
testcase_07 AC 136 ms
57,400 KB
testcase_08 AC 135 ms
57,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No0264 {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		byte N = sc.nextByte();
		byte K = sc.nextByte();

		//3の剰余
		if(N == K) drew();
		else if( (N + 1) % 3 == K) won();
		else lost();
	}
	
	public static void won(){
		System.out.println("Won");
	}
	public static void lost(){
		System.out.println("Lost");
	}
	public static void drew(){
		System.out.println("Drew");
	}
}
0