蓝桥杯历届试题-回文数字-纯暴力(Java) 摘要:# 解题思路: 对每一个数的每个位的总值是否与输入的值相同 并且对两个sb对象进行判断,完全相同就是回文数字 ## 注意事项: i的值不能直接参加运算,否则会影响后续的循环 …… 题解列表 2024年01月07日 0 点赞 0 评论 123 浏览 评分:0.0
[编程入门]报数问题-链表解决(Java代码) 摘要:# 解题思路 使用java自带的链表进行操作 关键代码(p + 2) % list.size();//保证索引不越界 ```java import java.util.Scanner; im…… 题解列表 2024年01月07日 0 点赞 0 评论 150 浏览 评分:0.0
C语言填鸭型 摘要:解题思路:检查左括号右括号是否配对注意事项:参考代码:#include"stdio.h"int main(){ char p[500]; memset(p,0,500); int i,j = 0; i…… 题解列表 2024年01月07日 0 点赞 0 评论 308 浏览 评分:0.0
题解 2544: N以内累加求和 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a; cin>>a; cout<<(a-1…… 题解列表 2024年01月07日 0 点赞 0 评论 141 浏览 评分:0.0
题解 3008: 买笔 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int x; cin>>x; if(x%…… 题解列表 2024年01月07日 0 点赞 0 评论 111 浏览 评分:0.0
自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; main() { void f(int n); int n; cin>>…… 题解列表 2024年01月07日 0 点赞 0 评论 125 浏览 评分:0.0
编写题解 3008: 买笔(if语句解法) 摘要:解题思路:若想让笔的数量最大,应优先购买4元的。以4为基准求余:剩1元,则4元钱的笔少买1支,换成1支5元笔;剩2元,则4元钱的笔少买1支,换成1支6元笔;剩3元,则4元钱的笔少买2支,换成1支5元笔…… 题解列表 2024年01月07日 0 点赞 0 评论 106 浏览 评分:0.0
3008: 买笔 买个鸡脖 摘要:解题思路:注意事项:需要想到多种可能参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int x; cin>>x; …… 题解列表 2024年01月07日 0 点赞 0 评论 139 浏览 评分:0.0
蓝桥杯2022年第十三届决赛真题-取模 java哈希 摘要:Map remainders = new HashMap();: 这个HashMap用于存储数字n对每个数字i(从1到m)的余数。 int remainder = n % i;:计算数字n对数…… 题解列表 2024年01月07日 0 点赞 0 评论 188 浏览 评分:0.0
单词统计(小心些数组的空间) 摘要:解题思路:注意题目说单词可重叠,那就以卷子每个元素都为开头一次,往后遍历比较一次注意事项:参考代码:#include<stdio.h> int main() { int n; scanf(…… 题解列表 2024年01月07日 1 点赞 0 评论 135 浏览 评分:0.0