結果
| 問題 | No.2533 A⇒B問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-11 10:09:59 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 397 bytes |
| 記録 | |
| コンパイル時間 | 1,238 ms |
| コンパイル使用メモリ | 209,788 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-03 00:09:35 |
| 合計ジャッジ時間 | 2,281 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
using namespace std;
int main() {
cin.tie(0); cout.tie(0);
ios::sync_with_stdio(false);
int A, B;
cin >> A >> B;
bool fn = true;
for(int i = 0; i < 30; i++) {
if(A >> i & 1) {
if(!(B >> i & 1)) {
fn = false;
}
}
}
cout << (fn ? "Yes\n" : "No\n");
return 0;
}