# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
624852 | dutinmeow | Cake 3 (JOI19_cake3) | C++17 | 757 ms | 119340 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;
#pragma region zip
#ifndef ZIP_HPP
#define ZIP_HPP
namespace zip_internal {
template<typename Iter>
using select_access_type_for = conditional_t<
is_same_v<Iter, vector<bool>::iterator> ||
is_same_v<Iter, vector<bool>::const_iterator>,
typename Iter::value_type,
typename Iter::reference
>;
template<typename ...Args, size_t ...Index>
auto any_match_impl(tuple<Args...> const & lhs, tuple<Args...> const & rhs, index_sequence<Index...>) -> bool {
auto result = false;
result = (... | (get<Index>(lhs) == get<Index>(rhs)));
return result;
}
template<typename ...Args>
auto any_match(tuple<Args...> const &lhs, tuple<Args...> const &rhs) -> bool {
return any_match_impl(lhs, rhs, index_sequence_for<Args...>{});
}
template<typename ... Iters>
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... |