[C++]用switch case语句 摘要:解题思路:用switch case语句也可以做出来注意事项:没什么要注意的,注意公式计算参考代码:#include<stdio.h>main(){ int m; int i; sca…… 题解列表 2022年03月11日 0 点赞 0 评论 511 浏览 评分:7.3
蓝桥杯2014年第五届真题-排列序数 摘要:```cpp #include using namespace std; const int N = 100000; int k=0,l,vis[N]; char s[N]; char r…… 题解列表 2022年03月11日 0 点赞 0 评论 412 浏览 评分:0.0
蓝桥杯历届试题-回文数字 摘要:参考代码:#include<iostream> #include<algorithm> using namespace std; bool isReverse(int n) { …… 题解列表 2022年03月11日 0 点赞 0 评论 373 浏览 评分:9.9
超短的C++代码(附详细解题思路) 摘要:解题思路:①如果按照对每行每列的数字进行逐一分析,很容易就超限,500可不是个小数哦~~~②那就想怎么能通过加减运算去节省时间,不难想到相邻的行之间相加就可以得到一个子阵,所以,对输入的数据加上前面所…… 题解列表 2022年03月11日 0 点赞 1 评论 742 浏览 评分:7.1
输入输出--A+B 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >> n; …… 题解列表 2022年03月11日 0 点赞 0 评论 344 浏览 评分:0.0
输入输出--A+B 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>using namespace std;int main(){int a,b;while(cin…… 题解列表 2022年03月11日 0 点赞 0 评论 324 浏览 评分:0.0
输入输出--A+B 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main (){ int n; while (cin>>n){ i…… 题解列表 2022年03月11日 0 点赞 0 评论 335 浏览 评分:0.0
输入输出格式练习 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int i, n; while (cin >> n && n != 0…… 题解列表 2022年03月11日 0 点赞 0 评论 348 浏览 评分:0.0
输入输出--精度控制c++ 摘要:解题思路:和上一篇差不多注意事项:数据类型不要搞错,空格,参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){…… 题解列表 2022年03月11日 0 点赞 0 评论 449 浏览 评分:0.0
简单易懂--格式控制 摘要:解题思路:setiosflags 是包含在命名空间iomanip 中的C++ 操作符,该操作符的作用是执行由有参数指定区域内的动作;cout.setf跟setiosflags一样的,cout.prec…… 题解列表 2022年03月11日 0 点赞 0 评论 466 浏览 评分:0.0