結果

問題 No.3059 tan
ユーザー RuteRute
提出日時 2020-04-01 21:52:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 374 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 7,936 KB
最終ジャッジ日時 2023-09-09 17:58:05
合計ジャッジ時間 634 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def divide_2(n):
    if n == 0:
        return 1
    else:
        if n == 1:
            return 0
        else:
            a = format(n,'b')
            if a.count("1") == 1:
                return 1
            else:
                return 0
T = int(input())
for i in range(T):
    x = int(input())
    if divide_2(x) == 1:
        print("Y")
    else:
        print("N")
0