Submission #291135

#TimeUsernameProblemLanguageResultExecution timeMemory
291135ivan24Wall (IOI14_wall)C++14
8 / 100
3069 ms11128 KiB
#include "wall.h" #include <bits/stdc++.h> using namespace std; using ll = int; typedef vector<ll> vi; typedef vector<vi> vvi; typedef pair<ll,ll> ii; typedef vector<ii> vii; typedef vector<vii> vvii; #define F first #define S second const ll INF = 1e9; void buildWall(int n, int k, int op[], int left[], int right[], int height[], int finalHeight[]){ for (ll i = 0; k > i; i++){ for (ll j = left[i]; right[i] >= j; j++){ if (op[i] == 1){ finalHeight[j] = max(height[i],finalHeight[j]); }else{ finalHeight[j] = min(height[i],finalHeight[j]); } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...