結果
| 問題 |
No.1380 Borderline
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-28 15:43:42 |
| 言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 291 bytes |
| コンパイル時間 | 988 ms |
| コンパイル使用メモリ | 131,012 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-02 18:15:19 |
| 合計ジャッジ時間 | 2,327 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | WA * 41 |
ソースコード
#include <stdio.h>
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int N, K; cin >> N >> K;
vector<int> p(N);
for (int i = 0; i < N; i++) {
cin >> p[i];
}
sort(p.begin(), p.end());
cout << p[N - K] << endl;
return 0;
}