| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 134161 | Runtime_error_ | 말 (IOI15_horses) | C++14 | 19 ms | 10616 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "horses.h"
#include <bits/stdc++.h>
#define ll long long
using namespace std;
const ll inf = 1e3+9,mod = 1e9+7;
ll dp[inf],x[inf],y[inf];
int init(int N, int X[], int Y[]) {
for(int i=1;i<=N;i++)
x[i] = X[i-1] , y[i] = Y[i-1];
ll cur = 1,ret = 0;
for(int i=1;i<=N;i++){
cur = 1;
for(int j=i;j>0;j--){
cur = (cur*x[j])%mod;
dp[i] = max(dp[i], (mod+dp[j-1]-y[j-1] + (cur*y[i])%mod)%mod );
}
ret = max( ret ,dp[i] );
//cout<<dp[i]<<" ";
}
return (int)ret;
}
int updateX(int pos, int val) {
return 0;
}
int updateY(int pos, int val) {
return 0;
}
컴파일 시 표준 에러 (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... | ||||
