用户输出
3
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#23942 | #1111. JM的百万大军 | Wrong Answer | 0 | 752 ms | 98240 K | C++ / 388 B | 电类904-穆琳杰 | 2020-03-01 11:44:20 |
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
const int N = 5005;
char a[N], b[N];
int dp[N][N];
int main() {
gets(a);
gets(b);
for (int i = 0; i < strlen(a); i++)
for (int j = 0; j < strlen(b); j++) {
if (a[i] == b[j])
dp[i + 1][j + 1] = (dp[i][j] + 1);
else
dp[i + 1][j + 1] = max(dp[i][j + 1], dp[i + 1][j]);
}
cout << dp[strlen(a)][strlen(b)] << endl;
return 0;
}
用户输出
3
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
6
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
4
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
4
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
4
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
12
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
21
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
demuugrcndybfnjwgvwlwrqiqtrvxfzigsduhqmmddpfcqpbdgkyysplqyhmdvyvbmiuxdamsxhzkzybmsgazfwfecfkpvpswbgq
<399 bytes omitted>
用户输出
60
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
kyvovensdzfhqxykfrybwopqdceiqcgqigiazsiojqmkiofyhsssikakpjugbaodmgoxhvhoexthokqqzfravxlpvactxtszifwb
<397 bytes omitted>
用户输出
72
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
mdchpaerhayeycbivqurhgaleqezyhzjkkasvugqcydzosrmywwfesrnrqpnlvwxhhaxuujkejhbdehkavagnfkpdpydlrqswmws
<3199 bytes omitted>
用户输出
512
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
ztbvtrwgajtqtgrlqysegacviwtfmvzmeryzutppycwtzqtruonzeeommupqesvccokfpnjwymdltmzephsvqtyfihgcsjcxabgh
<7276 bytes omitted>
用户输出
1127
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
acccacaacacacbaccbaaacbabcbbcabbacbccabccbcaccbbbbbaabccacbccabccacbacbabaaacabcaaccacaabababbcbccac
<8011 bytes omitted>
用户输出
2854
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
aabcdcabdbbcccdbdbabbbadbccbbaddbacaaccbccaddadccbdcabacadbdcabacbdaaaccccacccddacdddbcacbbbdcdcabca
<9904 bytes omitted>
用户输出
3245
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
hojjmsbbyzqzkaehdfutywvjxytquujpubozxlrkyxiplxhalxhrqvvclplrzmrzknchfdoduuuqedwsjhfzovwkowaxkoicvmlz
<9904 bytes omitted>
用户输出
1615
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
abaaabbabaabbbabaabababbbabbbbaababbbabbbabbabababbbbaabaaabaabbabaaabbabaabbaaaaababbabbaabaabaaaba
<8543 bytes omitted>
用户输出
3493
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
<8663 bytes omitted>
用户输出
4243
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
rtrrsrrrttttsssstrqttqqqqqsqtrqqqrsrsrrsrttsqtrqtsssrtqtsqtrtssqrqqqqqtttqtqrqtqssqsrrrsqsstqrssrrss
<9419 bytes omitted>
用户输出
3104
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
unuiclmoskxycylvvfhjyrdnxaznoymqqmmewpyqomptfzmuidponulanjujlmoycrrquuigmznxvvvwbukzqvuqirguxfnufwqd
<4575 bytes omitted>
用户输出
364
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0