結果
| 問題 | No.638 Sum of "not power of 2" |
| コンテスト | |
| ユーザー |
wajima_wataru
|
| 提出日時 | 2018-03-03 15:50:02 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
AC
|
| 実行時間 | 100 ms / 1,000 ms |
| コード長 | 211 bytes |
| 記録 | |
| コンパイル時間 | 633 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-10 20:38:27 |
| 合計ジャッジ時間 | 2,942 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
pows = [2 ** i for i in range(61)]
N = int(input())
ans = None
for i in range(1, N):
if i not in pows and N - i not in pows:
ans = str(i) + ' ' + str(N - i)
break
print(ans if ans else '-1')
wajima_wataru