字符串内排序 vector 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符串变量,用于存储输入的一…… 题解列表 2024年12月09日 0 点赞 0 评论 104 浏览 评分:0.0
字符序列模式识别-题解(C++代码) 摘要:解题思路:首先注意本题的条件,1、子串大小为0<s<1000,那么两个串大小最大为999+999=1998,最小为1+1=2,再加上中间&字符,所以整个串长度为3<=s<=1999;2、第二个判断,如…… 题解列表 2024年12月09日 0 点赞 0 评论 105 浏览 评分:0.0
翁恺解题思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;int max=0;scanf("%d%d%d",&a,&b,&c);if(a>b){if(a…… 题解列表 2024年12月09日 3 点赞 0 评论 568 浏览 评分:0.0
哥德巴赫曾猜测 摘要:解题思路:isprime 函数用于判断一个整数是否为素数。 首先处理一些特殊情况,如果 n 小于等于 1 则不是素数,如果小于等于 3 则是素数,如果能被 2 或 3 整除也不是素数。 然后通过…… 题解列表 2024年12月09日 0 点赞 0 评论 282 浏览 评分:0.0
矩阵最大值 简单做法希望能帮到你 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量m和n,用于存储矩阵的行数和…… 题解列表 2024年12月09日 0 点赞 0 评论 149 浏览 评分:0.0
C语言 指针解决问题 练手 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main ( ){ int n=0 ,x=0 ,record=1 ; int a[10500]={0} ; …… 题解列表 2024年12月09日 0 点赞 0 评论 187 浏览 评分:0.0
最简单易懂的解法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m[200]; float t[200]; char c[100][100]; …… 题解列表 2024年12月09日 0 点赞 0 评论 198 浏览 评分:0.0
哥德巴赫曾猜测 单循环 搞定 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; bool f(int x){ // 如果x小于等于1,则不是素数(…… 题解列表 2024年12月09日 0 点赞 0 评论 242 浏览 评分:0.0
太Tm强了吧啊深V合格好大个很大干哈 摘要:解题思路:这段代码是一个简单的C++程序,用于从标准输入读取三个整数,并按照指定格式输出。下面是对代码的逐行分析:#include<iostream> 和 #include <iomanip>: 这…… 题解列表 2024年12月09日 0 点赞 0 评论 464 浏览 评分:0.0
2879: 错误探测 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main() { int i, j, n; //n为数组的阶数,i为行,j为列; int row…… 题解列表 2024年12月10日 1 点赞 0 评论 252 浏览 评分:0.0