Submission #946761

#TimeUsernameProblemLanguageResultExecution timeMemory
946761irmuunWall (IOI14_wall)C++17
8 / 100
3050 ms18256 KiB
#include<bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define ff first #define ss second #define all(s) s.begin(),s.end() #define rall(s) s.rbegin(),s.rend() void buildWall(int n, int k, int op[], int l[], int r[], int h[], int H[]){ for(int i=0;i<k;i++){ for(int j=l[i];j<=r[i];j++){ if(op[i]==1){ H[j]=max(H[j],h[i]); } else{ H[j]=min(H[j],h[i]); } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...