高精度加法(简单版) 摘要:解题思路:用数组用数组用数组(重要的事情说三遍)注意事项:注意进位和逆序输入输出参考代码:#include<stdio.h>#include<string…… 题解列表 2022年11月19日 1 点赞 0 评论 587 浏览 评分:9.9
C语言 带参数宏定义练习& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define exchange(a,b) int t;t = a; a = b; b = tint main(){ i…… 题解列表 2022年11月18日 0 点赞 0 评论 507 浏览 评分:0.0
编写题解 2828: 与7无关的数(c语言 摘要:解题思路:一个正整数,如果它能被7整除,或者它的十进制表示法中某一位上的数字为7,则称其为与7相关的数。现求所有小于等于n(n < 100)的与7无关的正整数的平方和。注意事项:①不能被7整除 …… 题解列表 2022年11月17日 1 点赞 2 评论 1378 浏览 评分:8.0
动态规划—01背包复习 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define max(x,y) x>y?x:y int v[60] = { 0 };//物品价值 int w[60] = …… 题解列表 2022年11月17日 0 点赞 0 评论 631 浏览 评分:0.0
2903: 不高兴的津津 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int day; int arr1[8]={0}; int arr2[8]={0};//两个数组来装数…… 题解列表 2022年11月17日 0 点赞 0 评论 551 浏览 评分:0.0
输出格式要是%f型不能是整型,%20就是float型 摘要:解题思路:输出格式要是%f型不能是整型,%20就是float型注意事项:输出单位参考代码:#include <stdio.h>int main(){int b,c,d;//a=b作业20,c小测30,…… 题解列表 2022年11月17日 0 点赞 0 评论 641 浏览 评分:8.0
2901: 查找特定的值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; scanf("%d",&n);//输入 int arr[10001]={0}…… 题解列表 2022年11月17日 0 点赞 0 评论 508 浏览 评分:0.0
计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; int sum=0; scanf("%d %d",&n,&m); in…… 题解列表 2022年11月17日 0 点赞 0 评论 712 浏览 评分:6.7
C语言 自定义函数之字符类型统计& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define Long 40int main(){ void scanf_s…… 题解列表 2022年11月17日 0 点赞 0 评论 493 浏览 评分:0.0
C语言dp小白一个 下面推导一下最大值的情况,最小值同理intmax(inta,intb){returna>b?a:b;}intmin(inta, 题解列表 2022年11月17日 0 点赞 0 评论 704 浏览 评分:9.9