Submission #289082

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
2890822020-09-02 10:31:47phillipRectangles (IOI19_rect)C++14
0 / 100
77 ms768 KiB
#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();
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

rect.cpp: In function 'void chl(int)':
rect.cpp:26:13: warning: statement has no effect [-Wunused-value]
   26 |         for(it;it!=s.end();it++)k[x][i]++;
      |             ^~
rect.cpp:31:13: warning: statement has no effect [-Wunused-value]
   31 |         for(it;it!=s.end();it++)
      |             ^~
rect.cpp:56:13: warning: statement has no effect [-Wunused-value]
   56 |         for(it;it!=s.end();it++)k[x][i]++;
      |             ^~
rect.cpp:60:13: warning: statement has no effect [-Wunused-value]
   60 |         for(it;it!=s.end();it++)
      |             ^~
rect.cpp: In function 'void chu(int)':
rect.cpp:88:13: warning: statement has no effect [-Wunused-value]
   88 |         for(it;it!=s.end();it++)k[i][y]++;
      |             ^~
rect.cpp:92:13: warning: statement has no effect [-Wunused-value]
   92 |         for(it;it!=s.end();it++)
      |             ^~
rect.cpp:116:13: warning: statement has no effect [-Wunused-value]
  116 |         for(it;it!=s.end();it++)k[i][y]++;
      |             ^~
rect.cpp:120:13: warning: statement has no effect [-Wunused-value]
  120 |         for(it;it!=s.end();it++)
      |             ^~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...