結果

問題 No.524 コインゲーム
ユーザー uafr_csuafr_cs
提出日時 2017-06-02 23:14:36
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 476 bytes
コンパイル時間 3,106 ms
コンパイル使用メモリ 75,628 KB
実行使用メモリ 57,640 KB
最終ジャッジ日時 2023-10-22 01:37:08
合計ジャッジ時間 9,162 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 132 ms
57,364 KB
testcase_02 AC 131 ms
57,312 KB
testcase_03 WA -
testcase_04 AC 136 ms
57,088 KB
testcase_05 AC 132 ms
57,104 KB
testcase_06 AC 133 ms
57,380 KB
testcase_07 AC 135 ms
57,364 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 130 ms
57,124 KB
testcase_12 AC 132 ms
57,396 KB
testcase_13 AC 131 ms
57,628 KB
testcase_14 AC 129 ms
57,092 KB
testcase_15 AC 132 ms
57,360 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 136 ms
57,404 KB
testcase_19 AC 137 ms
57,376 KB
testcase_20 WA -
testcase_21 AC 136 ms
57,480 KB
testcase_22 AC 133 ms
57,376 KB
testcase_23 WA -
testcase_24 AC 133 ms
57,440 KB
testcase_25 AC 130 ms
57,380 KB
testcase_26 AC 131 ms
57,440 KB
testcase_27 WA -
testcase_28 AC 132 ms
57,096 KB
testcase_29 AC 135 ms
57,364 KB
testcase_30 AC 133 ms
57,408 KB
testcase_31 AC 133 ms
57,436 KB
testcase_32 AC 132 ms
57,492 KB
testcase_33 AC 130 ms
57,140 KB
testcase_34 AC 133 ms
57,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Scanner;

public class Main {
	
	public static long MOD = 1000000007;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final long N = sc.nextLong();
		
		System.out.println(Long.toBinaryString(N).contains("0") ? "O" : "X");
	}
}
0