답안 #41873

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
41873 2018-02-22T02:47:03 Z funcsr 말 (IOI15_horses) C++14
17 / 100
28 ms 8820 KB
#include "horses.h"
#include <vector>
#include <iostream>
#include <algorithm>
#include <queue>
#define rep(i, n) for (int i=0; i<(n); i++)
using namespace std;

int N;
int init(int NN, int X[], int Y[]) {
  N = NN;
  int mx = 0;
  int x = 1;
  rep(i, N) {
    x *= X[i];
    mx = max(mx, x*Y[i]);
  }
  return mx;
}

int updateX(int pos, int val) {
  return 0;
}

int updateY(int pos, int val) {
  return 0;
}

Compilation message

horses.cpp:21:17: warning: unused parameter 'pos' [-Wunused-parameter]
 int updateX(int pos, int val) {
                 ^
horses.cpp:21:26: warning: unused parameter 'val' [-Wunused-parameter]
 int updateX(int pos, int val) {
                          ^
horses.cpp:25:17: warning: unused parameter 'pos' [-Wunused-parameter]
 int updateY(int pos, int val) {
                 ^
horses.cpp:25:26: warning: unused parameter 'val' [-Wunused-parameter]
 int updateY(int pos, int val) {
                          ^
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 248 KB Output is correct
2 Correct 1 ms 356 KB Output is correct
3 Correct 1 ms 464 KB Output is correct
4 Correct 1 ms 572 KB Output is correct
5 Correct 2 ms 572 KB Output is correct
6 Correct 1 ms 572 KB Output is correct
7 Correct 1 ms 612 KB Output is correct
8 Correct 1 ms 704 KB Output is correct
9 Correct 1 ms 704 KB Output is correct
10 Correct 2 ms 704 KB Output is correct
11 Correct 1 ms 704 KB Output is correct
12 Correct 1 ms 704 KB Output is correct
13 Correct 1 ms 704 KB Output is correct
14 Correct 1 ms 704 KB Output is correct
15 Correct 1 ms 704 KB Output is correct
16 Correct 2 ms 704 KB Output is correct
17 Correct 2 ms 704 KB Output is correct
18 Correct 1 ms 752 KB Output is correct
19 Correct 1 ms 752 KB Output is correct
20 Correct 1 ms 752 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 752 KB Output is correct
2 Correct 1 ms 792 KB Output is correct
3 Correct 1 ms 792 KB Output is correct
4 Correct 1 ms 792 KB Output is correct
5 Correct 1 ms 792 KB Output is correct
6 Correct 1 ms 792 KB Output is correct
7 Correct 1 ms 792 KB Output is correct
8 Correct 1 ms 792 KB Output is correct
9 Correct 2 ms 792 KB Output is correct
10 Correct 2 ms 792 KB Output is correct
11 Correct 2 ms 792 KB Output is correct
12 Correct 2 ms 792 KB Output is correct
13 Correct 2 ms 792 KB Output is correct
14 Correct 1 ms 792 KB Output is correct
15 Correct 1 ms 792 KB Output is correct
16 Correct 1 ms 792 KB Output is correct
17 Correct 2 ms 792 KB Output is correct
18 Correct 1 ms 792 KB Output is correct
19 Correct 2 ms 792 KB Output is correct
20 Correct 1 ms 792 KB Output is correct
21 Incorrect 1 ms 792 KB Output isn't correct
22 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 28 ms 8820 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 8820 KB Output is correct
2 Correct 1 ms 8820 KB Output is correct
3 Correct 1 ms 8820 KB Output is correct
4 Correct 2 ms 8820 KB Output is correct
5 Correct 1 ms 8820 KB Output is correct
6 Correct 2 ms 8820 KB Output is correct
7 Correct 2 ms 8820 KB Output is correct
8 Correct 2 ms 8820 KB Output is correct
9 Correct 1 ms 8820 KB Output is correct
10 Correct 2 ms 8820 KB Output is correct
11 Correct 1 ms 8820 KB Output is correct
12 Correct 1 ms 8820 KB Output is correct
13 Correct 2 ms 8820 KB Output is correct
14 Correct 1 ms 8820 KB Output is correct
15 Correct 1 ms 8820 KB Output is correct
16 Correct 1 ms 8820 KB Output is correct
17 Correct 1 ms 8820 KB Output is correct
18 Correct 1 ms 8820 KB Output is correct
19 Correct 1 ms 8820 KB Output is correct
20 Correct 1 ms 8820 KB Output is correct
21 Incorrect 2 ms 8820 KB Output isn't correct
22 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 8820 KB Output is correct
2 Correct 1 ms 8820 KB Output is correct
3 Correct 1 ms 8820 KB Output is correct
4 Correct 1 ms 8820 KB Output is correct
5 Correct 1 ms 8820 KB Output is correct
6 Correct 1 ms 8820 KB Output is correct
7 Correct 3 ms 8820 KB Output is correct
8 Correct 2 ms 8820 KB Output is correct
9 Correct 1 ms 8820 KB Output is correct
10 Correct 2 ms 8820 KB Output is correct
11 Correct 1 ms 8820 KB Output is correct
12 Correct 2 ms 8820 KB Output is correct
13 Correct 1 ms 8820 KB Output is correct
14 Correct 2 ms 8820 KB Output is correct
15 Correct 1 ms 8820 KB Output is correct
16 Correct 1 ms 8820 KB Output is correct
17 Correct 2 ms 8820 KB Output is correct
18 Correct 2 ms 8820 KB Output is correct
19 Correct 2 ms 8820 KB Output is correct
20 Correct 2 ms 8820 KB Output is correct
21 Incorrect 2 ms 8820 KB Output isn't correct
22 Halted 0 ms 0 KB -