奇度单增序列(完美c++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[500],i,j=0,m; //输入 ci…… 题解列表 2021年08月13日 0 点赞 0 评论 774 浏览 评分:7.4
c++计算圆周率代码 摘要:解题思路:利用迭代法计算圆周率注意事项:注意精度参考代码:#include<iostream>#include<iomanip>using namespace std;int main() { dou…… 题解列表 2021年11月28日 0 点赞 0 评论 1793 浏览 评分:7.4
2610: 蓝桥杯2021年第十二届省赛真题-杨辉三角形(Python) 摘要:```python def C(a,b): res = 1 for i in range(1,b+1): res = res * a / i …… 题解列表 2022年03月07日 0 点赞 0 评论 1932 浏览 评分:7.4
前缀和-青蛙过河 摘要:```cpp #include using namespace std; typedef long long ll; const int N=1e5+5; ll n,x; ll sum[N…… 题解列表 2022年05月13日 0 点赞 2 评论 1142 浏览 评分:7.4
1016: [编程入门]水仙花数判断(python代码) 摘要:解题思路: 1.用for循环,将范围设在100~999(所有的三位数) 2.将百位、十位和个位的值分别赋给三个变量 3.进行判断,符合条件的输出注意事项: 无参考代码:for i in ran…… 题解列表 2022年07月20日 0 点赞 0 评论 753 浏览 评分:7.4
1000: [竞赛入门]简单的a+b(Python代码) 摘要:####**解题思路:** 1.**输入**a,b,用**map**函数实现 2.**while**实现**循环** 3.**try except**实现出现异常时**退…… 题解列表 2022年07月22日 0 点赞 0 评论 1509 浏览 评分:7.4
优质题解 【C语言】糖块粘合:简单的数组应用 - DotcppXF 摘要:【解题思路】 ① 糖块种类的数据量不是很大,可用二维数组保存糖块的粘合数据; ② 循环处理糖块粘合情况即可。【1】糖块粘合数据的保存 ① 用 a[100][3…… 题解列表 2022年10月07日 0 点赞 0 评论 1077 浏览 评分:7.4
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:#include <stdio.h>#include <math.h>int main(){ int num,i,a; int count=0; //count 记录位数 …… 题解列表 2017年06月08日 1 点赞 0 评论 1335 浏览 评分:7.5
文科生的悲哀 (C语言代码) 摘要:解题思路:第一次为政治,f(1)=1;第二次为历史,f(2)=1;第三次可能为政治或地理,则f(3)=2;同理,f(4)=3,f(5)=5;注意事项:要输入的n最大值为10000,long long …… 题解列表 2017年10月16日 3 点赞 1 评论 1859 浏览 评分:7.5
C二级辅导-等差数列 (C语言代码) 摘要:解题思路:等差数列求和公式注意事项:参考代码:#include<stdio.h>int main(){ int a1,q,sum=0,i,x,n; scanf("%d",&n); a…… 题解列表 2017年10月23日 0 点赞 0 评论 1402 浏览 评分:7.5