結果

問題 No.638 Sum of "not power of 2"
ユーザー pluto77pluto77
提出日時 2018-01-28 09:00:31
言語 Python2
(2.7.18)
結果
AC  
実行時間 10 ms / 1,000 ms
コード長 166 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 6,680 KB
実行使用メモリ 6,104 KB
最終ジャッジ日時 2023-08-28 18:21:21
合計ジャッジ時間 1,278 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
5,848 KB
testcase_01 AC 10 ms
5,984 KB
testcase_02 AC 10 ms
5,852 KB
testcase_03 AC 10 ms
6,080 KB
testcase_04 AC 10 ms
6,036 KB
testcase_05 AC 10 ms
5,852 KB
testcase_06 AC 10 ms
5,928 KB
testcase_07 AC 10 ms
5,844 KB
testcase_08 AC 10 ms
6,084 KB
testcase_09 AC 10 ms
5,848 KB
testcase_10 AC 10 ms
5,936 KB
testcase_11 AC 10 ms
6,104 KB
testcase_12 AC 10 ms
5,868 KB
testcase_13 AC 10 ms
5,888 KB
権限があれば一括ダウンロードができます

ソースコード

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