# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
918842 | SalihSahin | 구경하기 (JOI13_watching) | C++14 | 164 ms | 8072 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define int long long
using namespace std;
const int mod = 1e9 + 7;
const int inf = 1e9;
const int N = 2e3 + 5;
int32_t main(){
cin.tie(0); cout.tie(0);
ios_base::sync_with_stdio(false);
int n, p, q;
cin>>n>>p>>q;
p = min(p, n);
q = min(q, n);
vector<int> a(n);
for(int i = 0; i < n; i++){
cin>>a[i];
}
sort(a.begin(), a.end());
if(p + q >= n){
cout<<1<<endl;
return 0;
}
vector<int> sm(N), bg(N);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |