1635 这才是好方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n,c,d; while(scanf("%d",&n)!=EOF){ b=0; …… 题解列表 2021年11月18日 0 点赞 0 评论 469 浏览 评分:0.0
编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <malloc.h> typedef struct student { double number; …… 题解列表 2021年11月18日 0 点赞 0 评论 403 浏览 评分:0.0
1979,好懂的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,n,c,d;while(scanf("%d",&n)!=EOF){ b=0;c=n; …… 题解列表 2021年11月18日 0 点赞 0 评论 723 浏览 评分:0.0
最大公约数与最小公倍公倍数 C语言 摘要:解题思路:辗转相除法求出最小公约数,最小公倍数等于两数乘积/最小公约数。注意事项:参考代码:#include <stdio.h>int main(){ int x, y, a, b, x1, x2; …… 题解列表 2021年11月18日 0 点赞 0 评论 467 浏览 评分:0.0
水仙数求和 摘要:解题思路:注意事项:参考代码:for i in range(100,1000): sn = 0 for j in str(i): j=int(j) sn += …… 题解列表 2021年11月18日 0 点赞 0 评论 402 浏览 评分:0.0
排序(C语言自己的排序函数) 摘要: #include #include //C语言自己的排序函数为qsort(),内部运用的是快速排序机制 int comp(const void *a,co…… 题解列表 2021年11月18日 0 点赞 0 评论 584 浏览 评分:0.0
1000: [竞赛入门]简单的a+b C写法 摘要:解题思路:先定义两个变量,然后通过键盘输出scanf来输出自定数值,可以用while循环多次实验注意事项:参考代码:#include<stdio.h> …… 题解列表 2021年11月19日 0 点赞 0 评论 462 浏览 评分:0.0
1470: 蓝桥杯基础练习VIP-时间转换 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2021年11月19日 0 点赞 0 评论 438 浏览 评分:0.0
字符逆序c语言代码家谱 摘要:解题思路:注意事项:注意输出时i的最大值参考代码:#includeint main(){ char c,a[100]; int i=0,t; while((c=getchar())!=EOF…… 题解列表 2021年11月19日 0 点赞 0 评论 814 浏览 评分:0.0
1454: 蓝桥杯历届试题-蚂蚁感冒 C++ 摘要:解题思路:1.蚂蚁是相同的,碰面时可以看作只传染了感冒,没有反向而是继续向前走。2.当q[0]>0时,如果它的右边的蚂蚁向左走(q[i]<0&&fabs(a[i])>q[0]),即一定会与q[0]相遇…… 题解列表 2021年11月20日 0 点赞 0 评论 691 浏览 评分:0.0