Submission #657776

# Submission time Handle Problem Language Result Execution time Memory
657776 2022-11-11T04:14:11 Z coding_snorlax Radio Towers (IOI22_towers) C++17
0 / 100
12 ms 1692 KB
#include "towers.h"
#include<bits/stdc++.h>
using namespace std;
int Max_place=0;
int Now;
vector<int> S;
void init(int N,vector<int> H){
    Now=H[0];
    for(int i=1;i<N;i++){
        if(H[i]>H[i-1]){
            Max_place++;
            Now=H[i];
        }
    }
    for(int i=0;i<N;i++){
        S.push_back(H[i]);
    }
}
int max_towers(int L,int R,int D){
    cout<<Now<<" ";
    if(L<Max_place && Max_place<R){
        if(S[L]+D<Now && S[R]+D<Now) return 1;
    }
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 12 ms 1040 KB Possible tampering with the output or unexpected termination of the program
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Possible tampering with the output or unexpected termination of the program
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Possible tampering with the output or unexpected termination of the program
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 12 ms 1692 KB Possible tampering with the output or unexpected termination of the program
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 676 KB Possible tampering with the output or unexpected termination of the program
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Possible tampering with the output or unexpected termination of the program
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 12 ms 1040 KB Possible tampering with the output or unexpected termination of the program
2 Halted 0 ms 0 KB -