题解列表

筛选

Hello, world!【easy!】

摘要:解题思路:注意事项:while(~scanf("%d",&num[i])&&num[i]!='\n')//连续输入,注意是遇到'\n'就停止输入参考代码:#includ……

1164: 数组的距离

摘要:解题思路:没想到暴力破解直接过了,两个数组每个数都减一遍最后输出最小的注意事项:参考代码:#include<bits/stdc++.h> using namespace std; bool big……

绝对值排序

摘要:解题思路:  分为三步走:1、先将负数变为正,2、冒泡排序,3、还原负数注意事项:参考代码:#include "stdio.h"int main() { int n, a[100], b, i, j,……

代码不长,新手易懂

摘要:解题思路:遍历排列组合,确定条件注意事项:如下新手求好评参考代码:#include<iostream>using namespace std;  int main()               { ……

C++推导通项公式

摘要:解题思路:注意事项:       推导一下通项公式An=1/1+An-1简化一下计算参考代码:#include<iostream>#include<cstdio>using namespace std……

二级C语言-同因查找

摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fcat(int n) {//实现阶乘 double sum = 1; for (int i = 2; i <= n; i……

暴力枚举每一天

摘要: `import java.util.Scanner; public class 回文日期 { static int days[]= {0,31,28,31,30,31,30,31,3……