Submission #636772

#TimeUsernameProblemLanguageResultExecution timeMemory
636772h_squaredWall (IOI14_wall)C++14
0 / 100
138 ms22176 KiB
#include<bits/stdc++.h> #include "wall.h" using namespace std; void buildWall(int n, int k, int t[], int l[], int r[], int h[], int a[]){ for(int i=0;i<n;i++)a[i]=0; for(int i=0;i<k;i++){ for(int j=l[i];j<=r[i];j++){ if(t[i]==1){ a[i]=max(a[i],h[i]); }else{ a[i]=min(a[i],h[i]); } } }return; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...