Submission #430560

#TimeUsernameProblemLanguageResultExecution timeMemory
430560REALITYNBHorses (IOI15_horses)C++14
17 / 100
40 ms14256 KiB
#include <bits/stdc++.h> #include "horses.h" #define ll long long #define md ((ll)1e9+7) using namespace std; vector<ll> x,y ; int init(int n ,int fx[], int fy[]){ for(int i=0;i<n;i++) x.push_back(fx[i]) ; for(int i=0;i<n;i++) y.push_back(fy[i]); ll horses = 1 ; ll mx = 0 ; for(ll i=0;i<n;i++){ horses*=x[i] ; mx=max(mx,horses*y[i]) ; } mx%=md; return (int)(mx); } int updateX(int h , int hh ){ return 0 ; } int updateY(int h , int hh){ return 0 ; }

Compilation message (stderr)

horses.cpp: In function 'int updateX(int, int)':
horses.cpp:19:17: warning: unused parameter 'h' [-Wunused-parameter]
   19 | int updateX(int h , int hh ){
      |             ~~~~^
horses.cpp:19:25: warning: unused parameter 'hh' [-Wunused-parameter]
   19 | int updateX(int h , int hh ){
      |                     ~~~~^~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:22:17: warning: unused parameter 'h' [-Wunused-parameter]
   22 | int updateY(int h , int hh){
      |             ~~~~^
horses.cpp:22:25: warning: unused parameter 'hh' [-Wunused-parameter]
   22 | int updateY(int h , int hh){
      |                     ~~~~^~
#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...