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 评论 2028 浏览 评分: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 评论 1217 浏览 评分:7.4
1016: [编程入门]水仙花数判断(python代码) 摘要:解题思路: 1.用for循环,将范围设在100~999(所有的三位数) 2.将百位、十位和个位的值分别赋给三个变量 3.进行判断,符合条件的输出注意事项: 无参考代码:for i in ran…… 题解列表 2022年07月20日 0 点赞 0 评论 841 浏览 评分:7.4
1000: [竞赛入门]简单的a+b(Python代码) 摘要:####**解题思路:** 1.**输入**a,b,用**map**函数实现 2.**while**实现**循环** 3.**try except**实现出现异常时**退…… 题解列表 2022年07月22日 0 点赞 0 评论 1601 浏览 评分:7.4
优质题解 【C语言】糖块粘合:简单的数组应用 - DotcppXF 摘要:【解题思路】 ① 糖块种类的数据量不是很大,可用二维数组保存糖块的粘合数据; ② 循环处理糖块粘合情况即可。【1】糖块粘合数据的保存 ① 用 a[100][3…… 题解列表 2022年10月07日 0 点赞 0 评论 1179 浏览 评分: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 评论 1457 浏览 评分: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 评论 1934 浏览 评分: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 评论 1513 浏览 评分:7.5
WU-Hello, world! (C语言代码) 摘要:参考代码:#include<stdio.h> int main() { int a; while(scanf("%d",&a)!=EOF) { printf("%c",a); …… 题解列表 2017年12月14日 13 点赞 4 评论 2989 浏览 评分:7.5
优质题解 Manchester- C语言训练-计算t=1+1/2+1/3+...+1/n 摘要:解题思路:令i从1到N;把所有 1/i 的商加起来;输出和,保留六位小数;注意事项:把变量范围定义得大一些,避免出错;参考代码:#include <stdio.h> int main() { …… 题解列表 2017年12月23日 16 点赞 12 评论 5739 浏览 评分:7.5