結果
| 問題 |
No.2533 A⇒B問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-11 12:49:35 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 978 bytes |
| コンパイル時間 | 1,882 ms |
| コンパイル使用メモリ | 190,956 KB |
| 最終ジャッジ日時 | 2025-02-17 21:33:07 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
// Problem: No.2533 A⇒B問題
// Contest: yukicoder
// URL: https://yukicoder.me/problems/no/2533
// Memory Limit: 512 MB
// Time Limit: 2000 ms
/*
lengli_QAQ
Hope there are no bugs!!!
*/
#include <bits/stdc++.h>
#define fastio ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define endl '\n'
#define all(x) x.begin(),x.end()
#define pb push_back
using namespace std;
//--------------------------------
template<typename T> void printvt(vector<T> &a){
for(auto x:a) cout<<x<<" ";cout<<endl;
};
template<typename T> void printay(T a[],int l,int r){
for(int i=l;i<=r;i++) cout<<a[i]<<" ";cout<<endl;
};
//--------------------------------
typedef pair<int,int> PII;
typedef long long LL;
const int N=100010;
void solve(){
int a,b;
cin>>a>>b;
bool flag=1;
for(int i=31;i>=0;i--){
if(a>>i&1){
if(b>>i&1);
else flag=0;
}
}
cout<<(flag ? "Yes" : "No")<<endl;
}
signed main(){
fastio;
int T;
T=1;
while(T--) solve();
return 0;
}