제출 #199705

#제출 시각아이디문제언어결과실행 시간메모리
199705FieryPhoenix말 (IOI15_horses)C++11
17 / 100
23 ms10616 KiB
#include <iostream> #include <vector> #include <algorithm> #include <cmath> #include <cstdio> #include <map> #include <queue> #include <set> #include <iomanip> #include <deque> #include <cassert> #include <ctime> #include <cstring> #include <cstdlib> #include <chrono> #include <ctime> #include <random> #include <stack> #include <unordered_set> #include <unordered_map> #include <iterator> #include <climits> #include <horses.h> using namespace std; mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); typedef long long ll; typedef long double ld; #define INF 2001001001 #define MOD 1000000007 int worth[15]; int init(int N, int X[], int Y[]){ for (int i=N-1;i>=0;i--) worth[i]=X[i]*max(Y[i],worth[i+1]); return worth[0]; } 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:40:17: warning: unused parameter 'pos' [-Wunused-parameter]
 int updateX(int pos, int val){
                 ^~~
horses.cpp:40:26: warning: unused parameter 'val' [-Wunused-parameter]
 int updateX(int pos, int val){
                          ^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:44:17: warning: unused parameter 'pos' [-Wunused-parameter]
 int updateY(int pos, int val){
                 ^~~
horses.cpp:44:26: warning: unused parameter 'val' [-Wunused-parameter]
 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...