Submission #1200736

#TimeUsernameProblemLanguageResultExecution timeMemory
1200736china001Swapping Cities (APIO20_swap)C++20
0 / 100
69 ms13408 KiB
#include "swap.h" #include <bits/stdc++.h> #include <vector> using namespace std; #define fopen(s) freopen(s".in","r",stdin);freopen(s".out","w",stdout) #define all(x) (x).begin(), (x).end() #define len(x) (int)x.size() #define pb push_back #define F first #define S second //#define int long long #define pii pair<int,int> const int N = 2e5 + 78 , M = 1e9 + 7 , inf = 1e18; const double eps = 1e-11; vector<pii> g[N]; int ww[N]; vector<int> vv; void init(int N, int M, std::vector<int> U, std::vector<int> V, std::vector<int> W) { srand(time(NULL)); for(int i = 0 ; i < M ; i++){ int x = U[i] , y = V[i] , z = W[i]; g[x].pb({y , z}) , g[y].pb({x , z}); ww[x] = z , ww[y] = z; vv.pb(z); } } int getMinimumFuelCapacity(int X, int Y) { return -1; }

Compilation message (stderr)

swap.cpp:16:46: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
   16 | const int N = 2e5 + 78 , M = 1e9 + 7 , inf = 1e18;
      |                                              ^~~~
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...