c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[501]; gets(str); str…… 题解列表 2023年06月11日 0 点赞 0 评论 591 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a[20], b[20],i,j,k,sum=0; while (scanf("%d",…… 题解列表 2023年06月11日 0 点赞 0 评论 480 浏览 评分:0.0
求水仙花数 预览,如果感觉基本编辑界面太小太窄也可以使用全屏。**#####插入代码x=y=z=d=0foriinrange(100,1000):x=i//100y=i//10%10z=i%10d=pow(x,3)+pow(y,3)+pow(z,3)ifi==d:print(i)else:pass`` 题解列表 2023年06月11日 0 点赞 0 评论 611 浏览 评分:0.0
编写题解 2943: Vigenère密码 解题思路:输入-小写转换大写-密文转明文-大写转为小写输出注意事项:套用公式用于大写字母,输出时保留大小写,所以用f[i]标记小写字母;如果k密钥长度不够,用(i%k_len)求;公式:m[i]=c[i]-(k[i%k_len]-65);明文=密文-(密钥-65)参考代码:#include 题解列表 2023年06月11日 0 点赞 1 评论 599 浏览 评分:0.0 利用递归函数求斐波那契数列 ##我的代码```pythondeffunc(n):ifn==1:return1ifn==2:return2ifn==3:return3ifn>3:returnfunc(n-1)+func(n-2)m=int(input())f=sn=0foriinrange(1, 题解列表 2023年06月11日 0 点赞 0 评论 612 浏览 评分:0.0 自由下落的距离计算 ##我的代码```pythonm,n=map(int,input().strip().split())a=0b=m#这里将b的初值设为m,因为落下距离容易被忽略,也可以不写,然后在format(1000+b)foriinrange(1,n+1):a=m/pow(2, 题解列表 2023年06月11日 0 点赞 0 评论 616 浏览 评分:0.0 c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int n, * a,i,plateau_length=1,max_p…… 题解列表 2023年06月11日 0 点赞 0 评论 549 浏览 评分:0.0 c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char str[1001]; …… 题解列表 2023年06月11日 0 点赞 0 评论 476 浏览 评分:0.0 C语言训练-字符串正反连接 摘要:#include<stdio.h> int main() { char a[100]; char b[100]; scanf("%s",a); printf("%s",…… 题解列表 2023年06月11日 0 点赞 0 评论 412 浏览 评分:0.0 简单易懂C语言 摘要:#include<stdio.h> int main() { int a = 1, b = 1; int n; scanf("%d", &n); if(n==1){ …… 题解列表 2023年06月11日 0 点赞 0 评论 477 浏览 评分:0.0 « 12...5189519051915192519351945195...59125913 »
利用递归函数求斐波那契数列 ##我的代码```pythondeffunc(n):ifn==1:return1ifn==2:return2ifn==3:return3ifn>3:returnfunc(n-1)+func(n-2)m=int(input())f=sn=0foriinrange(1, 题解列表 2023年06月11日 0 点赞 0 评论 612 浏览 评分:0.0
自由下落的距离计算 ##我的代码```pythonm,n=map(int,input().strip().split())a=0b=m#这里将b的初值设为m,因为落下距离容易被忽略,也可以不写,然后在format(1000+b)foriinrange(1,n+1):a=m/pow(2, 题解列表 2023年06月11日 0 点赞 0 评论 616 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int n, * a,i,plateau_length=1,max_p…… 题解列表 2023年06月11日 0 点赞 0 评论 549 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char str[1001]; …… 题解列表 2023年06月11日 0 点赞 0 评论 476 浏览 评分:0.0
C语言训练-字符串正反连接 摘要:#include<stdio.h> int main() { char a[100]; char b[100]; scanf("%s",a); printf("%s",…… 题解列表 2023年06月11日 0 点赞 0 评论 412 浏览 评分:0.0
简单易懂C语言 摘要:#include<stdio.h> int main() { int a = 1, b = 1; int n; scanf("%d", &n); if(n==1){ …… 题解列表 2023年06月11日 0 点赞 0 评论 477 浏览 评分:0.0