C++ 数据结构-直接插入排序 摘要:# C++手撕插排 ```c++ #include using namespace std; void Sort(int* nums, int n) { int i = 0, j = 0…… 题解列表 2023年06月10日 0 点赞 0 评论 512 浏览 评分:0.0
编写题解 2824: 求出e的值 摘要:解题思路:注意事项:参考代码:n=int(input())a=1b=1for i in range(1,n+1): a=a*i c=1/a b=b+c e=b print(f'{e:…… 题解列表 2023年06月11日 0 点赞 0 评论 300 浏览 评分:0.0
2832: 第n小的质数 摘要:解题思路:注意事项:参考代码:def isPrime(su): if su==2: return true if su%2==0: return False …… 题解列表 2023年06月11日 0 点赞 0 评论 364 浏览 评分:0.0
[编程入门]阶乘求和 摘要:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long n,Sn=1,a=1; cin>>n; f…… 题解列表 2023年06月11日 0 点赞 0 评论 288 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, m, a[100][100]; while (scanf("%d %d", &m, &n) != …… 题解列表 2023年06月11日 0 点赞 0 评论 326 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, i, j,a[1000],sum=1,max_sum=1,max_num; scanf…… 题解列表 2023年06月11日 0 点赞 0 评论 280 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[501]; gets(str); str…… 题解列表 2023年06月11日 0 点赞 0 评论 386 浏览 评分: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 评论 271 浏览 评分:0.0
求水仙花数 摘要:预览,如果感觉基本编辑界面太小太窄也可以使用全屏。** ##### 插入代码 x=y=z=d=0 for i in range(100,1000): x=i//100 y…… 题解列表 2023年06月11日 0 点赞 0 评论 348 浏览 评分:0.0
编写题解 2943: Vigenère密码 摘要:解题思路:输入-小写转换大写-密文转明文-大写转为小写输出注意事项:套用公式用于大写字母,输出时保留大小写,所以用f[i]标记小写字母;如果k密钥长度不够,用(i%k_len)求;公式:m[i]=c[…… 题解列表 2023年06月11日 0 点赞 1 评论 373 浏览 评分:0.0