输出亲朋字符串(c++) 摘要:```cpp #include using namespace std; int main(){ string s; getline(cin,s);//此函数可读取整行,包括…… 题解列表 2022年11月06日 1 点赞 2 评论 750 浏览 评分:9.9
2904: 谁拿了最多奖学金(c++代码) 摘要:```cpp #include using namespace std; typedef struct Stu { string name; int g1; int g2; ch…… 题解列表 2022年11月06日 0 点赞 0 评论 504 浏览 评分:9.9
剪刀石头布C++ 摘要:解题思路: 一一比较注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b; cin >> a >> b…… 题解列表 2022年11月05日 0 点赞 0 评论 287 浏览 评分:0.0
计算球体积(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<iomanip> int main() { float…… 题解列表 2022年11月05日 0 点赞 0 评论 610 浏览 评分:9.9
计算两点间的距离(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<cmath> #include<iomanip> int mai…… 题解列表 2022年11月05日 0 点赞 0 评论 587 浏览 评分:9.9
蟠桃记(简单C++倒推) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int t,n,a[88]={1},i; …… 题解列表 2022年11月05日 0 点赞 0 评论 439 浏览 评分:9.9
二分算法,时间复杂度O(1),虽然这个常数有点大 摘要:解题思路:就二分就行了,ans满足:ans/5+ans/25+ans/125+ans/625+...=k。这里的除的结果都是向下取整,求最小的满足这个等式的数即可。注意事项:这一题不要开O2优化,因为…… 题解列表 2022年11月05日 0 点赞 5 评论 965 浏览 评分:7.7
典型的动态规划 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 10010#define mod 1000000007in…… 题解列表 2022年11月05日 0 点赞 0 评论 634 浏览 评分:4.7
2239: 蓝桥杯算法训练-动态数组使用(c++stl) 摘要:```cpp #include//万能头文件 using namespace std; int main() { int n; cin >> n;//输入长度 vectorv1(n)…… 题解列表 2022年11月05日 0 点赞 0 评论 385 浏览 评分:9.9
典型的分类讨论 摘要:解题思路:三个方块各自横竖放的情形有2种,也就是一共2*2*2=8种情形。从左到右(因为从下到上等价于8种中的其它情形从左到右)排列方块,接下来就是几个简单的讨论而已。注意事项:参考代码:#inclu…… 题解列表 2022年11月05日 0 点赞 0 评论 1439 浏览 评分:7.5