結果
問題 |
No.2334 Distinct Cards
|
ユーザー |
|
提出日時 | 2023-06-05 22:38:45 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 1,760 ms |
コンパイル使用メモリ | 196,540 KB |
最終ジャッジ日時 | 2025-02-13 23:00:49 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 WA * 18 |
ソースコード
#include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n,k; cin >> n >> k; vector<int> a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } sort(a.begin(),a.end()); cout << a[k - 1] << "\n"; }