题解列表

筛选

校门外的树-题解(Java代码)

摘要:解题思路:运用数组来标识树的存在与否注意事项:注意两端都有一棵树,实际树的数量是输入道路长度+1参考代码:import java.util.Arrays;import java.io.Buffered……

huiwenshupanduan

摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "string.h"int PANDUAN(char s[100]) { int h = strlen(s); fo……

c++分段函数

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double x; cin>>x; if(x<0){ pr……

找规律再求和

摘要:解题思路:发现他跟斐波那契数列有关,先斐波那契数列再调用注意事项:参考代码:#include<stdio.h>int fabonacia(int n){ if(n==1||n==2) return 1……

编写题解 1157: 亲和数,自定义函数

摘要:解题思路:注意事项:参考代码:def snum(a):                                    # 定义一个函数,返回数的所有真因数的和    s = 0    for ……

水题【C++】

摘要:```cpp #include using namespace std; int main(){ string s1; cin >> s1; for(int……