# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1099872 | model_code | Hieroglyphs (IOI24_hieroglyphs) | C++17 | 847 ms | 2097152 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.
// time_limit/agustin-heuristic.cpp
//#include "hieroglyphs.h"
#include <iostream>
#include <vector>
using namespace std;
#define forn(i,n) for (int i=0;i<int(n);i++)
#define dforn(i,n) for (int i=int(n)-1;i>=0;i--)
#define SIZE(c) int((c).size())
const int MAX_NUM = 200000;
vector<int> aIndex[MAX_NUM];
vector<int> bIndex[MAX_NUM];
vector<int> lcs(const vector<int> &A, const vector<int> &B, bool maximizing)
{
const int N = SIZE(A);
const int M = SIZE(B);
vector<vector<int>> dp(N+1, vector<int>(M+1));
forn(j,M+1)
dp[0][j] = 0;
forn(i,N+1)
dp[i][0] = 0;
dforn(i,N)
dforn(j,M)
if (A[i] == B[j])
dp[i][j] = 1 + dp[i+1][j+1];
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |