結果
| 問題 | No.1298 OR XOR | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-11-04 13:48:08 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 38 ms / 2,000 ms | 
| コード長 | 236 bytes | 
| コンパイル時間 | 460 ms | 
| コンパイル使用メモリ | 82,360 KB | 
| 実行使用メモリ | 53,496 KB | 
| 最終ジャッジ日時 | 2024-11-04 13:48:11 | 
| 合計ジャッジ時間 | 2,022 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 13 | 
ソースコード
N = int(input())
a, b, c = 0, 0, 0
for k in range(32):
    if N & (1 << k):
        if a == 0:
            a += 1 << k
        else:
            b += 1 << k
        c += 1 << k
if b == 0:
    print(-1, -1, -1)
else:
    print(a, b, c)
            
            
            
        