Submission #1004566

#TimeUsernameProblemLanguageResultExecution timeMemory
1004566vjudge1Horses (IOI15_horses)C++17
17 / 100
20 ms6180 KiB
#include <bits/stdc++.h> /// author: LilPluton auuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu #define OPT ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define intt long long #define ll long long #define pb push_back #define arr array #define vll vector<int> #define fi first #define se second #define rep(i,j,k) for(int i = j; i <= k; ++i) #define all(a) a.begin(),a.end() #define pii pair<int,int> #define endll '\n' using namespace std; const ll INF = 1e18; const int N = 305 * 305; const int md = 1e9 + 7; int init(int n,int x[],int y[]) { ll p = 1, ans = 0; for(int i = 0; i < n; ++i) { p *= x[i]; ans = max(ans, p * y[i] % md); p %= md; } 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 init(int, int*, int*)':
horses.cpp:29:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
   29 |      return ans;
      |             ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:32:18: warning: unused parameter 'pos' [-Wunused-parameter]
   32 |  int updateX(int pos,int val)
      |              ~~~~^~~
horses.cpp:32:26: warning: unused parameter 'val' [-Wunused-parameter]
   32 |  int updateX(int pos,int val)
      |                      ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:36:18: warning: unused parameter 'pos' [-Wunused-parameter]
   36 |  int updateY(int pos,int val)
      |              ~~~~^~~
horses.cpp:36:26: warning: unused parameter 'val' [-Wunused-parameter]
   36 |  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...