#include "horses.h"
#include <algorithm>
using namespace std;
typedef long long ll;
const ll MOD = 1E9 + 7;
int init(int N, int X[], int Y[]) {
ll horses = 1;
ll profit = 0;
for (int i = 0; i < N; i++) {
horses *= X[i];
profit = max(profit, horses*Y[i] % MOD);
}
return static_cast<int>(profit);
}
int updateX(int pos, int val) {
return 0;
}
int updateY(int pos, int val) {
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |