903: 不高兴的津津 摘要:``` #include using namespace std; const int N=110; int a[N] ,b[N]; int main() { int t = 0; …… 题解列表 2023年12月19日 0 点赞 0 评论 156 浏览 评分: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 评论 198 浏览 评分:0.0
题解 2847: 找第一个只出现一次的字符 摘要: #include using namespace std; const int N=100000; char a[N]; int cnt[26]; …… 题解列表 2023年12月19日 0 点赞 0 评论 247 浏览 评分:9.9
2846: 统计数字字符个数 摘要:``` #include using namespace std; int main(){ int cnt=0; string s; getline(cin,s); for(in…… 题解列表 2023年12月19日 0 点赞 0 评论 190 浏览 评分:0.0
JAVA题解2949-----oooooooo 摘要:解题思路:下标,累加注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2023年12月19日 0 点赞 0 评论 215 浏览 评分:0.0
2846: 统计数字字符个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=300;int main(){ int sum=0; str…… 题解列表 2023年12月19日 0 点赞 0 评论 162 浏览 评分:0.0
题解 2846: 统计数字字符个数 摘要: #include using namespace std; const int N=300; int cnt; string a; int m…… 题解列表 2023年12月19日 0 点赞 0 评论 258 浏览 评分:9.9
判断首尾,如果相等就不断递归,直至结束或者判断出来首尾大小 摘要:解题思路:因为题目中是连续子序列,所以两个循环确定头尾,如果头大于尾,则肯定交换后小于之前数。如:54321交换后为12345。但是我们会碰到头尾相等的。如14321,那就比较第二个和倒数第二个这里就…… 题解列表 2023年12月19日 0 点赞 0 评论 354 浏览 评分:6.0
有瑕疵请指出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char ch[3][1000],b[1000]; int i; for(i…… 题解列表 2023年12月19日 0 点赞 0 评论 138 浏览 评分:0.0
c语言亲和数 摘要:#include int main() { int a; int m,n; scanf("%d",&a); for(int i=0;i…… 题解列表 2023年12月19日 0 点赞 0 评论 181 浏览 评分:9.9