简单思路清晰的C语言解题过程 摘要:解题思路:首先,要分解成质因数有两个判断条件1、判断质数2、不断更新被除数但是,题目里有一个细节,就是说,分解的质数,是按大小顺序来排序的,是从小到大的,所以,有需要一个额外的排序操作所以,我们可以把…… 题解列表 2021年04月10日 0 点赞 0 评论 508 浏览 评分:0.0
乘积最大 (java) 摘要:解题思路:注意事项:参考代码:import java.util.ArrayList; import java.util.List; import java.util.Scanner; pub…… 题解列表 2021年04月10日 0 点赞 0 评论 515 浏览 评分:0.0
干净的解法 摘要:解题思路:python中有转换大小写的函数:upper()----所有字母大写;lower()----所有字母小写 注意事项:参考代码:st=input() …… 题解列表 2021年04月10日 0 点赞 0 评论 754 浏览 评分:0.0
干净的解法 摘要:解题思路:注意事项:参考代码:int_count = 0str_count = 0a = input(str())for i in a: if i.isdigit(): int_count +…… 题解列表 2021年04月10日 0 点赞 0 评论 461 浏览 评分:0.0
,,,,,。。。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>void fun(int a,int b){ int i,j,…… 题解列表 2021年04月10日 0 点赞 0 评论 657 浏览 评分:0.0
字符串对比。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h>int main(){ c…… 题解列表 2021年04月10日 0 点赞 0 评论 408 浏览 评分:0.0
日期的计算 摘要:解题思路:利用类进行处理;注意事项:平年、闰年的判断。参考代码:#include<iostream> class Time { private:int year, month, day; p…… 题解列表 2021年04月10日 0 点赞 0 评论 380 浏览 评分:0.0
C++最小生成树+并查集 摘要:解题思路:虚拟点0点,当码头只有一个时最后减掉,其他就是最小生成树和并查集注意事项:可以挣钱的路不管树通不通都加参考代码:#include<iostream> #include<vector> #…… 题解列表 2021年04月10日 0 点赞 0 评论 877 浏览 评分:0.0
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:用bool函数注意事项:一定要写 double area = sqrt(s * (s - a) * (s - b) * (s - c));不然就是求半周长了参考代码:#include<bi…… 题解列表 2021年04月10日 0 点赞 0 评论 516 浏览 评分:0.0
1039: [编程入门]宏定义之闰年判断 摘要:#include<iostream>using namespace std;bool isleap(int n){ if((n % 4 == 0 && n % 100 != 0) || n % 400…… 题解列表 2021年04月10日 0 点赞 0 评论 546 浏览 评分:0.0