屎盆子镶金边教程!!!!! 摘要:#include <stdio.h>#include <string.h>int main() { char part1[] = "Hello "; // 前一段字母,注意这里有个空格 …… 题解列表 2024年11月12日 0 点赞 1 评论 120 浏览 评分:9.9
1207: 字符排列问题(排列组合的思想,合理利用全排列) 摘要:对于该题,通过排列组合的方法简单易懂注意:对于n个数的全排列的最多种类即为n!(n的阶乘)因为给出的数据有重复的字母,而重复的字母会对全排列的种类有影响思路: 以本题所给数据为例:输入四个字…… 题解列表 2024年11月12日 0 点赞 0 评论 326 浏览 评分:9.9
回文子串(三层嵌套循环复杂解法) 摘要:解题思路:从2个到整个为一对来对字符串进行检查;注意事项:各变量关系复杂,需花一定时间仔细琢磨;参考代码:一遍过真爽ヽ( ̄▽ ̄)ノ#include<stdio.h> #include<string.…… 题解列表 2024年11月13日 0 点赞 0 评论 185 浏览 评分:9.9
线段(贪心) 摘要: #include using namespace std; const int N=1e6+10; struct node{ int…… 题解列表 2024年11月13日 0 点赞 0 评论 224 浏览 评分:9.9
简单算法,易理解 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split()))c=a[0]d=a[1]t=0while d%c!=0: t=d%c c=d d=tpr…… 题解列表 2024年11月13日 2 点赞 0 评论 257 浏览 评分:9.9
建立数组用冒泡排序求解(可扩展) 摘要:解题思路:冒泡排序注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[3]; cin>>a[0]>>a[1]…… 题解列表 2024年11月14日 0 点赞 0 评论 473 浏览 评分:9.9
【计算两点间的距离】 (Java代码易懂) 摘要:注意事项:勾股定理a^2 + b^2 = c^2 参考代码: ```java import java.util.Scanner; public class Main { public…… 题解列表 2024年11月14日 0 点赞 0 评论 158 浏览 评分:9.9
用二叉树的思想进行减枝 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int asd(int a);int main(){ int m,a,b,i,j,e=0; scanf(…… 题解列表 2024年11月14日 1 点赞 1 评论 259 浏览 评分:9.9
编写题解 2909: 直方图 摘要:解题思路:写代码里了注意事项:写代码里了参考代码:#include<stdio.h>int main(){ int n,s=-1,i; scanf("%d",&n); int num…… 题解列表 2024年11月14日 0 点赞 0 评论 189 浏览 评分:9.9
偷老师的思路,再稍微修改一下 摘要:解题思路:一直存值到别的数就行了注意事项:参考代码:#include <stdio.h>//一直把数据存放到别的数中 int main() { double n,a=2,i,s=2,b=1.0,t; …… 题解列表 2024年11月14日 1 点赞 1 评论 422 浏览 评分:9.9