# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
892692 | fanwen | Sprinkler (JOI22_sprinkler) | C++17 | 5 ms | 10076 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 fi first
#define se second
#define ll long long
#define file(name) \
if(fopen(name".inp", "r")) \
freopen(name".inp", "r", stdin), freopen(name".out", "w", stdout);
const int MAX = 2e5 + 5;
const int MAXD = 41;
int n, L, q, h[MAX];
vector <int> adj[MAX];
int MUL(int &x, int y) {
x = 1LL * x * y % L;
}
void dfs(int u, int p, int val, int d) {
MUL(h[u], val);
if(d <= 0) return;
for (int v : adj[u]) if(v != p) dfs(v, u, val, d - 1);
}
void you_make_it(void) {
cin >> n >> L;
for (int i = 1; i < n; ++i) {
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |