結果

問題 No.3059 tan
ユーザー RuteRute
提出日時 2020-04-01 22:07:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 434 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 7,948 KB
最終ジャッジ日時 2023-09-09 18:24:25
合計ジャッジ時間 682 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

def divide_2(n):
    if n == 0:
        return 
    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:
        if x == 60:
            print("Y")
        else:
            print("N")
0