結果
| 問題 | 
                            No.1298 OR XOR
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ate
                         | 
                    
| 提出日時 | 2020-12-10 08:30:11 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 218 bytes | 
| コンパイル時間 | 776 ms | 
| コンパイル使用メモリ | 66,432 KB | 
| 最終ジャッジ日時 | 2025-01-16 21:14:40 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 1 | 
| other | WA * 13 | 
ソースコード
#include<iostream>
int main(){
    int64_t n;
    std::cin>>n;
    int64_t a=n,b=n,c=0;
    for(int i=0;i<=30;++i)if((n>>i)&1){
        b -= 1<<i;
        c |= 1<<i;
    }
    std::cout<<a<<" "<<b<<" "<<c<<std::endl;
}
            
            
            
        
            
ate