# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
365813 | soba | Table Tennis (info1cup20_tabletennis) | C++14 | 3060 ms | 2780 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
bool solve(vector<ll>v)
{
int l = 0 , r=v.size()-1;
if(v[l]==-1)
l++;
if(v[r]==-1)
r--;
ll newmid, mid=(v[l]+v[r])/2;
l++;
r--;
while(l<r)
{
if(v[l]==-1)
l++;
if(v[r]==-1)
r--;
newmid=(v[l]+v[r])>>1;
l++;
r--;
if(mid!=newmid)
return false;
}
return true;
}
int main()
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |