用swtich判断星期 摘要:解题思路:设一个未知数表示要获取的星期,然后套switch的模板即可。注意事项:1.单词不要拼错,"input error"后面有个"!"; &nb…… 题解列表 2025年02月28日 0 点赞 0 评论 599 浏览 评分:0.0
栈与算术运算符的优先级 摘要:注意:这个题还是重点要注意运算符的优先级;以及可能负数的情况(此题不确定有没有比如-1+(-3*...)).```cpp#include #include #include #in…… 题解列表 2025年02月28日 0 点赞 0 评论 394 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:注意事项:注意7,8月份都是31天参考代码:#include <stdio.h>int pdrn(int year);struct fal{ int y…… 题解列表 2025年02月28日 0 点赞 0 评论 629 浏览 评分:0.0
编写题解 1116: IP判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c, d,k; while ( (k=scanf("%d.%d.%d.…… 题解列表 2025年02月28日 0 点赞 0 评论 564 浏览 评分:0.0
用C++求和(do...while) 摘要:解题思路:从题目中知道要输入N,且要求N以内所有数之和,代码中用sum表示。注意事项:do...while中do括号里面是循环体,while括号里面满足循环的条件表达式,其无论如何都会执行一次。参考代…… 题解列表 2025年02月28日 0 点赞 0 评论 748 浏览 评分:0.0
先求最大的,再递减比较 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int x; cin>>x; cou…… 题解列表 2025年03月01日 0 点赞 0 评论 333 浏览 评分:0.0
1738: 排序 (sort) 摘要:解题思路:使用sort()排序,注意使用头文件<bits/stdc++.h>或使用#include<algorithm>头文件sort(begin, end, cmp),其中b…… 题解列表 2025年03月01日 2 点赞 0 评论 935 浏览 评分:0.0
蓝桥杯算法提高VIP-逆序排列(c语言) 摘要:#include<stdio.h>#include<string.h>#include<math.h>int&n…… 题解列表 2025年03月01日 0 点赞 0 评论 431 浏览 评分:0.0
猴子吃桃。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int m,n;&nb…… 题解列表 2025年03月01日 0 点赞 0 评论 621 浏览 评分:0.0