题目 3000: 交换值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a = 0; int b = 0; int c = 0; scanf("%d %d", &a, &b);…… 题解列表 2023年02月26日 0 点赞 0 评论 241 浏览 评分:0.0
简单的模拟 兰顿蚂蚁 摘要:解题思路:就是控制蚂蚁转方向和更新方块注意事项:参考代码:import java.util.Scanner; public class 兰顿蚂蚁 { private static in…… 题解列表 2023年02月26日 0 点赞 0 评论 203 浏览 评分:9.9
LikeWater - 1067: 二级C语言-分段函数 摘要:```cpp #include #include1 using namespace std; // 输入x ,计算并输出下列分段函数 f(x) 的值。 // 可以调用数学库函数:平方根函数s…… 题解列表 2023年02月26日 0 点赞 0 评论 174 浏览 评分:0.0
LikeWater - 1066: 二级C语言-自定义函数 摘要:#####定义一个阶乘函数和一个幂函数,挺简单的,只要注意加减法计算即可。 ```cpp #include using namespace std; #define ll long lon…… 题解列表 2023年02月26日 0 点赞 1 评论 150 浏览 评分:9.9
LikeWater - 1065: 二级C语言-最小绝对值 摘要:####爆炸简单的题目,注意比较的是绝对值,不要搞错了,这里容易提交后才发现。 ```cpp #include #include using namespace std; // 输入10…… 题解列表 2023年02月26日 0 点赞 1 评论 527 浏览 评分:9.9
LikeWater - 1064: 二级C语言-阶乘数列 摘要:####写过的题目,不再赘述,注意科学计数法就行了,这里有问题就是如果用整数类型计算出来的东西有问题,因为就算是超长整型long long也最大只能表示2^64次方的数,无法计算30!≈2.65e32…… 题解列表 2023年02月26日 1 点赞 1 评论 353 浏览 评分:10.0
蓝桥杯2022年第十三届省赛真题-修剪灌木 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int max(int a,int b,int n){ return a>b?2*(a-1):2*(n-a);}int main(){…… 题解列表 2023年02月26日 0 点赞 0 评论 226 浏览 评分:0.0
蓝桥杯2016年第七届真题-四平方和 摘要:暴力搜索56分 ```cpp #include using namespace std; const int N = 1e6 + 5; int n; vectorv(1); void i…… 题解列表 2023年02月26日 0 点赞 0 评论 555 浏览 评分:9.9
简单点自定义函数求解 摘要:自定义函数求解 #include #include//要用到sqrt()和pow()函数 float deta(int a,int b,int c) { float …… 题解列表 2023年02月26日 0 点赞 0 评论 503 浏览 评分:0.0
LikeWater - 1063: 二级C语言-统计字符 摘要:#### 又是一道统计字符的题目,dotcpp的题库里面似乎有不少相同或极似的题目,比如这道统计字符题,与1035题自定义函数之字符类型统计一模一样,我激将之前的代码原封不动的拿过来也可以用,其实…… 题解列表 2023年02月26日 0 点赞 1 评论 187 浏览 评分:9.9