2846: 统计数字字符个数 摘要:``` #include using namespace std; int main(){ int cnt=0; string s; getline(cin,s); for(in…… 题解列表 2023年12月19日 0 点赞 0 评论 155 浏览 评分:0.0
2847: 找第一个只出现一次的字符 摘要:``` #include using namespace std; const int N=10010; char s[N]; int cnt[26]; int main(){ cin…… 题解列表 2023年12月19日 0 点赞 0 评论 164 浏览 评分:0.0
903: 不高兴的津津 摘要:``` #include using namespace std; const int N=110; int a[N] ,b[N]; int main() { int t = 0; …… 题解列表 2023年12月19日 0 点赞 0 评论 122 浏览 评分:0.0
题解 2850: 输出亲朋字符串 摘要: #include using namespace std; const int N=100000; int main() { string…… 题解列表 2023年12月19日 0 点赞 0 评论 119 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:``` #include using namespace std; const int N=10010; int main(){ string a,b; getline(cin,a);…… 题解列表 2023年12月19日 0 点赞 0 评论 159 浏览 评分:0.0
利用指针遍历得到答案 摘要:解题思路:循环输入数据,利用指针遍历,然后寻找最大值,记录位置注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n;…… 题解列表 2023年12月19日 0 点赞 0 评论 127 浏览 评分:0.0
1637: 蓝桥杯算法训练VIP-斜率计算 摘要: x1,y1 = map(int,input().split()) x2,y2 = map(int,input().split()) if x1==x2: …… 题解列表 2023年12月19日 0 点赞 0 评论 110 浏览 评分:0.0
利用指针遍历大量数据提高效率 摘要:解题思路:利用指针遍历大量数据提高效率 memset 赋初值注意事项:参考代码:#include<iostream>#include<cstring>using name…… 题解列表 2023年12月19日 0 点赞 0 评论 141 浏览 评分:0.0
面向过程编程 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[10] = {0};//初始化Apples的高度…… 题解列表 2023年12月19日 0 点赞 0 评论 131 浏览 评分:0.0
简单的字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n=0; scanf("%d",&n); g…… 题解列表 2023年12月20日 0 点赞 0 评论 158 浏览 评分:0.0