# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
568301 | inluminas | Toll (BOI17_toll) | C++17 | 199 ms | 169956 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include"bits/stdc++.h"
using namespace std;
#define ll long long
#define endl "\n"
#define fastio ios_base::sync_with_stdio(false)
#define inf LLONG_MAX
#define l first
#define r second
const int lmt=50001;
ll dp[lmt][17][5][5];
int main(){
fastio;
for(int i=0;i<lmt;i++){
for(int j=0;j<17;j++){
for(int k=0;k<5;k++){
for(int l=0;l<5;l++) dp[i][j][k][l]=1e15;
}
}
}
int k,n,m,q;
cin>>k>>n>>m>>q;
for(int i=1;i<=m;i++){
ll u,v,t;
cin>>u>>v>>t;
dp[u/k][0][u%k][v%k]=min(dp[u/k][0][u%k][v%k],t);
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |