結果
問題 |
No.2533 A⇒B問題
|
ユーザー |
![]() |
提出日時 | 2023-11-13 13:49:43 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 587 bytes |
コンパイル時間 | 3,486 ms |
コンパイル使用メモリ | 249,936 KB |
最終ジャッジ日時 | 2025-02-17 21:53:24 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
#include <bits/stdc++.h> #include<atcoder/all> using namespace atcoder; using namespace std; using ll=long long; using ld=long double; ld pie=3.141592653589793; ll mod=998244353; ll inf=30000000000000000;//10^17 int main(){ ll a,b; cin >> a >> b; vector<ll>two(40,1); for (ll i = 1; i <= 30; i++) { two[i]=two[i-1]*2; } for (ll i = 0; i <=30; i++) { if (two[i]&a) { if (!(two[i]&b)) { cout << "No" << endl; return 0; } } } cout << "Yes" << endl; }