Submission #416588

#TimeUsernameProblemLanguageResultExecution timeMemory
416588victoriadHorses (IOI15_horses)C++14
17 / 100
29 ms4420 KiB
#include "horses.h" #include "vector" #include "cmath" #include "algorithm" #include "utility" using namespace std; using namespace std; int init(int N, int X[], int Y[]) { int a=0; int y=0; int mod=1e9+7; int j=1; int r2=1; for(int i=0;i<N;i++){ r2*=X[i]; r2%=(mod); j=max(j,r2*Y[i]); } j%=mod; return j; } 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:12:6: warning: unused variable 'a' [-Wunused-variable]
   12 |  int a=0;
      |      ^
horses.cpp:13:6: warning: unused variable 'y' [-Wunused-variable]
   13 |  int y=0;
      |      ^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:26:17: warning: unused parameter 'pos' [-Wunused-parameter]
   26 | int updateX(int pos, int val) {
      |             ~~~~^~~
horses.cpp:26:26: warning: unused parameter 'val' [-Wunused-parameter]
   26 | int updateX(int pos, int val) {
      |                      ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:30:17: warning: unused parameter 'pos' [-Wunused-parameter]
   30 | int updateY(int pos, int val) {
      |             ~~~~^~~
horses.cpp:30:26: warning: unused parameter 'val' [-Wunused-parameter]
   30 | 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...