题解列表
屎盆子镶金边教程!!!!!
摘要:#include <stdio.h>#include <string.h>int main() { char part1[] = "Hello "; // 前一段字母,注意这里有个空格 ……
1207: 字符排列问题(排列组合的思想,合理利用全排列)
摘要:对于该题,通过排列组合的方法简单易懂注意:对于n个数的全排列的最多种类即为n!(n的阶乘)因为给出的数据有重复的字母,而重复的字母会对全排列的种类有影响思路: 以本题所给数据为例:输入四个字……
回文子串(三层嵌套循环复杂解法)
摘要:解题思路:从2个到整个为一对来对字符串进行检查;注意事项:各变量关系复杂,需花一定时间仔细琢磨;参考代码:一遍过真爽ヽ( ̄▽ ̄)ノ#include<stdio.h>
#include<string.……
建立数组用冒泡排序求解(可扩展)
摘要:解题思路:冒泡排序注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[3]; cin>>a[0]>>a[1]……
【计算两点间的距离】 (Java代码易懂)
摘要:注意事项:勾股定理a^2 + b^2 = c^2
参考代码:
```java
import java.util.Scanner;
public class Main {
public……
用二叉树的思想进行减枝
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int asd(int a);int main(){ int m,a,b,i,j,e=0; scanf(……
编写题解 2909: 直方图
摘要:解题思路:写代码里了注意事项:写代码里了参考代码:#include<stdio.h>int main(){ int n,s=-1,i; scanf("%d",&n); int num……