# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
931555 | nguyentunglam | Simurgh (IOI17_simurgh) | C++17 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define all(v) v.begin(), v.end()
#define endl "\n"
#define int long long
using namespace std;
const int N = 510 + 01;
int a[N][N];
//mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
mt19937 rng(1417415151);
long long rnd(long long l, long long r) {
return l + rng() % (r - l + 1);
}
int u[510], v[510];
int32_t main() {
for(int test = 1; test <= 100000; test ++) {
cerr << "Test Case #" << test << ":.....\n";
ofstream cout ("task.inp");
int n = rnd(4, 5), m = rnd(1, 4);
m = min(m, n * (n - 1) / 2 - n + 1);
vector<pair<int, int> > e;