题目
解题思路
后台有spj代码,能对同学们的输出数据进行校验,符合条件即可通过。
附赠 spj 代码
#include <iostream>
#include <fstream>
#include <string>
#include <cctype>
#include <algorithm>
using namespace std;
int main(void)
{
ifstream in,out,user_out;
in.open("input");
out.open("output");
user_out.open("user_output");
string s,t;
if(!(user_out>>s))
return 1;
out>>t;
if(s.length()>5)
return 1;
transform(s.begin(),s.end(),s.begin(),::toupper);
transform(t.begin(),t.end(),t.begin(),::toupper);
if(s!=t)
return 1;
if(user_out>>s)
return 1;
return 0;
}
算法及复杂度
- 算法:无。
- 时间复杂度: O ( 1 ) \mathcal{O}(1) O(1) 。
- 空间复杂度: O ( 1 ) \mathcal{O}(1) O(1) 。

被折叠的 条评论
为什么被折叠?



