結果

問題 No.638 Sum of "not power of 2"
ユーザー 310icecrystal310icecrystal
提出日時 2023-07-06 07:27:32
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 645 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 71,596 KB
最終ジャッジ日時 2023-09-27 08:25:53
合計ジャッジ時間 2,451 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,596 KB
testcase_01 AC 62 ms
71,168 KB
testcase_02 AC 61 ms
71,312 KB
testcase_03 AC 61 ms
71,368 KB
testcase_04 AC 63 ms
71,320 KB
testcase_05 WA -
testcase_06 AC 63 ms
71,224 KB
testcase_07 AC 63 ms
71,452 KB
testcase_08 AC 64 ms
71,284 KB
testcase_09 AC 63 ms
71,356 KB
testcase_10 AC 62 ms
71,404 KB
testcase_11 AC 63 ms
71,516 KB
testcase_12 AC 63 ms
71,444 KB
testcase_13 AC 62 ms
71,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

pow2_set = set([2**i for i in range(70)])
if N <= 5:
    print(-1)
    exit()
for a in range(1,N):
    if not {a,N-a} & pow2_set:
        print(a,N-a)
        exit()
0