# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
129626 | SamAnd | Plus Minus (BOI17_plusminus) | C++17 | 283 ms | 22856 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;
const int M = 1000000007, N = 1003;
int ast(int x, int n)
{
if (n < 0)
return 0;
if (n == 0)
return 1;
if (n % 2 == 0)
{
int y = ast(x, n / 2);
return (y * 1LL * y) % M;
}
else
{
int y = ast(x, n - 1);
return (x * 1LL * y) % M;
}
}
int ans0, ans1;
int n, m, k;
map<int, vector<int> > sp0, sm0;
set<int> z1, z2;
set<int> sp, sm;
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... |