1804: 蓝桥杯算法提高- c++_ch02_02 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<bits/stdc++.h> using namespace std; int main(){ in…… 题解列表 2023年09月26日 0 点赞 0 评论 237 浏览 评分:0.0
1028: [编程入门]自定义函数求一元二次方程(C++) 摘要:解题思路:求根公式:x=-b/(2*a)±√Δ/2*a其中定义 Δ=b*b-4*a*cΔ>=0时,方程有实数根需要注意考虑虚根情况,即Δ<0时 方程有虚根,计算时Δ取相反数 ,结果加虚数符号(i)参考…… 题解列表 2023年09月26日 1 点赞 0 评论 435 浏览 评分:9.0
1793: 玉龙学长买雪糕----递归 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int rec(int a); int main() { int a; …… 题解列表 2023年09月25日 0 点赞 0 评论 415 浏览 评分:9.9
c++ 筛选素数 摘要: #include using namespace std; int main() { int a; cin >> a; for( int i = 2; i …… 题解列表 2023年09月25日 0 点赞 0 评论 432 浏览 评分:9.9
1785: 指针/引用练习之交换数字 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int swap(int &a,int &b); int main() { …… 题解列表 2023年09月25日 0 点赞 0 评论 378 浏览 评分:0.0
1784: 矩阵的对角线之和 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int arr[5][5]; int …… 题解列表 2023年09月25日 0 点赞 0 评论 262 浏览 评分:0.0
1783: 星期判断机switch-case 和map容器两种方法解决 摘要:解题思路:注意事项:参考代码:switch-case方法#includeusing namespace std; int main() { int week; cin>>wee…… 题解列表 2023年09月25日 0 点赞 0 评论 382 浏览 评分:0.0
灌水=======标题太短了 啊啊啊啊啊啊啊 摘要:```cpp #include using namespace std; int main() { int n; int sum; while((scanf("%d",&n)) !…… 题解列表 2023年09月24日 0 点赞 0 评论 525 浏览 评分:4.0
1029: [编程入门]自定义函数处理素数题解 摘要:若是个素数,那么就不能被2~n-1的数整除。#include <bits/stdc++.h>bool prime_Index(int n){ for(int i = 2; i < n; i++) { …… 题解列表 2023年09月24日 0 点赞 0 评论 341 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-刷题统计 摘要:解题思路:n的范围达到了十的十八次方,如果只用循环的画时间复杂度会非常的大,而且只能拿到80分。注意事项:数据的类型要用长整型参考代码:#include<iostream>using namespac…… 题解列表 2023年09月24日 0 点赞 0 评论 268 浏览 评分:0.0