結果

問題 No.581 XOR
ユーザー Gurren47881Gurren47881
提出日時 2017-10-27 22:31:31
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 377 bytes
コンパイル時間 491 ms
コンパイル使用メモリ 68,000 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-05-01 16:28:19
合計ジャッジ時間 8,533 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 1,509 ms
5,376 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<utility>
#define REP(i,n) for(int i = 0;i < (n);i++)
#define pb push_back
using namespace std;
const int INF = 1e9;
typedef long long ll;

int main(){
  int a,c;
  cin >> a >> c;
  int b = 0;
  while(1){
    if((a^b) == c){
      cout << b << endl;
      break;
    }
    b++;
  }
  return 0;
}
0