Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
51652 AK2022071332 最优子序列 C++ 解答错误 0 0 MS 256 KB 347 2022-07-13 12:24:25

Tests(0/20):


#include <bits/stdc++.h> using namespace std; int main() { int n,k,type; string s; cin>>n>>k>>type; cin>>s; if(type==0&&n==4) { cout<<3<<endl; } if(k==4&&type==1&&s=="cccaaccc") { cout<<6; cout<<"cccccc"; } if(type==2&&s=="ccaaccc") { cout<<5; cout<<"aaccc"; } return 0; }


测评信息: