結果

問題 No.524 コインゲーム
ユーザー uafr_csuafr_cs
提出日時 2017-06-02 23:19:19
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 488 bytes
コンパイル時間 3,374 ms
コンパイル使用メモリ 75,440 KB
実行使用メモリ 57,900 KB
最終ジャッジ日時 2023-10-22 01:39:15
合計ジャッジ時間 8,181 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
55,660 KB
testcase_01 AC 108 ms
56,904 KB
testcase_02 AC 118 ms
57,440 KB
testcase_03 WA -
testcase_04 AC 115 ms
57,440 KB
testcase_05 AC 113 ms
57,108 KB
testcase_06 AC 116 ms
57,164 KB
testcase_07 AC 113 ms
57,432 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 114 ms
57,316 KB
testcase_12 AC 102 ms
54,056 KB
testcase_13 AC 104 ms
56,172 KB
testcase_14 AC 113 ms
55,332 KB
testcase_15 AC 108 ms
56,984 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 111 ms
55,524 KB
testcase_19 AC 121 ms
57,148 KB
testcase_20 WA -
testcase_21 AC 110 ms
56,964 KB
testcase_22 AC 103 ms
56,176 KB
testcase_23 WA -
testcase_24 AC 114 ms
57,276 KB
testcase_25 AC 114 ms
57,372 KB
testcase_26 AC 116 ms
57,468 KB
testcase_27 WA -
testcase_28 AC 111 ms
57,140 KB
testcase_29 AC 115 ms
57,344 KB
testcase_30 AC 117 ms
57,380 KB
testcase_31 AC 109 ms
57,168 KB
testcase_32 AC 108 ms
57,108 KB
testcase_33 AC 115 ms
57,140 KB
testcase_34 AC 108 ms
56,152 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((N == 1 || Long.toBinaryString(N).contains("0")) ? "O" : "X");
	}
}
0