結果
| 問題 | No.638 Sum of "not power of 2" |
| コンテスト | |
| ユーザー |
syunsuke
|
| 提出日時 | 2018-08-27 22:32:14 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 94 ms / 1,000 ms |
| + 238µs | |
| コード長 | 253 bytes |
| 記録 | |
| コンパイル時間 | 363 ms |
| コンパイル使用メモリ | 21,536 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-08-08 08:36:20 |
| 合計ジャッジ時間 | 2,871 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
N=int(input())
list2=[]
for i in range(60):
list2.append(2**i)
for j in range(1,1000):
if j==N:
print(-1)
exit()
elif j in list2:
pass
elif N-j in list2:
pass
else:
print(j,N-j)
exit()
syunsuke