编写题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a; scanf("%lf",&a); prin…… 题解列表 2023年03月24日 0 点赞 0 评论 535 浏览 评分:9.9
编写题解 2778: 判断数正负 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N; scanf("%d",&N); if(N>0) { prin…… 题解列表 2023年03月24日 0 点赞 0 评论 210 浏览 评分:0.0
编写题解 2764: 带余除法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b; scanf("%d %d",&a,&b); printf("%d %d",…… 题解列表 2023年03月24日 0 点赞 0 评论 264 浏览 评分:0.0
解决蓝桥杯中的分糖果问题 摘要:参考代码:n=int(input()) m=list(map(int,input().split())) ans=0 #老师补发糖果的个数 while m.count(m[0]) != n: …… 题解列表 2023年03月24日 1 点赞 0 评论 373 浏览 评分:9.9
编写题解 2765: 计算分数的浮点数值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); double c=(double…… 题解列表 2023年03月24日 0 点赞 0 评论 236 浏览 评分:0.0
求小数的末尾3位 摘要:需要明确一点就是:无论a的多少次幂,都是末尾的数先乘以a再考虑向前进位,因此本题直接考虑每次幂的末尾3位,将每次的末尾3位乘以a循环进行b次#include<stdio.h> int main(vo…… 题解列表 2023年03月24日 0 点赞 0 评论 265 浏览 评分:2.0
最小公倍数——辗转法 摘要:解题思路:辗转相除法注意事项:参考代码:a,b = map(int,input().split())c,d = a,bif a>b: a,b = b,ar = a%b while r !=0: …… 题解列表 2023年03月24日 0 点赞 0 评论 241 浏览 评分:0.0
编写题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ unsigned int a,b; scanf("%d %d",&a,&b); printf(…… 题解列表 2023年03月24日 0 点赞 0 评论 295 浏览 评分:8.9
LikeWater - 1097: 蛇行矩阵 摘要:```cpp #include using namespace std; #define Max 101 int num[Max]={0}; void Initlize(int ro…… 题解列表 2023年03月24日 0 点赞 0 评论 232 浏览 评分:0.0
分数求和递归解法(C++) 摘要:参考代码:#include <iostream> using namespace std; void getSum(int n,int up, int down); int main() …… 题解列表 2023年03月24日 0 点赞 0 评论 356 浏览 评分:9.9