编写题解 1480: 模拟计算器 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; char c; cin…… 题解列表 2024年01月06日 0 点赞 0 评论 106 浏览 评分:0.0
编写题解 1783: 星期判断机 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a; cin>>a; switc…… 题解列表 2024年01月06日 0 点赞 0 评论 162 浏览 评分:0.0
不吉利日期 摘要:``` #include #include #include #include using namespace std; typedef long long ll; const i…… 题解列表 2024年01月06日 0 点赞 0 评论 178 浏览 评分:0.0
不重复地输出数(很好体现了计数排序的优势) 摘要:解题思路: 实现去除重复元素并排序,正好对应上了计数排序的功能, 计数排序: (1)找出待排序的数组中最大和最小的元素 (2)统计数组中每个值为i的元素出现的次数,存入数组C的第i项 我…… 题解列表 2024年01月06日 0 点赞 0 评论 205 浏览 评分:0.0
素数回文数的个数两种方法 摘要:暴力写法,范围只有1000我们只需要前后就好了 ``` #include #include #include #include using namespace std; typed…… 题解列表 2024年01月06日 0 点赞 0 评论 136 浏览 评分:0.0
一段一段来判断长度 摘要:``` #include #include #include #include using namespace std; int main() { string s,c;…… 题解列表 2024年01月06日 0 点赞 0 评论 172 浏览 评分:0.0
指针解决(高举C++大旗!) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int arr[10] = {0};void Set_arr(int* p){ for(…… 题解列表 2024年01月06日 0 点赞 0 评论 98 浏览 评分:0.0
C++语言实现,具体操作在注释里面 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[100] = {0};//暂时存储数据 i…… 题解列表 2024年01月06日 0 点赞 0 评论 126 浏览 评分:0.0
蓝桥杯历届试题-回文数字-纯暴力(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