結果
| 問題 |
No.638 Sum of "not power of 2"
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2024-05-27 15:56:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 1,000 ms |
| コード長 | 201 bytes |
| コンパイル時間 | 175 ms |
| コンパイル使用メモリ | 81,760 KB |
| 実行使用メモリ | 53,852 KB |
| 最終ジャッジ日時 | 2024-12-20 20:32:55 |
| 合計ジャッジ時間 | 1,420 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
N = int(input())
x = 1
S = {x}
while x << 1 < N:
x <<= 1
S.add(x)
for i in range(1,N):
if i in S:
continue
if N - i in S:
continue
print(i,N-i)
exit()
print(-1)
ntuda