結果

問題 No.638 Sum of "not power of 2"
ユーザー NoaSaberNoaSaber
提出日時 2021-04-08 14:58:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 1,000 ms
コード長 179 bytes
コンパイル時間 440 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 71,640 KB
最終ジャッジ日時 2023-09-05 23:07:16
合計ジャッジ時間 2,526 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,388 KB
testcase_01 AC 71 ms
71,640 KB
testcase_02 AC 71 ms
71,420 KB
testcase_03 AC 75 ms
71,404 KB
testcase_04 AC 70 ms
71,420 KB
testcase_05 AC 68 ms
71,464 KB
testcase_06 AC 68 ms
71,460 KB
testcase_07 AC 71 ms
71,220 KB
testcase_08 AC 71 ms
71,404 KB
testcase_09 AC 70 ms
71,412 KB
testcase_10 AC 73 ms
71,200 KB
testcase_11 AC 70 ms
71,504 KB
testcase_12 AC 71 ms
71,272 KB
testcase_13 AC 69 ms
71,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
s=set([2**i for i in range(100)])
for i in range(1,N):
    a,b=i,N-i
    if a in s or b in s:
        continue
    else:
        print(a,b)
        exit()
print(-1)
0