# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
567709 | shahriarkhan | 여행하는 상인 (APIO17_merchant) | C++14 | 714 ms | 3376 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std ;
const int MX_N = 105 , MX_K = 1005 ;
const long long INF = 1e9 + 5 ;
long long dist[MX_N][MX_N] , best[MX_N][MX_N] , buy[MX_N][MX_K] , sell[MX_N][MX_K] ;
pair<long long , long long> profit[MX_N][MX_N] ;
pair<long long , long long> f(pair<long long , long long> x , pair<long long , long long> y)
{
if((x.first*y.second)>(y.first*x.second)) return x ;
else if((x.first*y.second)<(y.first*x.second)) return y ;
else if(x.first>y.first) return x ;
else return y ;
}
int main()
{
int n , m , k ;
pair<long long , long long> ans = {0,0} ;
scanf("%d%d%d",&n,&m,&k) ;
for(int i = 1 ; i <= n ; ++i)
{
for(int j = 1 ; j <= k ; ++j)
{
scanf("%lld%lld",&buy[i][j],&sell[i][j]) ;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |