結果

問題 No.638 Sum of "not power of 2"
ユーザー pluto77
提出日時 2018-01-28 09:00:31
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 1,000 ms
コード長 166 bytes
コンパイル時間 746 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2024-12-30 02:54:23
合計ジャッジ時間 981 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki638
import sys

n=int(raw_input())
l=[2**i for i in xrange(61)]
for i in xrange(1,n/2+1):
 if i not in l and (n-i) not in l:
  print i,n-i
  sys.exit()
print -1
0