結果

問題 No.638 Sum of "not power of 2"
ユーザー asaka189asaka189
提出日時 2018-01-31 15:34:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 7,868 KB
最終ジャッジ日時 2023-08-28 18:22:36
合計ジャッジ時間 945 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,744 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 13 ms
7,832 KB
testcase_04 AC 14 ms
7,804 KB
testcase_05 AC 14 ms
7,800 KB
testcase_06 AC 13 ms
7,800 KB
testcase_07 AC 14 ms
7,804 KB
testcase_08 AC 14 ms
7,752 KB
testcase_09 AC 14 ms
7,800 KB
testcase_10 AC 14 ms
7,804 KB
testcase_11 AC 14 ms
7,744 KB
testcase_12 AC 14 ms
7,868 KB
testcase_13 AC 14 ms
7,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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