結果
| 問題 |
No.3046 White Tiger vs Monster
|
| ユーザー |
|
| 提出日時 | 2025-03-21 00:12:41 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 361 bytes |
| コンパイル時間 | 2,112 ms |
| コンパイル使用メモリ | 199,224 KB |
| 実行使用メモリ | 7,324 KB |
| 最終ジャッジ日時 | 2025-03-22 22:30:27 |
| 合計ジャッジ時間 | 10,797 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 68 WA * 12 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
ll n,b;
cin >> n >> b;
vector<ll> a(n);
for(int i = 0; i < n; i++){
cin >> a[i];
}
sort(a.begin(),a.end());
int ans = 0;
for(int i = 0; i < n; i++){
if(b >= a[i]){
b ^= a[i];
ans++;
}
else{
break;
}
}
cout << ans << endl;
}