[编程入门]利润计算-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; int main(){ double l,y; cin>>l; …… 题解列表 2021年01月18日 0 点赞 1 评论 854 浏览 评分:4.7
蓝桥杯基础练习VIP-分解质因数-题解(C++代码) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; bool is_prime( int n){ //素数判断 if( n == 2)…… 题解列表 2021年01月17日 0 点赞 0 评论 282 浏览 评分:0.0
蓝桥杯2013年第四届真题-错误票据-题解(C++代码)用空间换时间 摘要:解题思路:建立数组number[100001],0~100001之间,输入的数字i,number[i]++,最终number[x] == 2代表重复,number[x] == 0代表断号参考代码:#i…… 题解列表 2021年01月17日 0 点赞 0 评论 496 浏览 评分:0.0
[编程入门]成绩评定-题解(C++代码) 摘要:解题思路:用if ,多个else if和else注意事项:参考代码:#include<bits/stdc++.h>using namespace std; int main(){ int a; …… 题解列表 2021年01月17日 0 点赞 0 评论 531 浏览 评分:6.0
[编程入门]数字的处理与判断-题解(C++代码) 摘要:#include<iostream>using namespace std;int main(){ int i,ge,shi,bai,qian,wan; cin>>i; if(i>=…… 题解列表 2021年01月17日 0 点赞 0 评论 551 浏览 评分:0.0
[编程入门]分段函数求值-题解(C++代码) 摘要:解题思路:注意事项:注意要用 double 或者float用if 的多重选择分支法可以让程序运行更快参考代码:#include<bits/stdc++.h>using namespace std;in…… 题解列表 2021年01月17日 0 点赞 0 评论 448 浏览 评分:6.0
[编程入门]Sn的公式求和-题解(C++代码) 摘要:解题思路:递归求解注意事项:参考代码:#include<iostream>#include<cmath>#include<iomanip> #include<string> using namespa…… 题解列表 2021年01月17日 0 点赞 0 评论 434 浏览 评分:0.0
[编程入门]三个数找最大值-题解(C++代码) 摘要:解题思路:利用max函数,符合求解注意事项:添加cmath头文件参考代码:#include#includeusing namespace std;int main(){ int a,b,c; c…… 题解列表 2021年01月17日 0 点赞 0 评论 321 浏览 评分:0.0
[编程入门]阶乘求和-题解(C++代码) 摘要:解题思路:因爲僅有一個輸入與輸出,且爲整數,所以我們可以用cin,cout以加快速度。則前三行為:#include<iostream>//使用cin,cout以達到最優解 using namespa…… 题解列表 2021年01月17日 0 点赞 0 评论 457 浏览 评分:6.0
蓝桥杯2014年第五届真题-兰顿蚂蚁-题解(C++代码) 摘要:解题思路:根据题意 硬撸就行 无算法 无技巧注意事项:参考代码:#include<stdio.h>int main(){ int m,n,a[105][105],x,y,k; char…… 题解列表 2021年01月17日 0 点赞 0 评论 452 浏览 评分:9.9