結果

問題 No.638 Sum of "not power of 2"
ユーザー _matumo_
提出日時 2021-01-11 14:27:07
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 1,000 ms
コード長 138 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-11-21 09:06:31
合計ジャッジ時間 1,313 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
p=[2**n for n in range(62)]
if N==6:n=1
elif N<8:n=0
elif N-3 not in p:n=2
else:n=3
print(*[[-1],[3,3],[3,N-3],[5,N-5]][n])
0