Submission #800782

#TimeUsernameProblemLanguageResultExecution timeMemory
800782LiudasHorses (IOI15_horses)C++17
17 / 100
24 ms8172 KiB
#include <bits/stdc++.h> #include "horses.h" using namespace std; int init(int N, int X[], int Y[]){ int ans = 0; for(int i = 0; i < N; i ++){ if(i){ X[i] *= X[i-1]; } ans = max(ans, X[i]*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 updateX(int, int)':
horses.cpp:14:17: warning: unused parameter 'pos' [-Wunused-parameter]
   14 | int updateX(int pos, int val){
      |             ~~~~^~~
horses.cpp:14:26: warning: unused parameter 'val' [-Wunused-parameter]
   14 | int updateX(int pos, int val){
      |                      ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:17:17: warning: unused parameter 'pos' [-Wunused-parameter]
   17 | int updateY(int pos, int val){
      |             ~~~~^~~
horses.cpp:17:26: warning: unused parameter 'val' [-Wunused-parameter]
   17 | 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...