# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
644638 | guagua0407 | Toll (BOI17_toll) | C++17 | 235 ms | 99280 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define F first
#define S second
#define all(x) x.begin(),x.end()
#define _ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
void setIO(string s) {
freopen((s + ".in").c_str(), "r", stdin);
freopen((s + ".out").c_str(), "w", stdout);
}
int k,n,m,o;
const int mxn=5e4+4;
int dp[mxn][20][5][5];
int ans[5][5];
int tmp[5][5];
void ckmin(int a[5][5],int b[5][5],int c[5][5]){
for(int x=0;x<5;x++){
for(int y=0;y<5;y++){
for(int z=0;z<5;z++){
a[x][z]=min(a[x][z],b[x][y]+c[y][z]);
}
}
}
}
int main() {_
Compilation message (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |