Submission #1003146

#TimeUsernameProblemLanguageResultExecution timeMemory
1003146vjudge1Rice Hub (IOI11_ricehub)C++17
0 / 100
3 ms604 KiB
#include<bits/stdc++.h> #include "ricehub.h" #define ll long long #define ld long double #define vl vector<ll> #define vi vector<int> #define pii pair<int, int> #define pll pair<ll, ll> #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() #define f first #define s second #define pb push_back #define p_b pop_back using namespace std; int besthub(int R, int L, int X[], long long B) { int res = 0; for(int i = 0; i < R; i++) { int g = 0; for(int j = i; j < R; j++) { g += (X[j] - X[i]); if(g > B) break; res = max(res, j - i + 1); } } return res; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...