【Python】编写题解 1981: 输出M到N的数 摘要:注意事项:利用range()函数循环输出参考代码:M, N = map(int, input().split()) if M<N: for i in range(M+1, N+1): …… 题解列表 2022年12月02日 0 点赞 0 评论 518 浏览 评分:9.9
【Python】1984: 蓝桥杯算法提高VIP-求圆面积表面积体积 摘要:注意事项:格式化输出参考代码:r = float(input()) pi = 3.1415926536 s1 = pi*r**2 s2 = 4*pi*r**2 v = 4*pi*r**3/3 …… 题解列表 2022年12月02日 0 点赞 0 评论 1136 浏览 评分:9.9
2751: 超级玛丽游戏 先别走,不妨试一下代码有没有打错```cpp#includeusingnamespacestd;intmain(){cout 题解列表 2022年12月02日 0 点赞 1 评论 1028 浏览 评分:9.7
2922: 合影效果 ```cpp#include#include#includeusingnamespacestd;typedefstructM{strings;floath;}S;boolcmp(Sa,Sb){if(a.s!=b.s)returna.s>b.s;elseif(a.s==b.s&&a.s=="male") 题解列表 2022年12月02日 0 点赞 0 评论 600 浏览 评分:9.9
2924: 明明的随机数 摘要:```cpp #include using namespace std; void QS(int a[],int l,int r) { if(l>=r) retur…… 题解列表 2022年12月02日 0 点赞 0 评论 590 浏览 评分:9.9
2912: 最长平台 摘要:```cpp #include using namespace std; int main() { int n,count=1,max=1,a[1001]; cin>>n;…… 题解列表 2022年12月02日 0 点赞 0 评论 745 浏览 评分:9.9
2914: 铺地毯 ```cpp#includeusingnamespacestd;structTan{intg,k,a,b,c,d;};boolIn_tan(structTan*tan,intx,inty){intt=0;if(xc&&x>=tan->a)t++;if(y>=tan->b&&yd)t++;if(t==2 题解列表 2022年12月02日 0 点赞 0 评论 600 浏览 评分:6.0
2911: 连续出现的字符 ```cpp#include#includeusingnamespacestd;intmain(){intk,s=0;charch[100000],che;cin>>k>>ch;for(inti=0;i 题解列表 2022年12月02日 0 点赞 0 评论 645 浏览 评分:9.9
题解 2900: 螺旋加密 摘要:解题思路:用a数组螺旋填写,b数组记录字符串代表的数字,d数组表示数字对应的五位二进制,c数组用来标记是否填写过。注意事项:利用了位运算参考代码:#include <algorithm>#includ…… 题解列表 2022年12月02日 0 点赞 0 评论 748 浏览 评分:9.9
递归(C语言) 观察到第一年为一头,第二年为两头。。。第五年为六头以此类推,可以得到递推公式f(n)=f(n-1)+f(n-3)则可创建递归函数------------#includeintF(intx){if(x>4)returnF(x-1)+F(x-3);elseif(x>=1&&x 题解列表 2022年12月02日 0 点赞 0 评论 568 浏览 评分:7.3