結果
| 問題 | No.581 XOR | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-01-12 14:53:56 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 235 bytes | 
| コンパイル時間 | 691 ms | 
| コンパイル使用メモリ | 58,612 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2025-01-12 14:54:34 | 
| 合計ジャッジ時間 | 1,323 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 8 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:10:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |     scanf("%lld%lld",&a,&c);
      |     ~~~~~^~~~~~~~~~~~~~~~~~
            
            ソースコード
#include<iostream>
#define rep(i,n) for(i=0;i<(int)(n);i++)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
ll a,c;
int main(){
    scanf("%lld%lld",&a,&c);
    printf("%lld\n",(a&c)^(a|c));
    return 0;
}
            
            
            
        