#include <stdio.h>
#include <algorithm>
using namespace std;
int m[26];//保存要输入的导弹
int f[26];//保存该位置最长子序列的长度
int main(
#include <stdio.h>
#include <algorithm>
using namespace std;
int m[26];//保存要输入的导弹
int f[26];//保存该位置最长子序列的长度
int main(