結果
| 問題 | No.1298 OR XOR | 
| コンテスト | |
| ユーザー |  toyuzuko | 
| 提出日時 | 2020-12-06 00:40:17 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 41 ms / 2,000 ms | 
| コード長 | 264 bytes | 
| コンパイル時間 | 328 ms | 
| コンパイル使用メモリ | 82,432 KB | 
| 実行使用メモリ | 52,224 KB | 
| 最終ジャッジ日時 | 2024-09-16 07:07:48 | 
| 合計ジャッジ時間 | 2,078 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 13 | 
ソースコード
N = int(input())
A = B = C = 0
for i in range(31):
    if (N >> i) & 1:
        if A:
            B += 1 << i
            C += 1 << i
        else:
            A += 1 << i
            B += 1 << i
if A and B and C:
    print(A, B, C)
else:
    print(-1, -1, -1)
            
            
            
        