結果
問題 | No.2533 A⇒B問題 |
ユーザー |
|
提出日時 | 2024-11-03 21:50:06 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,228 bytes |
コンパイル時間 | 5,098 ms |
コンパイル使用メモリ | 309,760 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-03 21:50:13 |
合計ジャッジ時間 | 6,334 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
#include<bits/stdc++.h>#include <atcoder/all>using namespace std;using namespace atcoder;using vst = vector<string>;using ll = long long;using ld = long double;using pll = pair<ll,ll>;using vll = vector<ll>;using vvll = vector<vll>;#define rep(i, n) for (ll i = 0; i < n; i++)#define repp(i,k,n) for (ll i = k; i < n; i++)#define per(i,s,e) for(ll i = s; i >= e; i--)#define all(v) v.begin(),v.end()#define no() {cout << "No" << endl; return 0;}#define yes() {cout << "Yes" << endl;return 0;}#define CHECK(a) a ? cout << "Yes" << endl : cout << "No" << endl#define UNOmap unordered_map#define UNOset unordered_set#define ASC(T) T,vector<T>,greater<T>template<class... T>void in(T&... a){(cin >> ... >> a);}template<class T, class... Ts>void out(const T& a, const Ts&... b){cout << a;((cout << ' ' << b), ...);cout << '\n';}void vin(vll &v){for(ll i = 0; i < (ll)v.size(); i++)in(v[i]);}void vout(vll &v){for(ll i = 0; i < (ll)v.size(); i++) cout << v[i] << ' ';}ll INF = 1LL << 62;ll MODD = 998244353;ll MOD = 1000000007;//----------------------------------------------int main(){ll a,b;in(a,b);bitset<32> x(a),y(b);rep(i,32){if(x[i] == 1){if(y[i] == 0) no()}}yes()}