Submission #1004516

#TimeUsernameProblemLanguageResultExecution timeMemory
1004516hacizadalHorses (IOI15_horses)C++17
17 / 100
18 ms8284 KiB
#include "horses.h" #include <bits/stdc++.h> using namespace std; #define endl '\n' #define ll long long #define pll pair<ll, ll> int init(int N, int X[], int Y[]) { ll h = 1, mx = 0; for (ll i = 0; i<N; i++){ h *= X[i]; ll say = h*Y[i]; mx = max(mx, say); } return mx; } int updateX(int pos, int val) { return 0; } int updateY(int pos, int val) { return 0; }

Compilation message (stderr)

horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:15:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
   15 |  return mx;
      |         ^~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:18:17: warning: unused parameter 'pos' [-Wunused-parameter]
   18 | int updateX(int pos, int val) {
      |             ~~~~^~~
horses.cpp:18:26: warning: unused parameter 'val' [-Wunused-parameter]
   18 | int updateX(int pos, int val) {
      |                      ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:22:17: warning: unused parameter 'pos' [-Wunused-parameter]
   22 | int updateY(int pos, int val) {
      |             ~~~~^~~
horses.cpp:22:26: warning: unused parameter 'val' [-Wunused-parameter]
   22 | 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...