Prime&&Kruscal算法解决最小生成树问题(C++) 摘要:解题思路:这道题,我使用了Prime算法解决,以下是我的总结。注意事项:二维数组不能开太大,1000足以,不然会爆掉参考代码:#include <bits/stdc++.h> #define max…… 题解列表 2022年12月26日 0 点赞 0 评论 451 浏览 评分:9.9
编写题解 1089: A+B for Input-Output Practice (V) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int a, i; int j, m; int sum = 0; int arr…… 题解列表 2022年12月26日 0 点赞 0 评论 219 浏览 评分:0.0
1092: A+B for Input-Output Practice 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int a, i; int j, m; int sum = 0; int arr…… 题解列表 2022年12月26日 0 点赞 0 评论 245 浏览 评分:0.0
字符串分类统计,用一下malloc吧 摘要:参考代码如下,解析写代码块里 #include #include #include int main(void) { char* p …… 题解列表 2022年12月27日 0 点赞 0 评论 568 浏览 评分:9.9
有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { float b=2,c=1,d,e,f=0; int a; scanf("%d",&a); for (floa…… 题解列表 2022年12月27日 0 点赞 0 评论 436 浏览 评分:0.0
最大公约数最小公倍数//辗转反除 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int a,b,c=1,d,e; scanf("%d%d",&a,&b); d=a*b; while(c!=0…… 题解列表 2022年12月27日 0 点赞 0 评论 233 浏览 评分:0.0
编写题解 1668: printf基础练习2(C语言) 摘要:解题思路:注意事项:%o表示八进制 %d表示十进制 %x表示十六进制参考代码:#include <stdio.h> int main () { int n; while (~scanf…… 题解列表 2022年12月27日 1 点赞 0 评论 518 浏览 评分:6.0
编写题解 1670: 拆分位数(C语言) 摘要:解题思路:int类型除某个数只取整数部分注意事项:%表示取余数参考代码://逆序输出这个三位数,输出个位、十位、百位,三个数字,用空格分开 #include <stdio.h> int main …… 题解列表 2022年12月27日 0 点赞 0 评论 352 浏览 评分:0.0
编写题解 1762: printf基础练习(C语言) 摘要:解题思路:注意事项:0%o表示八进制 0x%x表示16进制参考代码:#include <stdio.h> int main () { printf ("0%o 0x%x",1234567…… 题解列表 2022年12月27日 0 点赞 0 评论 722 浏览 评分:9.9
编写题解 1763: sizeof的大作用(超级简单) 摘要:解题思路:你应该不喜欢看解释注意事项:参考代码:#include <stdio.h> int main () { printf ("%d %d %d %d %d\n",sizeof (int)…… 题解列表 2022年12月27日 0 点赞 0 评论 283 浏览 评分:0.0