题解列表

筛选

单词排序(Java)

摘要:解题思路:先以空格分隔字符串,转为数组,接着去除多余空格,排序·然后去除重复单词注意事项:一直通过不了但没找出问题,求助!!!参考代码:import java.util.Arrays;import j……

2873: 字符串p型编码

摘要:解题思路: 遍历遍历过程中,判断当前字符str[i]是否与下一个字符str[i + 1]相同。如果相同,表示当前字符连续出现,将计数器count加1。如果不相同,表示当前字符不再连续出现,将当前计数值……

感谢支持,谢谢你们的支持

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    int k, a = 1, b = 1, c = 1;    ……

2835: 计算书费

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;  double a[10]= { 28.9,32.7,45.6,78,35,86……

2821: 开关灯

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){    int n,m;  ……

C语言解组合的输出

摘要:解题思路:注意事项:注意输出格式参考代码:#include <stdio.h>#include <stdbool.h>int n,r;bool judge[25];int b[25];void arr……

2881: 图像相似度

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[100][100];int b[100][100];int main(……

闲来无事的题解

摘要:解题思路:注意事项:参考代码:long long a,b;   //长整形(100000000000000000000-(-100000000000000000000))int a,b;  //普通整……