# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
87386 | MohamedAhmed0 | Vudu (COCI15_vudu) | C++14 | 1078 ms | 64812 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n ;
cin>>n ;
long long arr[n] ;
for(int i = 0 ; i < n ; ++i)
cin>>arr[i] ;
long long p ;
cin>>p ;
long long ans = 0 ;
for(int i = 0 ; i < n ; ++i)
{
long long sum = 0 ;
for(int j = i ; j < n ; ++j)
{
sum += arr[j] ;
ans += (sum / (j-i+1) >= p) ;
}
}
return cout<<ans , 0 ;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |