# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
241049 | computerbox | 구경하기 (JOI13_watching) | C++14 | 362 ms | 32120 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define FLASH ios_base::sync_with_stdio(0);
#define ll long long
#define debt(x,y)cout<<"#x = "<<(x)<<" and "<<"#y = "<<(y)<<endl;
#define deb(x)cout<<"#x = "<<(x)<<endl;
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define endl "\n"
#define arr(a,n) for(ll i=1;i<=n;i++) cout<<a[i]<<" "; cout << "\n";
#define vecc(a,n) for(ll i=0;i<n;i++) cout<<a[i]<<" "; cout << "\n";
using namespace std;
ll dp[2010][2010];
vector<ll>massiv;
ll n,p,q;
ll f(ll w)
{
memset(dp,0,sizeof(dp));
ll pointbig=0;
ll pointsmall=0;
for(ll i=0;i<n;i++)
{
while(pointsmall<n && massiv[i]-massiv[pointsmall]>=w)pointsmall++;
while(pointbig<n && massiv[i]-massiv[pointbig]>=2*w)pointbig++;
for(ll j=0;j<=min(q,n);j++)
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |