結果

問題 No.638 Sum of "not power of 2"
ユーザー Dexctersu
提出日時 2018-01-31 17:27:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-12-30 02:57:57
合計ジャッジ時間 1,239 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 3 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=2
b=n-2
l=[]
for i in range(100):
    l.append(2**i)
c=n//2
check=False
while a<=c:
    a+=1
    b+=1
    if a not in l and b not in l:
        check=True
        break
if check:
    print(a,b)
else:
    print("-1")
0