結果

問題 No.524 コインゲーム
ユーザー 37zigen37zigen
提出日時 2017-06-05 21:49:36
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 430 bytes
コンパイル時間 2,371 ms
コンパイル使用メモリ 74,568 KB
実行使用メモリ 57,888 KB
最終ジャッジ日時 2023-10-22 05:38:39
合計ジャッジ時間 8,544 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
57,316 KB
testcase_01 AC 129 ms
57,400 KB
testcase_02 AC 128 ms
57,336 KB
testcase_03 AC 115 ms
56,296 KB
testcase_04 RE -
testcase_05 AC 128 ms
57,428 KB
testcase_06 AC 128 ms
57,372 KB
testcase_07 AC 127 ms
57,384 KB
testcase_08 AC 129 ms
57,368 KB
testcase_09 AC 130 ms
57,340 KB
testcase_10 AC 129 ms
57,280 KB
testcase_11 AC 131 ms
57,640 KB
testcase_12 AC 130 ms
57,120 KB
testcase_13 AC 130 ms
57,412 KB
testcase_14 AC 128 ms
57,596 KB
testcase_15 AC 128 ms
57,412 KB
testcase_16 AC 128 ms
57,232 KB
testcase_17 AC 128 ms
57,332 KB
testcase_18 AC 130 ms
57,156 KB
testcase_19 AC 131 ms
57,288 KB
testcase_20 AC 130 ms
57,288 KB
testcase_21 AC 128 ms
57,360 KB
testcase_22 AC 131 ms
57,400 KB
testcase_23 AC 133 ms
57,660 KB
testcase_24 AC 131 ms
57,240 KB
testcase_25 AC 133 ms
57,544 KB
testcase_26 RE -
testcase_27 RE -
testcase_28 AC 130 ms
55,536 KB
testcase_29 AC 131 ms
57,468 KB
testcase_30 AC 127 ms
57,364 KB
testcase_31 AC 130 ms
57,524 KB
testcase_32 AC 120 ms
56,144 KB
testcase_33 AC 130 ms
57,500 KB
testcase_34 AC 129 ms
57,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		new Main().run();
	}

	long MODULO = 1_000_000_000 + 7;

	void run() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if (n % 4 != 3) {
			System.out.println("O");
		}else{
			System.out.println("X");
		}
	}

	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}

}
0