結果
問題 |
No.3149 find X which satisfies with equlation
|
ユーザー |
|
提出日時 | 2025-06-15 02:14:58 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 368 bytes |
コンパイル時間 | 3,255 ms |
コンパイル使用メモリ | 275,700 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-15 02:15:03 |
合計ジャッジ時間 | 4,703 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 44 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll =long long; #include<atcoder/modint> using namespace atcoder; using mint=modint998244353; void solve(){ ll A,B; cin>>A>>B; ll an=0; for(ll x=0;x<=1000;x++)if((A^x)==B)an=x; cout<<an<<endl; } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int T=1; // cin>>T; while(T--)solve(); }