校门外的树-题解(Java代码) 摘要:解题思路:运用数组来标识树的存在与否注意事项:注意两端都有一棵树,实际树的数量是输入道路长度+1参考代码:import java.util.Arrays;import java.io.Buffered…… 题解列表 2020年12月01日 0 点赞 0 评论 618 浏览 评分:5.0
huiwenshupanduan 摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "string.h"int PANDUAN(char s[100]) { int h = strlen(s); fo…… 题解列表 2021年08月20日 0 点赞 0 评论 256 浏览 评分:5.0
什么是宏定义?反正这样可以写 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main () { int a,b; scanf("%d%d",&a,&b); printf("%d…… 题解列表 2021年11月11日 0 点赞 0 评论 318 浏览 评分:5.0
c++分段函数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double x; cin>>x; if(x<0){ pr…… 题解列表 2021年11月13日 0 点赞 0 评论 539 浏览 评分:5.0
找规律再求和 摘要:解题思路:发现他跟斐波那契数列有关,先斐波那契数列再调用注意事项:参考代码:#include<stdio.h>int fabonacia(int n){ if(n==1||n==2) return 1…… 题解列表 2021年11月28日 0 点赞 0 评论 347 浏览 评分:5.0
编写题解 1157: 亲和数,自定义函数 摘要:解题思路:注意事项:参考代码:def snum(a): # 定义一个函数,返回数的所有真因数的和 s = 0 for …… 题解列表 2021年12月19日 0 点赞 0 评论 334 浏览 评分:5.0
BigInteger 的快速幂函数modpow()和算法解决 摘要:解题思路:注意事项:参考代码:BigInteger的快速幂函数:import java.math.BigInteger;import java.util.*;public class Main{ …… 题解列表 2022年01月28日 0 点赞 0 评论 923 浏览 评分:5.0
蓝桥杯2020年第十一届国赛真题-循环小数python解法 摘要:解题思路:注意事项:参考代码:p,q = map(int,input().split())a = int(input())a = int(a/(10**q) * 10**q - int(a/(10**…… 题解列表 2022年02月15日 0 点赞 0 评论 499 浏览 评分:5.0
数组排序(垃圾题目,这都能花了我两个小时) 摘要:解题思路: 垃圾题目,这都能花了我两个小时注意事项:参考代码:#include<stdio.h>int main(){ int flag=1,a[10000],t,n,…… 题解列表 2022年03月10日 0 点赞 0 评论 483 浏览 评分:5.0
水题【C++】 摘要:```cpp #include using namespace std; int main(){ string s1; cin >> s1; for(int…… 题解列表 2022年03月25日 0 点赞 0 评论 396 浏览 评分:5.0