蓝桥杯算法提高VIP-Torry的困惑(提高型) (以空间换时间,运行速度较快) 摘要:``` #include using namespace std; const int N=1500000;//由素数定理π(x)~x/(ln(x)) //大致可算得取得100000…… 题解列表 2019年09月22日 0 点赞 4 评论 1654 浏览 评分:9.9
蓝桥杯算法提高VIP-删除数组中的0元素 (黑盒测试,直接输出,注意格式) 摘要:``` #include using namespace std; int main(){ int n,t,res=0,flag=1; cin>>n; for(int i=0;i>t…… 题解列表 2019年09月22日 0 点赞 0 评论 1173 浏览 评分:6.0
蓝桥杯历届试题-翻硬币 (C++代码)(简单模拟) 摘要:模拟交换规则交换即可 ```cpp #include #include using namespace std; void change(char &a) { if(a=='*') …… 题解列表 2019年09月21日 0 点赞 0 评论 724 浏览 评分:0.0
蓝桥杯算法提高VIP-最小乘积(提高型) (C++描述,排两次序,部分最优->整体最优) 摘要:``` #include #include using namespace std; const int N=1010; bool cmp(int x,int y){ return x…… 题解列表 2019年09月21日 0 点赞 0 评论 1047 浏览 评分:9.9
蓝桥杯算法提高VIP-数字黑洞-题解(C++代码) 摘要:``` #include #include using namespace std; int val(int x,int flag){ int num[4],i=-1,s=0; whi…… 题解列表 2019年09月21日 0 点赞 0 评论 1082 浏览 评分:8.0
蓝桥杯基础练习VIP-分解质因数-题解(C++代码)容易理解 摘要:``` #include using namespace std; const int N=10000+10; int vis[N]; int main(){ int a,b,k=0; …… 题解列表 2019年09月20日 0 点赞 0 评论 1059 浏览 评分:6.0
[编程入门]完数的判断-题解(C++代码) 摘要: #include #include using namespace std; int main() { int n; vector vec; cin >> n; for…… 题解列表 2019年09月20日 0 点赞 0 评论 891 浏览 评分:0.0
二级C语言-阶乘数列-题解(C++代码) 摘要:原题链接 [[二级C语言]阶乘数列](https://www.dotcpp.com/oj/problem1064.html"[编程入门]阶乘求和") 解题思路: 先求阶乘再求和 注意事项: …… 题解列表 2019年09月20日 0 点赞 2 评论 988 浏览 评分:5.5
增添战力-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { int n,i,k,a[1001],n1,n2; cin>>n>…… 题解列表 2019年09月20日 0 点赞 0 评论 960 浏览 评分:9.9
蓝桥杯打水问题 水题 摘要:直接上代码 ```cpp #include #include using namespace std; int main() { int n,r,t[1001]; int …… 题解列表 2019年09月20日 0 点赞 0 评论 821 浏览 评分:0.0