编写题解 1120: C语言训练-"水仙花数"问题2 摘要:#include<stdio.h>int main(){ for(int i=100; i< 1000;i++) //三位数的范围 { int a, b, c; a = i % 10; …… 题解列表 2022年01月25日 0 点赞 0 评论 621 浏览 评分:0.0
[编程入门]自定义函数处理最大公约数与最小公倍数-题解(python代码) 摘要:解题思路: 定义函数输出两个数的最大公约数和最小公倍数,利用复合赋值或函数递归求出最大公约数,然后利用两数乘积再求出最小公倍数。注意事项: 参考代码:a, b = map(int, inp…… 题解列表 2022年01月25日 0 点赞 0 评论 722 浏览 评分:0.0
优质题解 路径之谜(迷宫问题 DFS 每步详细解答) ||(x-1,y)|||------------|------------|------------||(x,y-1)|**(x,y)**|(x,y+1)|||(x+1,y)||```cpp#includeusingnamespacestd;intn;inta[20], 题解列表 2022年01月25日 0 点赞 2 评论 1392 浏览 评分:9.9
[编程入门]数字逆序输出-题解(python代码) 摘要:解题思路: 将输入的数放入列表中,然后用reverse函数将列表中的数进行倒序。注意事项:参考代码:lst = list(map(int, input().split()))lst.revers…… 题解列表 2022年01月25日 0 点赞 0 评论 618 浏览 评分:0.0
写题解 1119: C语言训练-"水仙花数"问题1 摘要:#include<stdio.h>int main(){ int num; scanf("%d",&num);int a, b, c; a = num % 10; //取个位的数字 b…… 题解列表 2022年01月25日 0 点赞 0 评论 569 浏览 评分:0.0
A+B for Input-Output Practice (IV)C语言优质题解 摘要:解题思路:#include <stdio.h>#include <malloc.h>int main(){ int x; while(scanf("%d",&x)!=EOF) { if(x==0) …… 题解列表 2022年01月25日 0 点赞 0 评论 499 浏览 评分:0.0
[编程入门]数组插入处理-题解(python代码) 摘要:解题思路: 将已正序排列的数和单独输入的数放入一个列表中,用sort排序后输入即可。注意事项:参考代码:lst = list(map(int, input().split()))n = int(…… 题解列表 2022年01月25日 0 点赞 0 评论 571 浏览 评分:0.0
Benajm1n:蓝桥杯2018年第九届真题-次数差(Java代码) 摘要:参考代码:import java.util.*; public class Main { public static void main(String[] args) { Scan…… 题解列表 2022年01月25日 0 点赞 0 评论 463 浏览 评分:9.9
2194: 蓝桥杯2018年第九届真题-递增三元组 摘要:解题思路:注意事项:参考代码:n = int(input()) a=list(map(int,input().split())) b=list(map(int,input().split())) …… 题解列表 2022年01月25日 0 点赞 1 评论 608 浏览 评分:9.9
[编程入门]结构体之时间设计(C++实现)含解题思路 解题思路分为4步:1.定义装有年月日的结构体2.定义判断是否为闰年的函数3.定义每个月天数的查询表4.定义主函数计算天数```cpp#include#includeusingnamespacestd;structtime_ymd{intyear;intmonth;intday;};boolis_lea 题解列表 2022年01月25日 0 点赞 0 评论 578 浏览 评分:0.0