| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1129504 | boris_7 | 말 (IOI15_horses) | C++20 | 25 ms | 4420 KiB |
#include "horses.h"
#include<bits/stdc++.h>
int mod = 1e9+7;
using namespace std;
using ll = long long;
int init(int N, int X[], int Y[]) {
ll ans = 1,cnt=1,ind = 0;
for(int i = 0;i<N;i++){
cnt*=X[i];
if(cnt*Y[i]>=Y[ind]) ind = i,cnt=1;
}
for(int i = 0;i<=ind;i++) ans=(ans*X[i])%mod;
ans*=Y[ind];
return ans%mod;
}
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... | ||||
