Submission #1154264

#TimeUsernameProblemLanguageResultExecution timeMemory
1154264tsengangConstruction Project 2 (JOI24_ho_t2)C++20
0 / 100
0 ms324 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define ff first #define ss second #define all(x) (x).begin(), (x).end() #define pb push_back #define ertunt return const int MOD = 998244353; #pragma GCC target ("avx2") #pragma GCC optimization ("O3") #pragma GCC optimization ("unroll-loops") int main() { ll n, m; cin >> n >> m; ll s, t, l, k; cin >> s >> t >> l >> k; vector<vector<pair<ll, ll>>> v(n + 1); for (ll i = 0; i < m; i++) { ll a, b, w; cin >> a >> b >> w; v[a].pb({b, w}); v[b].pb({a, w}); } cout << (n-1)*n/2; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...