Submission #1102241

#TimeUsernameProblemLanguageResultExecution timeMemory
1102241androHorses (IOI15_horses)C++14
17 / 100
20 ms4428 KiB
#include <bits/stdc++.h>
#include "horses.h"
using namespace std;

int init(int N, int X[], int Y[]) {
    int ans = 0;
    int pref = 1;
    int mod = 1e9 + 7;
    for(int i = 0; i < N; i++) {
        pref *= X[i];
        ans = max(ans, pref * Y[i]);
    }
	return ans;
}

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

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

Compilation message (stderr)

horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:8:9: warning: unused variable 'mod' [-Wunused-variable]
    8 |     int mod = 1e9 + 7;
      |         ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:16:17: warning: unused parameter 'pos' [-Wunused-parameter]
   16 | int updateX(int pos, int val) {
      |             ~~~~^~~
horses.cpp:16:26: warning: unused parameter 'val' [-Wunused-parameter]
   16 | int updateX(int pos, int val) {
      |                      ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:21:17: warning: unused parameter 'pos' [-Wunused-parameter]
   21 | int updateY(int pos, int val) {
      |             ~~~~^~~
horses.cpp:21:26: warning: unused parameter 'val' [-Wunused-parameter]
   21 | int updateY(int pos, int val) {
      |                      ~~~~^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...