結果
問題 |
No.2977 Kth Xor Pair
|
ユーザー |
|
提出日時 | 2024-11-19 21:10:13 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 329 bytes |
コンパイル時間 | 3,388 ms |
コンパイル使用メモリ | 250,916 KB |
実行使用メモリ | 815,056 KB |
最終ジャッジ日時 | 2024-11-30 23:30:56 |
合計ジャッジ時間 | 49,048 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 MLE * 29 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ int N; long long K; cin>>N>>K; vector<int> A(N);for(auto&&e:A)cin>>e; vector<int> B; for(int i=0;i<N;i++){ for(int j=i+1;j<N;j++){ B.push_back(A[i]^A[j]); } } sort(B.begin(),B.end()); cout<<B[K-1]<<endl; }