Cod sursa(job #3286121)
Utilizator | Data | 13 martie 2025 18:54:34 | |
---|---|---|---|
Problema | Cel mai lung subsir comun | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.39 kb |
#include <fstream>
#include <vector>
using namespace std;
ifstream fin("cmlsc.in");
ofstream fout("cmlsc.out");
const int nmax = 1024;
int a[nmax + 5], b[nmax + 5], dp[nmax + 5][nmax + 4];
int main()
{
int n, m;
fin >> n >> m;
int i, j;
for ( i = 1; i <= n; ++i )
fin >> a[i];
for ( j = 1; j <= m; ++j )
fin >> b[j];
return 0;
}