結果

問題 No.638 Sum of "not power of 2"
ユーザー KoshStorm
提出日時 2018-01-26 22:53:41
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 249 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-12-30 02:21:53
合計ジャッジ時間 1,203 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 4 WA * 3 RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
two_pow = [1]
bit = 1
while bit < N:
	bit <<= 1
	two_pow.append(bit)

if N % 2 == 1:
	if N < 9:
		print(-1)
	else:
		print(str(min(6,N-6)) + " " + str(max(6,N-6)))
else:
	print(str(min(3,N-3))) + " " + str(max(3,N-3))


0