Submission #1270021

#TimeUsernameProblemLanguageResultExecution timeMemory
1270021alexiahHorses (IOI15_horses)C++20
17 / 100
14 ms4336 KiB
#include <bits/stdc++.h>
#include "horses.h"
using namespace std;

int init(int n, int x[], int y[]) {
	int h = 1;
	int ans = 0;
	for(int i = 0; i < n; i++){
		h *= x[i];
		ans = max(ans , (h * y[i]));
	}
	return ans;
}

int updateX(int pos, int val) {	
	return 0;
}

int updateY(int pos, int val) {
	return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...