# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
375874 | KoD | Palindromes (APIO14_palindrome) | C++17 | 624 ms | 53792 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/extc++.h>
using ll = long long;
template <class T>
using Vec = std::vector<T>;
template <class T, class U>
using HashTable = __gnu_pbds::gp_hash_table<T, U>;
ll rand_ll(const ll low, const ll high) {
static std::random_device dev;
static std::default_random_engine gen(dev() ^ std::clock());
return std::uniform_int_distribution<ll>(low, high)(gen);
}
constexpr ll MOD = (1ll << 61) - 1;
const ll BASE = rand_ll(0, MOD - 1);
constexpr ll sum(ll x, const ll y) {
x += y;
return (x >= MOD ? x - MOD : x);
}
constexpr ll prod(const ll x, const ll y) {
return ((__int128_t) x * y) % MOD;
}
struct RollingHash {
# | 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... |