Submission #672318

#TimeUsernameProblemLanguageResultExecution timeMemory
672318Trisanu_DasHorses (IOI15_horses)C++17
17 / 100
27 ms8184 KiB
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 int init(int n, int x[], int y[]){ int ans = 0, hrspr = 1; for(int i = 0; i < n; i++){ hrspr *= x[i]; (ans = max(ans, hrspr * y[i])) %= MOD; } 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){return 0;}
      |             ~~~~^~~
horses.cpp:14:26: warning: unused parameter 'val' [-Wunused-parameter]
   14 | int updateX(int pos, int val){return 0;}
      |                      ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:15:17: warning: unused parameter 'pos' [-Wunused-parameter]
   15 | int updateY(int pos, int val){return 0;}
      |             ~~~~^~~
horses.cpp:15:26: warning: unused parameter 'val' [-Wunused-parameter]
   15 | int updateY(int pos, int val){return 0;}
      |                      ~~~~^~~
#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...