結果
| 問題 | No.638 Sum of "not power of 2" |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-08 22:33:25 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 156 ms / 1,000 ms |
| コード長 | 205 bytes |
| 記録 | |
| コンパイル時間 | 522 ms |
| コンパイル使用メモリ | 20,832 KB |
| 実行使用メモリ | 15,356 KB |
| 最終ジャッジ日時 | 2026-04-07 14:37:56 |
| 合計ジャッジ時間 | 6,179 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
seen = set()
for i in range(61):
seen.add(pow(2, i))
n = int(input())
for a in range(1, n // 2 + 1):
b = n - a
if a in seen or b in seen:
continue
print(a, b)
exit()
print(-1)