結果
| 問題 |
No.638 Sum of "not power of 2"
|
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-01-03 21:56:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 1,000 ms |
| コード長 | 232 bytes |
| コンパイル時間 | 261 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 58,496 KB |
| 最終ジャッジ日時 | 2024-11-27 02:25:05 |
| 合計ジャッジ時間 | 1,416 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
N = int(input())
two = 1
S = set()
for i in range(65):
S.add(two)
two *= 2
for i in range(1, 10000):
if i in S:
continue
if N - i not in S and N - i >= 1:
print(i, N - i)
exit()
print(-1)
rlangevin