二级C语言-分段函数 摘要:解题思路:注意事项:注意要用double参考代码:#include<stdio.h>#include<math.h>double fun(double x){ if(x<0) { return fa…… 题解列表 2022年12月18日 0 点赞 1 评论 446 浏览 评分:9.9
优质题解 完全背包问题(动态规划,超级详细,保证教会,同时与背包问题做对比) 摘要: 前言:我们这里的背包问题与完全背包问题的最大不同点是可否重复投放相同的物品,而我们这里完全背包问题解除了这个限制,所以我们要对背包问题进行进一步的改进,从而完成问题,背包问题我也写了题解,感兴趣的…… 题解列表 2022年12月18日 0 点赞 1 评论 662 浏览 评分:9.9
最基本的思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int arr[n],i,sum=0; for(i…… 题解列表 2022年12月18日 0 点赞 1 评论 567 浏览 评分:9.9
[编程入门]电报加密 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[1001]; ge…… 题解列表 2022年12月18日 0 点赞 0 评论 434 浏览 评分:9.9
二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fun(double x){ if(x<1) { return x; } else if(x>=1 && x<10) {…… 题解列表 2022年12月18日 0 点赞 0 评论 457 浏览 评分:9.9
二级C语言-统计字符 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h>int main(){ int i,b=0,c=0,d=0,e=0; char a[1001]; …… 题解列表 2022年12月19日 0 点赞 0 评论 425 浏览 评分:9.9
放苹果 (Java代码) 摘要:import java.util.Scanner; public class Main { static int nums; public static void main(String[…… 题解列表 2022年12月19日 0 点赞 1 评论 500 浏览 评分:9.9
[STL训练]周瑜的反间计 摘要:解题思路:可以使用一个数组来记录数字出现的次数,然后遍历,每遇到一个数字就将相应的计数器加1。最后统计数组中值是否为1,为1则输出“YES”,反之则输出“NO”。 参考代码: ```cpp …… 题解列表 2022年12月19日 0 点赞 0 评论 551 浏览 评分:9.9
字符逆序c语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[1001]; gets(a); for(i=st…… 题解列表 2022年12月19日 0 点赞 0 评论 409 浏览 评分:9.9
重点来了 1090: A+B for Input-Output Practice (VI) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum,a; while(scanf("%d",&n)!=EOF){//此处坚决不可以少 ,一定写全…… 题解列表 2022年12月19日 0 点赞 1 评论 449 浏览 评分:9.9