Submission #1348793

#TimeUsernameProblemLanguageResultExecution timeMemory
1348793ElayV13Horses (IOI15_horses)C++20
17 / 100
6 ms4164 KiB
#include "horses.h"
#include "bits/stdc++.h"
using namespace std;

const int mod=1e9+7;

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

int updateX(int pos,int val)
{

}

int updateY(int pos,int val)
{

}

Compilation message (stderr)

horses.cpp: In function 'int updateX(int, int)':
horses.cpp:21:1: warning: no return statement in function returning non-void [-Wreturn-type]
   21 | }
      | ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:26:1: warning: no return statement in function returning non-void [-Wreturn-type]
   26 | }
      | ^
#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...