| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 875826 | BbtT | Vudu (COCI15_vudu) | C++17 | 1064 ms | 17704 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
long long int N,P,a[1000001];
int main(){
long long int C=0;
cin>>N;
for(int i=1;i<=N;i++){
int temp;
scanf("%d",&temp);
a[i]=a[i-1]+temp;
}
cin>>P;
for(int i=1;i<=N;i++){
for(int j=i;j<=N;j++){
if(a[j]-a[i-1]>=P*(j-i+1))C++;
}
}cout<<C<<endl;
return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
