2832: 第n小的质数 摘要:解题思路:注意事项:参考代码:def isPrime(su): if su==2: return true if su%2==0: return False …… 题解列表 2023年06月11日 0 点赞 0 评论 586 浏览 评分:0.0
二级C语言-平均值计算 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(int argc, char** argv) { int a,b,c,d,e,…… 题解列表 2023年06月11日 0 点赞 0 评论 716 浏览 评分:9.9
编写题解 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 评论 561 浏览 评分:0.0
优质题解 找到简单规律,一切迎刃而解,--混乱的数组-python题解 摘要:解题思路:借鉴了大佬的思想,在此表示崇敬和感谢。https://blog.dotcpp.com/a/95964 站在大佬的肩膀上,进一步发现了更容易编程的规律:每个x对应的数组由三个序列构成。整体思想…… 题解列表 2023年06月11日 1 点赞 0 评论 1165 浏览 评分:7.3
自定义函数之字符串连接 摘要:解题思路:可以直接使用strcat函数来实现连接功能注意事项:注意gets函数要使用两次参考代码:#include<stdio.h>#include<string.h>int main(){ c…… 题解列表 2023年06月10日 0 点赞 0 评论 579 浏览 评分:9.9
1002:[编程入门]三个数最大值 摘要:解题思路: o=(a+b+abs(a-b))/2; nums=(o+c+abs(o-c))/2;求最值的式子,熟练了也可以用于数组求最值注意事项:一定要说注意的地方在哪的话,定义的数据类型算一个吧,l…… 题解列表 2023年06月10日 0 点赞 0 评论 579 浏览 评分:9.9
C++ 数据结构-直接插入排序 #C++手撕插排```c++#includeusingnamespacestd;voidSort(int*nums,intn){inti=0,j=0;for(i=1;i=0;--j){if(nums[j]>=x){nums[j+1]=n 题解列表 2023年06月10日 0 点赞 0 评论 815 浏览 评分:0.0
编写题解 1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a[10]; for(i=0;i<10;i++) { scanf("…… 题解列表 2023年06月10日 0 点赞 0 评论 453 浏览 评分:0.0
Hello, World!(C++) 摘要:#include<iostream>using namespace std;int main(){ cout<<"Hello, World!"<<endl; return 0;}…… 题解列表 2023年06月10日 0 点赞 0 评论 441 浏览 评分:0.0
编写题解 2764: 带余除法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d", &a, &b); printf("%d ",a/…… 题解列表 2023年06月10日 0 点赞 0 评论 580 浏览 评分:0.0