Submission #1036917

# Submission time Handle Problem Language Result Execution time Memory
1036917 2024-07-27T19:42:23 Z XJP12 Radio Towers (IOI22_towers) C++17
0 / 100
398 ms 1368 KB
#include <bits/stdc++.h>
#include "towers.h"
using namespace std;
typedef long long ll;
typedef vector<int> vi;
vi heights;
void init(int n, vi h) {
	heights=h;
}

int max_towers(int l, int r, int d) {
	int ans=0;
	if(d==1){
		if(r-l<3){
			ans=0;
		}else{
			ans=r-l+1;
		}
	}

  return ans;
}
# Verdict Execution time Memory Grader output
1 Incorrect 251 ms 1112 KB 1st lines differ - on the 1st token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB 1st lines differ - on the 1st token, expected: '13', found: '0'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB 1st lines differ - on the 1st token, expected: '13', found: '0'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 398 ms 1368 KB 1st lines differ - on the 1st token, expected: '11903', found: '35960'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 163 ms 688 KB 1st lines differ - on the 1st token, expected: '7197', found: '0'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB 1st lines differ - on the 1st token, expected: '13', found: '0'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 251 ms 1112 KB 1st lines differ - on the 1st token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -