编写题解 2764: 带余除法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b; scanf("%d %d",&a,&b); printf("%d %d",…… 题解列表 2023年03月24日 0 点赞 0 评论 382 浏览 评分:0.0
解决蓝桥杯中的分糖果问题 摘要:参考代码:n=int(input()) m=list(map(int,input().split())) ans=0 #老师补发糖果的个数 while m.count(m[0]) != n: …… 题解列表 2023年03月24日 1 点赞 0 评论 476 浏览 评分:9.9
编写题解 2765: 计算分数的浮点数值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); double c=(double…… 题解列表 2023年03月24日 0 点赞 0 评论 351 浏览 评分:0.0
求小数的末尾3位 摘要:需要明确一点就是:无论a的多少次幂,都是末尾的数先乘以a再考虑向前进位,因此本题直接考虑每次幂的末尾3位,将每次的末尾3位乘以a循环进行b次#include<stdio.h> int main(vo…… 题解列表 2023年03月24日 0 点赞 0 评论 386 浏览 评分: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 评论 426 浏览 评分: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 评论 379 浏览 评分: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 评论 366 浏览 评分:0.0
分数求和递归解法(C++) 摘要:参考代码:#include <iostream> using namespace std; void getSum(int n,int up, int down); int main() …… 题解列表 2023年03月24日 0 点赞 0 评论 525 浏览 评分:9.9
编写题解 1003: [编程入门]密码破译 摘要:#include<stdio.h> //字符数组 int main() { char ch[] = { "China" }; for (int i = 0; i < 5; i++) …… 题解列表 2023年03月24日 0 点赞 0 评论 272 浏览 评分:0.0
字符串--4.石头剪刀布 摘要:解题思路: 用空格分离字符,想到用scanf("%s %s",a,b);注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { …… 题解列表 2023年03月24日 2 点赞 1 评论 505 浏览 评分:9.9