# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
289082 | phillip | Rectangles (IOI19_rect) | C++14 | 77 ms | 768 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 "rect.h"
#include <bits/stdc++.h>
#define ll long long
#define fast cin.tie(0);cout.tie(0);
#define order ios::sync_with_stdio(0);ios_base::sync_with_stdio(0);
#define pb push_back
using namespace std;
int n,m,a[2509][2509];
ll k[2509][2509],mn[2509][2509];
ll ans;
void chl(int x)
{
multiset<int>s;
for(int i=0;i<m;i++)
{
////<<i;
auto it=s.lower_bound(a[x][i]+1);
k[x][i]=0;
if(it==s.end())
{
s.clear();
mn[x][i]=0;
s.insert(a[x][i]);
continue;
}
for(it;it!=s.end();it++)k[x][i]++;
if(s.find(a[x][i])!=s.end())s.erase(a[x][i]);
s.insert(a[x][i]);
it=s.begin();
Compilation message (stderr)
# | 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... |