# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
563780 | KoD | Bowling (BOI15_bow) | C++17 | 195 ms | 3540 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>
#define rep(i, n) for (int i = 0; i < int(n); ++i)
using ll = long long;
using std::vector;
using std::array;
using std::pair;
using std::tuple;
template <class T> constexpr T infty = std::numeric_limits<T>::max() / 2;
ll dp[10][331][11][11];
bool match(const char c, const char d) {
return c == '?' or c == d;
}
ll solve(const int N, const std::string& S, const std::vector<int>& P) {
rep(i, 10) rep(j, 331) rep(k, 11) rep(l, 11) dp[i][j][k][l] = 0;
rep(k, 11) rep(l, 11) dp[0][0][k][l] = 1;
rep(round, N - 1) rep(point, 331) rep(k, 11) rep(l, 11) {
const ll val = dp[round][point][k][l];
if (val == 0) continue;
const auto C = S.begin() + (2 * round);
if (k == 10) {
# | 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... |