# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1271383 | f4dl4n_af | Vudu (COCI15_vudu) | C++20 | 296 ms | 4320 KiB |
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
int p;
cin >> n;
vector<int> a(n);
for(int i = 0; i < n; i++){
cin >> a[i];
}
cin >> p;
int sum = 0;
for(int i = 0; i < n; i++){
int tot = 0;
for(int j = i; j < n; j++){
tot += a[j] / j+1;
if(tot >= p) sum++;
}
}
cout << sum << endl;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |