結果
| 問題 | No.1298 OR XOR | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-03-17 16:19:10 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 34 ms / 2,000 ms | 
| コード長 | 172 bytes | 
| コンパイル時間 | 366 ms | 
| コンパイル使用メモリ | 82,176 KB | 
| 実行使用メモリ | 51,968 KB | 
| 最終ジャッジ日時 | 2024-10-01 12:53:00 | 
| 合計ジャッジ時間 | 1,754 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 13 | 
ソースコード
n = int(input())
cnt = 0
for i in range(0, 31):
    if n >> i & 1:
        cnt += 1
if cnt <= 1:
    print('-1 -1 -1')
else:
    print(n, (n & -n), n - (n & -n), sep=' ')
            
            
            
        