输入输出--精度控制c++ 摘要:解题思路:和上一篇差不多注意事项:数据类型不要搞错,空格,参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){…… 题解列表 2022年03月11日 0 点赞 0 评论 346 浏览 评分:0.0
简单易懂--格式控制 摘要:解题思路:setiosflags 是包含在命名空间iomanip 中的C++ 操作符,该操作符的作用是执行由有参数指定区域内的动作;cout.setf跟setiosflags一样的,cout.prec…… 题解列表 2022年03月11日 0 点赞 0 评论 381 浏览 评分:0.0
输入输出--第二个数字 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[3]; for (int i = 0; i < 3; i+…… 题解列表 2022年03月11日 0 点赞 0 评论 329 浏览 评分:0.0
1098: 陶陶摘苹果 摘要:解题思路:估计原题是中等题,这个是阉割版,完全没有算法可言。注意事项:找找原题吧。参考代码:#include <iostream> using namespace std; const i…… 题解列表 2022年03月11日 0 点赞 0 评论 397 浏览 评分:9.0
优质题解 1096: Minesweeper 摘要:解题思路:说是黄金矿工,其实是扫雷的逻辑。没有什么算法上的难点,花时间的地方在于输出的数组里既有'*'又有数字,而我定义的数组是int型,所以一开始的想法是用static_cast把有…… 题解列表 2022年03月11日 0 点赞 1 评论 742 浏览 评分:8.7
我是废物!!!!!!!!!!!!!! 摘要: ```cpp #include using namespace std; int n; const long long L = 100002; int arr[L] = {0…… 题解列表 2022年03月11日 0 点赞 0 评论 326 浏览 评分:0.0
蓝桥杯2013年第四届真题-核桃的数量-题解 摘要:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a<b) …… 题解列表 2022年03月11日 0 点赞 0 评论 531 浏览 评分:9.9
编写题解 1052: [编程入门]链表合并 摘要:解题思路:注意事项:参考代码://// Created by ch'li'sen on 2022/3/8.//#include<iostream>#include "algorithm…… 题解列表 2022年03月11日 0 点赞 0 评论 441 浏览 评分:0.0
STL_蓝桥杯2020年第十一届省赛真题-平面切分 摘要:在一个很多直线的平面上添加一条直线y,可以分割出y与其他所有直线的交点 + 1个平面 ;注意事项: 在for循环中前提条件有两个时for(i = 0, it = line.begin(); it !…… 题解列表 2022年03月10日 0 点赞 0 评论 807 浏览 评分:9.9
打印图案--简单 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ cout << " *" << endl; …… 题解列表 2022年03月10日 0 点赞 0 评论 342 浏览 评分:0.0