# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1043577 | Azm1t | Regions (IOI09_regions) | C++17 | 8077 ms | 36176 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 rep(i, a, b) for (long long i = a; i < b; i++)
#define sz(x) static_cast<long long>((x).size())
#define all(x) (x).begin(), (x).end()
// #define int long long
#define double long double
const long long inf = (long long) 1e18;
const int mod = (int) 998244353;
signed main(){
// ios::sync_with_stdio(0);
// cin.tie(0);
// cout << fixed << setprecision(10);
int n, r, q; cin >> n >> r >> q;
vector<vector<int>> adj(n);
vector<int> color[r];
vector<int> region(n);
vector<int> regiontotime[r];
cin >> region[0]; region[0]--;
color[region[0]].push_back(0);
rep(i, 1, n){
int y; cin >> y >> region[i];
y--; region[i]--;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |