自定义函数处理最大公约数与最小公倍数 【10行代码 简单易懂】(有解释) 摘要:整体代码答案: ```python a,b=map(int,input().strip().split()) def gcd(a,b): if(b!=0): retu…… 题解列表 2023年01月15日 0 点赞 0 评论 353 浏览 评分:8.0
水仙花数字while循环(C语言) 摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "math.h"int main(){ int i=2; while (i < 1000) { if ((p…… 题解列表 2023年01月15日 0 点赞 0 评论 406 浏览 评分:9.9
不能四舍五入,所以要用点小技巧 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,t; double m; cin >> n >>…… 题解列表 2023年01月14日 0 点赞 0 评论 324 浏览 评分:0.0
注意空格,好事多磨吧 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout << " " << "Nine-by-nine Multi…… 题解列表 2023年01月14日 0 点赞 0 评论 310 浏览 评分:0.0
1094: 字符串的输入输出处理 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): print(input(),end='\n\n')while True: t…… 题解列表 2023年01月14日 0 点赞 0 评论 682 浏览 评分:8.4
基础算法,循环方法求解 奇偶性求解分开循环 摘要:解题思路:循环方式求解问题,通过半数 来求解注意事项 奇偶性质参考代码:#include<stdio.h>int main(){ int n,i,a; scanf("%d",&n); if(n%…… 题解列表 2023年01月14日 0 点赞 0 评论 388 浏览 评分:0.0
题解:蓝桥杯2020年第十一届省赛真题-成绩分析 摘要:#### 简单思路:使用整数`mx=0`筛选`n`个数中的最大值,`mn=100`筛选出`n`个数中的最小值,浮点数`avg=0`累加`n`个数的和 ##### 注意事项:求最大值,初始值设定为…… 题解列表 2023年01月14日 0 点赞 0 评论 417 浏览 评分:9.0
循环方法解题,笨方法基础算法 摘要:解题思路:循环注意事项:因为是10^18所以用long代替int参考代码:#include<stdio.h>int main(){ long a,b,n; int i,c; scanf("%ld…… 题解列表 2023年01月14日 0 点赞 0 评论 353 浏览 评分:0.0
三角形判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a+b>…… 题解列表 2023年01月14日 0 点赞 0 评论 1256 浏览 评分:9.9
去掉空格C语言 摘要:解题思路:误打误撞,代码小白,望大神在评论区指点一二注意事项:参考代码:#include<stdio.h>int main(){ char d[81]; while(gets(…… 题解列表 2023年01月14日 0 点赞 0 评论 285 浏览 评分:0.0