文章目录 一、const是什么?二、使用场景1.修饰变量2.修饰指针修饰指向的值(const int *ptr)修饰指针本身(int *const ptr)修饰指针和指向的值(const int *const ptr) 3.修饰函数修饰非指针类型形…
题目 代码
#include <bits/stdc.h>
using namespace std;const int N 1010;
int f[N][N];
char A[N], B[N];
int main()
{int n, m;cin >> n >> m;cin >> A1 >> B1;for(int i 1; i < n; i){for(int j 1; j < m; j){if(A[i] B[j]) f[…