# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
430560 | REALITYNB | Horses (IOI15_horses) | C++14 | 40 ms | 14256 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>
#include "horses.h"
#define ll long long
#define md ((ll)1e9+7)
using namespace std;
vector<ll> x,y ;
int init(int n ,int fx[], int fy[]){
for(int i=0;i<n;i++) x.push_back(fx[i]) ;
for(int i=0;i<n;i++) y.push_back(fy[i]);
ll horses = 1 ;
ll mx = 0 ;
for(ll i=0;i<n;i++){
horses*=x[i] ;
mx=max(mx,horses*y[i]) ;
}
mx%=md;
return (int)(mx);
}
int updateX(int h , int hh ){
return 0 ;
}
int updateY(int h , int hh){
return 0 ;
}
Compilation message (stderr)
# | 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... |