結果

問題 No.638 Sum of "not power of 2"
ユーザー tamatotamato
提出日時 2020-06-03 19:51:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 350 bytes
コンパイル時間 346 ms
コンパイル使用メモリ 87,736 KB
実行使用メモリ 71,972 KB
最終ジャッジ日時 2023-08-16 19:22:42
合計ジャッジ時間 2,017 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,588 KB
testcase_01 AC 62 ms
71,636 KB
testcase_02 AC 62 ms
71,772 KB
testcase_03 AC 61 ms
71,652 KB
testcase_04 AC 63 ms
71,792 KB
testcase_05 AC 66 ms
71,720 KB
testcase_06 AC 65 ms
71,704 KB
testcase_07 AC 63 ms
71,632 KB
testcase_08 AC 62 ms
71,688 KB
testcase_09 WA -
testcase_10 AC 61 ms
71,852 KB
testcase_11 AC 64 ms
71,792 KB
testcase_12 AC 62 ms
71,536 KB
testcase_13 AC 62 ms
71,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    N = int(input())
    A = set()
    for i in range(31):
        A.add(1<<i)

    for a in range(1, N):
        b = N - a
        if a not in A and b not in A:
            print(a, b)
            exit()
    print(-1)


if __name__ == '__main__':
    main()
0