# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1011329 | nisanduu | Horses (IOI15_horses) | C++14 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll N = 1e5 + 10;
vector<ll> a,b;
ll mod = 1e9 + 7;
ll init(ll n,vector<ll> X,vector<ll> Y){
a=X;
b=Y;
N=n;
ll ans = 0;
ll cr = 1;
for(ll i=0;i<n;i++){
cr *= a[i];
cr %= mod;
ans = max(ans,(cr*b[i])%mod);
}
return ans;
}
ll updateX(ll pos,ll val){
a[pos]=val;
return 0;
}
ll updateY(ll pos,ll val){
b[pos]=val;
return 0;
}
// int main()
// {
// cout<<init(3,{2,1,3},{3,2,1})<<endl;
// return 0;
// }