题解列表
题解 2846: 统计数字字符个数
摘要: #include
using namespace std;
const int N=300;
int cnt;
string a;
int m……
题解 2847: 找第一个只出现一次的字符
摘要: #include
using namespace std;
const int N=100000;
char a[N];
int cnt[26];
……
2850: 输出亲朋字符串
摘要:```
#include
using namespace std;
const int N=100010;
int main(){
string a,b;
getline(cin,a)……
蓝桥杯2023年第十四届省赛真题-子串简写(Java代码)
摘要:本文仅供参考理解解题思路,a、b、c、d、e、f输出皆正确,但提交错误。
a、b、c、d、e均为时间超限,其中a、b、c为95分;
d是c的简化版,但为0分;
e有两种思路c1和c2可以调换先后……
strcpy?不不不,都多余了
摘要:```c
#include
int main()
{
int a,b;
char s[10000];
scanf("%d%s%d",&a,s,&b);
c……
不能没落的strcmp和strcpy!!!
摘要:解题思路:strcmp函数:若返回值为0,说明两个字符串相等。若返回值小于0,说明 str1 小于 str2。若返回值大于0,说明 str1 大于 str2。作用: 用于比较两个字符串。函数原型: i……
题解 2913: 整数去重
摘要: #include
using namespace std;
int a[20000],b[20000];
int n,m,sum;
int main()……