Submission #1000082

# Submission time Handle Problem Language Result Execution time Memory
1000082 2024-06-16T15:40:56 Z jer033 Horses (IOI15_horses) C++17
0 / 100
1500 ms 4188 KB
#include "horses.h"
#include <bits/stdc++.h>
using ll = long long;
using namespace std;
const ll MOD = 1'000'000'007;

int init(int N, int X[], int Y[]) {
	int best = 0;
	for (int i=0; i<N; i++)
	{
		int curr = 1;
		for (int j=0; j<=i; j++)
			curr = curr*X[i];
		curr = curr*Y[i];
		best = max(best, curr);
	}
	return best;
}

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

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

Compilation message

horses.cpp: In function 'int updateX(int, int)':
horses.cpp:20:17: warning: unused parameter 'pos' [-Wunused-parameter]
   20 | int updateX(int pos, int val) {
      |             ~~~~^~~
horses.cpp:20:26: warning: unused parameter 'val' [-Wunused-parameter]
   20 | int updateX(int pos, int val) {
      |                      ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:24:17: warning: unused parameter 'pos' [-Wunused-parameter]
   24 | int updateY(int pos, int val) {
      |             ~~~~^~~
horses.cpp:24:26: warning: unused parameter 'val' [-Wunused-parameter]
   24 | int updateY(int pos, int val) {
      |                      ~~~~^~~
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 344 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1578 ms 4188 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -