結果
| 問題 |
No.2533 A⇒B問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-10 22:33:55 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 472 bytes |
| コンパイル時間 | 2,677 ms |
| コンパイル使用メモリ | 242,476 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-26 01:55:12 |
| 合計ジャッジ時間 | 3,502 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
#define int long long
void solve(){
int a, b; cin >> a >> b;
for (int i = 0; i < 31; i++) {
if ((a >> i) & 1) {
if (!((b >> i) & 1)) {
cout << "No\n";
return;
}
}
}
cout << "Yes\n";
}
signed main(){
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int T = 1;
// cin >> T;
while(T--) solve();
return 0;
}