結果
| 問題 | No.1298 OR XOR | 
| コンテスト | |
| ユーザー |  burita083 | 
| 提出日時 | 2022-05-15 01:26:29 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 30 ms / 2,000 ms | 
| コード長 | 187 bytes | 
| コンパイル時間 | 263 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-07-23 12:55:03 | 
| 合計ジャッジ時間 | 1,360 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 13 | 
ソースコード
N = int(input())
ans = 0
l = []
for i in range(31):
  mask = 1 << i
  if N & mask:
    ans += 1
    l.append(mask)
if len(l) == 1:
  print(-1, -1, -1)
else:
  print(l[0], sum(l[1:]), N)
            
            
            
        