Submission #908821

#TimeUsernameProblemLanguageResultExecution timeMemory
908821androWatering can (POI13_kon)C++14
0 / 100
27 ms5796 KiB
int N, K, t[2005]; 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; } } }

Compilation message (stderr)

kon.cpp: In function 'int dojrzale(int, int)':
kon.cpp:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
   25 | }
      | ^
#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...