2875: 回文子串 摘要:解题思路:注意事项:参考代码:#include <stdlib.h> #include <stdio.h> #include <iostream> #include <string.h> us…… 题解列表 2024年08月23日 0 点赞 0 评论 135 浏览 评分:9.9
白细胞计数 学习新函数 摘要:解题思路:利用冒泡排序,直接从小到大排好数组顺序(或者利用algorithm库的sort函数排序)再利用cmath库求绝对值和较大的数省去重复利用if-else函数,使代码更简洁客观参考代码:int …… 题解列表 2024年08月23日 0 点赞 0 评论 202 浏览 评分:9.9
菜鸟编程,高手勿看 摘要:解题思路:利用while 循环来进行元素逆置注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[10]; for (…… 题解列表 2024年08月23日 0 点赞 0 评论 222 浏览 评分:9.9
1011: [编程入门]最大公约数与最小公倍数 摘要:参考代码:#include<bits/stdc++.h>using namespace std;typedef int ll;ll n,m;int main(){ cin>>n>>m; int mx=…… 题解列表 2024年08月24日 0 点赞 1 评论 260 浏览 评分:9.9
红红火火恍恍惚惚或或或或或或或或或或或或或或或或或或或或或或或 摘要:解题思路:注意事项:1492(题号)参考代码:#include<iostream>#include<cstring>using namespace std;int tag[10][10],d[10],…… 题解列表 2024年08月24日 0 点赞 0 评论 233 浏览 评分:9.9
909090909090909090909090909 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<queue>using namespace std;const int n=10;int a[n+5][n+5];i…… 题解列表 2024年08月24日 0 点赞 0 评论 150 浏览 评分:9.9
909090909090909090909090909 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[15][15],c=0;void f(int x,int y){ if(…… 题解列表 2024年08月24日 0 点赞 0 评论 145 浏览 评分:9.9
筛选N以内的素数 摘要:题目让筛选素数,首先我们先了解一下什么是素数?简而言之素数就是不能被除1和他本身之外整除的数。那么思路就比较清楚了,我们让N以内所有的数都对小于他的数取余,只要有取余等于零的,说明他就可以被别的数整除…… 题解列表 2024年08月24日 0 点赞 0 评论 215 浏览 评分:9.9
编写题解 1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; long long a=1; scanf("%d",&n); for(i…… 题解列表 2024年08月25日 0 点赞 0 评论 213 浏览 评分:9.9
2896: 二维数组右上左下遍历 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <iostream> using namespace std; …… 题解列表 2024年08月27日 0 点赞 0 评论 180 浏览 评分:9.9