蓝桥杯算法提高VIP-单词个数统计-题解-巧用hasNext和in.next()(Java代码) 摘要:解题思路:巧用hasNext()和in.next(),计数即可参考代码:import java.util.Scanner; public class Main { public stat…… 题解列表 2021年02月21日 0 点赞 0 评论 224 浏览 评分:4.7
(C语言代码)关键是要减少循环 摘要: #include <string.h> #include <stdio.h> #include <stdlib.h> #include <math.h> int fun(const v…… 题解列表 2021年02月24日 0 点赞 1 评论 385 浏览 评分:4.7
[编程入门]利润计算-题解(C++代码) 摘要:解题思路:用if,else;注意事项:else后面不加条件参考代码:#include<iostream>using namespace std;int main (){ int n; cin >> n…… 题解列表 2021年02月26日 0 点赞 0 评论 718 浏览 评分:4.7
[编程入门]自定义函数之整数处理(最简单25行代码搞定)(java) 摘要:解题思路:输入10个数 转化成数组通过一个for循环遍历出最大值最小值的坐标找出坐标,建立新变量 进行位置交换输出交换后的十个数,每个后面带空格;注意事项:重在理解 for (int …… 题解列表 2021年03月13日 0 点赞 1 评论 353 浏览 评分:4.7
(C语言),以拙攻巧!其实你的想法是对的,只不过不知道怎么落实到代码中 摘要:参考代码:#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> //构建交换函数 vo…… 题解列表 2021年03月16日 0 点赞 0 评论 617 浏览 评分:4.7
题解 1235: 检查金币(C++代码)使用STL容器vector和map,深搜 摘要:解题思路:注意事项:参考代码:#include <iostream> #include<map> #include<vector> using namespace std; map<int,v…… 题解列表 2021年04月21日 0 点赞 0 评论 568 浏览 评分:4.7
1971: 外出旅游(C语言) 摘要:解题思路:方便理解,循环处理注意事项:参考代码:#include <stdio.h> int main() { int f; // 水果数 int m; …… 题解列表 2021年06月12日 0 点赞 0 评论 505 浏览 评分:4.7
答案错误 应当使用无符号双长整型 摘要:解题思路:题目要求相当于求和:2^0+2^1+……+2^63=2^64-1。双长整型占8字节,而有符号1字节最大可达到+127,无符号1字节(8位二进制)最大可达到2^8-1,8字节正好可达题目要求数…… 题解列表 2021年07月10日 0 点赞 0 评论 572 浏览 评分:4.7
2042: 杨辉三角(C语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> typedef long long LL; int main() { …… 题解列表 2021年07月26日 1 点赞 0 评论 887 浏览 评分:4.7
[编程入门]自定义函数处理素数 Python解决 摘要:解题思路: 使用取余即可 那我们就是用2,如果取余为0的话(被除尽了),那么他就不是素数参考代码: x = int(input()) if x % 2 == 0: …… 题解列表 2021年08月20日 0 点赞 1 评论 557 浏览 评分:4.7