結果

問題 No.524 コインゲーム
ユーザー 37zigen37zigen
提出日時 2017-06-05 21:50:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 398 bytes
コンパイル時間 2,333 ms
コンパイル使用メモリ 75,188 KB
実行使用メモリ 54,456 KB
最終ジャッジ日時 2024-04-10 08:47:57
合計ジャッジ時間 6,983 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
53,244 KB
testcase_01 AC 125 ms
53,936 KB
testcase_02 AC 123 ms
54,032 KB
testcase_03 AC 110 ms
52,760 KB
testcase_04 AC 113 ms
54,192 KB
testcase_05 AC 111 ms
53,088 KB
testcase_06 AC 117 ms
54,268 KB
testcase_07 AC 113 ms
53,900 KB
testcase_08 AC 117 ms
53,980 KB
testcase_09 AC 115 ms
54,032 KB
testcase_10 AC 108 ms
52,704 KB
testcase_11 AC 122 ms
53,920 KB
testcase_12 AC 118 ms
54,156 KB
testcase_13 AC 118 ms
54,076 KB
testcase_14 AC 109 ms
53,404 KB
testcase_15 AC 116 ms
54,128 KB
testcase_16 AC 117 ms
53,928 KB
testcase_17 AC 102 ms
53,008 KB
testcase_18 AC 100 ms
52,752 KB
testcase_19 AC 99 ms
52,504 KB
testcase_20 AC 115 ms
54,252 KB
testcase_21 AC 115 ms
54,032 KB
testcase_22 AC 113 ms
54,040 KB
testcase_23 AC 106 ms
52,944 KB
testcase_24 AC 103 ms
52,892 KB
testcase_25 AC 105 ms
53,112 KB
testcase_26 AC 117 ms
54,192 KB
testcase_27 AC 122 ms
54,188 KB
testcase_28 AC 105 ms
53,020 KB
testcase_29 AC 116 ms
53,968 KB
testcase_30 AC 115 ms
54,124 KB
testcase_31 AC 102 ms
52,884 KB
testcase_32 AC 115 ms
54,188 KB
testcase_33 AC 114 ms
54,456 KB
testcase_34 AC 114 ms
54,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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


	void run() {
		Scanner sc = new Scanner(System.in);
		long n = sc.nextLong();
		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