Submission #1102240

#TimeUsernameProblemLanguageResultExecution timeMemory
1102240androHorses (IOI15_horses)C++14
17 / 100
24 ms8184 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]; pref %= mod; 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 updateX(int, int)':
horses.cpp:17:17: warning: unused parameter 'pos' [-Wunused-parameter]
   17 | int updateX(int pos, int val) {
      |             ~~~~^~~
horses.cpp:17:26: warning: unused parameter 'val' [-Wunused-parameter]
   17 | 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...