1011: [编程入门]最大公约数与最小公倍数 解题思路:根据最大公约数和最小公倍数之积为两数之积这里原理,可以先求两者其中一个即可,故本题可利用求最大公约数间接得最小公倍数。注意事项:文字部分用于代码唯美,可删除用于提交作业/参考代码:#includeintmain(){inta, 题解列表 2024年03月10日 0 点赞 0 评论 503 浏览 评分:9.9
不知道为什么其他语言错一个 摘要:参考代码:#include <stdio.h> #define MAX_N 3500 #define MAX_M 12880 int max(int a, int b) { r…… 题解列表 2024年03月10日 0 点赞 0 评论 626 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-修剪灌木 摘要:解题思路:注意事项:参考代码:#include <stdio.h>long long max(int a,int b){ if(a>b) return a; else return b;}int ma…… 题解列表 2024年03月10日 0 点赞 0 评论 457 浏览 评分:0.0
: 蓝桥杯2022年第十三届省赛真题-刷题统计——C代码(超短) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ long long a,n,sum=0,b,i=1; …… 题解列表 2024年03月10日 0 点赞 0 评论 553 浏览 评分:0.0
自定义字符类型统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void tongji(char a[1000], int *letter, int *num…… 题解列表 2024年03月10日 0 点赞 0 评论 412 浏览 评分:0.0
c语言阶乘数列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double i=1; double sum=0.0; for(i=1;i<=30;i+…… 题解列表 2024年03月10日 0 点赞 0 评论 795 浏览 评分:0.0
WB的解题思路 摘要:#include<stdio.h>int main(){ int n; scanf("%d",&n); int count=n; int arr[n]; int …… 题解列表 2024年03月10日 0 点赞 0 评论 467 浏览 评分:0.0
成绩判定(数组和分支的结合) 摘要:#include <stdio.h>int main(){ int cj; scanf("%d",&cj); int x; x=cj/10-6; char…… 题解列表 2024年03月10日 0 点赞 0 评论 986 浏览 评分:0.0
N以内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,count; scanf("%d",&n); for(i=1;i<n;i++) …… 题解列表 2024年03月09日 0 点赞 0 评论 489 浏览 评分:9.9
Jayden-[解释通俗易懂,一看就会! ] 短信计费 摘要:解题思路: 每条短信小于等于70字,按每条短信0.1元计费; 每条短信大于70,每70字计费0.1元,剩下小于70的部分也是0.1元计费。注意事项: 调用co…… 题解列表 2024年03月09日 0 点赞 1 评论 673 浏览 评分:9.9