编写题解 1119: C语言训练-"水仙花数"问题1(循环解决) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,c=0; scanf("%d", &n); int t = n; while (n != 0) …… 题解列表 2024年03月06日 1 点赞 0 评论 540 浏览 评分:10.0
冒泡排序思想,直接比较大小 摘要:解题思路:使用冒泡排序思想,直接用strcmp()函数比较字符串大小即可参考代码:#include<stdio.h> #include<string.h> int main(){ char a…… 题解列表 2024年03月06日 0 点赞 0 评论 170 浏览 评分:0.0
蓝桥杯2023年第十四届省赛真题-更小的数(C++解法) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> using namespace std; int length(string s) { …… 题解列表 2024年03月06日 0 点赞 1 评论 346 浏览 评分:7.3
遍历直接秒 摘要:解题思路:你可能被题目吓到,题目要求 '?' 可以被随时替代,那也就是说明:'00、11、0?、1?、?1、?0、??'都是正确的,那我们只需要进行步长为2的遍历,对满…… 题解列表 2024年03月06日 0 点赞 4 评论 792 浏览 评分:9.9
计算一个整数N的阶乘-python 摘要:解题思路:递归解法,注意n=0的情况,阶乘也是1.注意事项:参考代码:def factorial(n): if n == 0: return 1 elif n =…… 题解列表 2024年03月06日 0 点赞 0 评论 212 浏览 评分:0.0
巨大的数 C语言 百分百通过 摘要:解题思路: 题目要求多个ai相乘结果的个位数字是多少。 据此我们可以发现只有ai的个位数才能够影响结果。因而我们可以使用一个整形变量res来保存结果,进行n次循环,每次循环…… 题解列表 2024年03月06日 0 点赞 0 评论 263 浏览 评分:9.9
自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:void root1(float a, float b, float delta){ float m1=-(b/2/a); float m2= (pow(de…… 题解列表 2024年03月07日 0 点赞 0 评论 183 浏览 评分:0.0
过滤多余的空格 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; getline(cin,s); stri…… 题解列表 2024年03月07日 0 点赞 0 评论 326 浏览 评分:0.0
小心:一系列整数可能会有相同的数 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <vector>using namespace std;struct tr…… 题解列表 2024年03月07日 0 点赞 0 评论 232 浏览 评分:0.0