제출 #416585

#제출 시각아이디문제언어결과실행 시간메모리
416585victoriad말 (IOI15_horses)C++14
0 / 100
32 ms4368 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 r2=1; for(int i=0;i<N;i++){ r2*=X[i]; r2%=(mod); if(Y[i]>=a){ a=Y[i]; y=i; } } int r=1; for(int i=0;i<=y;i++){ r*=X[i]; r%=(mod); } r2*=Y[N-1]; r2%=mod; r*=a; r%=mod; return max(r,r2); } int updateX(int pos, int val) { return 0; } int updateY(int pos, int val) { return 0; }

컴파일 시 표준 에러 (stderr) 메시지

horses.cpp: In function 'int updateX(int, int)':
horses.cpp:36:17: warning: unused parameter 'pos' [-Wunused-parameter]
   36 | int updateX(int pos, int val) {
      |             ~~~~^~~
horses.cpp:36:26: warning: unused parameter 'val' [-Wunused-parameter]
   36 | int updateX(int pos, int val) {
      |                      ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:40:17: warning: unused parameter 'pos' [-Wunused-parameter]
   40 | int updateY(int pos, int val) {
      |             ~~~~^~~
horses.cpp:40:26: warning: unused parameter 'val' [-Wunused-parameter]
   40 | 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...