Submission #499939

# Submission time Handle Problem Language Result Execution time Memory
499939 2021-12-30T05:41:46 Z ac2hu Watching (JOI13_watching) C++14
0 / 100
1 ms 332 KB
#include<bits/stdc++.h>
using namespace std;
const int maxn = 2000;
int n,p,q;
int a[maxn];
int dp[maxn][maxn];
bool check(int w){
	return false;
}
void solve(){
	cin >> n >> p >> q;
	if(p > n || q > n){
		cout << 1 << "\n";
		return;
	}
	for(int i = 0;i<n;i++)cin >> a[i];
	sort(a,a + n);
	int l = 1,r = 1e9;
	while(l < r){
		int w = (l + r - 1)/2;
		if(check(w)){
			r = w;	
		}
		else 
			l = w + 1;
	}
	cout << l << "\n";
}
signed main(){
	iostream::sync_with_stdio(false);
	cin.tie(nullptr);cout.tie(nullptr);
	int T = 1;
	// cin >> T;
	while(T--){
		solve();
	}
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 324 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 332 KB Output isn't correct
2 Halted 0 ms 0 KB -