# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
884044 | vjudge1 | Telefoni (COCI17_telefoni) | C++14 | 12 ms | 3284 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>
#define ll long long
#define S second
#define F first
#define PB push_back
#define PF push_front
const int SIZE = 1e5;
using namespace std;
int main()
{
ios_base::sync_with_stdio(0);cout.tie(0);cin.tie(0);
int a,b;
cin >> a >> b;
vector<int>V;
for(int i = 0; i < a; i++){
int x;
cin >> x;
V.PB(x);
}
int cnt = 0;
for(int i = 0; i < a-1; i++){
if(V[i+1] == 0){
bool cmp = 0;
int x = 0;
for(int j = i+ b; j > i; j--){
if(V[j] == 1){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |