Submission #908824

#TimeUsernameProblemLanguageResultExecution timeMemory
908824androWatering can (POI13_kon)C++14
70 / 100
4054 ms9872 KiB
#include <bits/stdc++.h> #include "koninc.h" int N, K, t[300005]; void inicjuj(int n, int k, int *D) { N = n, K = k; for (int i = 0; i < n; ++i) t[i] = D[i]; } void podlej(int a, int b) { for(int i = a; i <= b; i++) { t[i] += 1; } } int dojrzale(int a, int b) { int ans = 0; for(int i = a; i <= b; i++) { if(t[i] >= K) { ans += 1; } } return ans; }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...