Skip to content

Instantly share code, notes, and snippets.

using StaticArrays;
using CSV, DataFrames, JuMP, SCIP;
io = open("input.txt", "r");
io2 = open("output.txt", "w");
t = parse(Int64, readline(io));
for i in 1:t
n, m, k = [parse(Int64, x) for x in split(readline(io))]
adj = Vector{Vector{Int64}}(undef, n)
@koosaga
koosaga / F_tle.jl
Last active December 10, 2023 00:13
using StaticArrays;
using CSV, DataFrames, JuMP, SCIP;
io = open("input.txt", "r");
io2 = open("output.txt", "w");
t = parse(Int64, readline(io));
for i in 1:t
n, m, k = [parse(Int64, x) for x in split(readline(io))]
adj = zeros(Int, n, n)
#include <bits/stdc++.h>
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
#define cr(v, n) (v).clear(), (v).resize(n);
using namespace std;
using lint = long long;
using pi = array<lint, 2>;
const int MAXN = 100005;
struct elem {
#include <bits/stdc++.h>
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
using namespace std;
using lint = long long;
using pi = array<lint, 2>;
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
#define cr(v, n) (v).clear(), (v).resize(n);