結果
| 問題 | No.1957 Xor Min |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-27 21:32:37 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 267 bytes |
| コンパイル時間 | 1,604 ms |
| コンパイル使用メモリ | 166,476 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-20 15:32:08 |
| 合計ジャッジ時間 | 4,756 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 TLE * 1 |
| other | -- * 25 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B; cin >> A >> B;
int mx = 0;
for (int x = 0; x < A; ++x) {
for (int y = 0; y < B; ++y) {
int mn = min(A, min(B, A ^ B));
if (mn > mx) mx = mn;
}
}
cout << mx << endl;
}