| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1156242 | aarb_.tomatexd | 말 (IOI15_horses) | C++20 | 1595 ms | 8276 KiB |
#include "horses.h"
#include<bits/stdc++.h>
using namespace std;
#define ll long long
int n, x[500005], y[500005];
int query() {
int ans = 0, co = 1;
for (int i = 0; i < n; i++) {
co *= x[i];
ans = max(ans, co*y[i]);
}
return ans;
}
int init(int N, int X[], int Y[]) {
n = N;
for (int i = 0; i < n; i++) {
x[i] = X[i];
y[i] = Y[i];
}
return query();
}
int updateX(int pos, int val) {
x[pos] = val;
return query();
}
int updateY(int pos, int val) {
y[pos] = val;
return query();
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
