摘要: 这题感觉没有省选-吧,我要去入门的都能AC。 我采取的是递归读入+map判断重复,具体代码如下: #include <cstdio>//比cin快 #include <map>//map头文件 using namespace std;//标准命名空间 map <int, bool> mp;//创造m 阅读全文
posted @ 2020-10-05 20:49 HappyBobb 阅读(4) 评论(0) 推荐(0)
摘要: 原来SPOJ都一个测试点啊? 好吧,这题大家while啊?我用的是递归! 首先因为大小写都一样,所以我写了个全换成小写的函数: char tounder(char x) { if(x >= 'A' && x <= 'Z') { return x - 'A' + 'a'; } else { retur 阅读全文
posted @ 2020-10-05 19:22 HappyBobb 阅读(18) 评论(0) 推荐(0)