编写题解 1029: [编程入门]自定义函数处理素数 摘要:# 编写题解 1029: [编程入门]自定义函数处理素数 **https://www.dotcpp.com/oj/problem1029.html** ## 解题思路 1. 素数…… 题解列表 2022年03月26日 0 点赞 0 评论 463 浏览 评分:0.0
编写题解 1028: [编程入门]自定义函数求一元二次方程 摘要:## 1028: [编程入门]自定义函数求一元二次方程 https://www.dotcpp.com/oj/problem1028.html ## 解题思路 ax*x+b*x+c=0这个…… 题解列表 2022年03月26日 0 点赞 0 评论 389 浏览 评分:0.0
利用最大公因数来求解 摘要:解题思路:注意事项:参考代码:# 求最大公因数 def cal(temp_1, temp_2): if(temp_1 == temp_2): return(temp_1)…… 题解列表 2022年03月26日 0 点赞 0 评论 324 浏览 评分:0.0
C++代码简便 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int H = 0, M = 0, S = 0; int t; c…… 题解列表 2022年03月26日 0 点赞 0 评论 234 浏览 评分:0.0
矩形面积交 摘要:解题思路:注意事项:import java.util.Scanner; public class Main { public static void main(String[] arg…… 题解列表 2022年03月26日 0 点赞 0 评论 284 浏览 评分:0.0
1119水仙花数求解 摘要:解题思路:有点复杂,但比较基础,就是用每个位数的立方来写!注意事项:参考代码:#include<stdio.h>int main(){ int i,j; scanf("%d",&i); …… 题解列表 2022年03月26日 0 点赞 0 评论 355 浏览 评分:0.0
1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:kan注意事项: int nNum1 = m ;//中间变量:保存m int nNum2 = n ;//中间变量:保存n参考代码:int t = 1 ;//取余计算的余数,赋值为1是为…… 题解列表 2022年03月26日 0 点赞 0 评论 387 浏览 评分:9.9
蓝桥杯算法训练VIP-完数-题解(C语言代码) 摘要:解题思路: 所输入的数能够被整除即为因子,把所有因子记录下来,之后相加判断是否等于所输入的数即可。注意事项:因子不包含所输入的数本身。参考代码:#include<stdio.h>int main(){…… 题解列表 2022年03月26日 0 点赞 0 评论 684 浏览 评分:9.9
蓝桥杯算法训练VIP-黑色星期五(不使用日期库) 摘要:# 思路 ①第一步先写一个函数判断某年是否是闰年或者平年,闰年(366天)判断是年份能被4整除且不能被100整除,或者直接能被400整除(y%4==0 and y%100 !=0 or y%40…… 题解列表 2022年03月26日 0 点赞 0 评论 595 浏览 评分:9.9
24行 63ms 蓝桥杯算法提高VIP-身份证排序 摘要:解题思路:一看数量较大就毫不犹豫选择sort.注意事项:不要用二维数组,不好写sort的比较函数参考代码:#include<stdio.h>#include<string.h>#include<alg…… 题解列表 2022年03月26日 0 点赞 0 评论 517 浏览 评分:9.2