Submission #977228

# Submission time Handle Problem Language Result Execution time Memory
977228 2024-05-07T14:28:23 Z vjudge1 Watching (JOI13_watching) C++17
0 / 100
1 ms 432 KB
#include<bits/stdc++.h>
using namespace std;

#define ll long long
int n,p,q;
vector<ll>a;

int main(){
	cin>>n>>p>>q;
	for(int i=0;i<n;i++){
		int c;
		cin>>c;
		a.push_back(c);
	} 
	sort(a.begin(),a.end());
	int sze=a.size();
	ll ans= (a[sze-1]-a[0]+1)/(2*q+p);
	cout<<ans<<endl;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 432 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -