2981: 二进制分类 摘要:```cpp #include using namespace std; int A,B; bool turn(int x) { int a=0,b=0; while(x!=0) …… 题解列表 2024年07月29日 1 点赞 0 评论 170 浏览 评分:10.0
1023: [编程入门]选择排序 摘要:```cpp #include using namespace std; int k; int xz(int a[10]){ for(int i=0;ia[i]; xz(a); f…… 题解列表 2024年07月30日 0 点赞 0 评论 459 浏览 评分:10.0
有大佬解释一下为什么过不了所有点吗 摘要:``` n=int(input()) l=list(map(int,input().split())) p=0 while l!=[]: c=min(l) p+=int(l…… 题解列表 2024年08月01日 0 点赞 1 评论 510 浏览 评分:10.0
8行:万花丛中过,片叶不沾身 摘要:```` li=[] n=int(input()) l=list(map(int,input().split())) for s in l: if s%2==1: …… 题解列表 2024年08月01日 0 点赞 0 评论 405 浏览 评分:10.0
链表解决,简单易懂(c语言) 摘要:```c #include #include #include #include // 定义链表节点结构 typedef struct node { char arr…… 题解列表 2024年08月02日 1 点赞 0 评论 454 浏览 评分:10.0
大数的阶乘C语言代码 摘要:解题思路:大数的阶乘很容易超出基本数据类型的范围造成数据溢出,所以需要定义一个数组来存储数据(数组可以存放无限大的数据)。阶乘的本质就是数的相乘,因此在计算大数的阶乘的时候可以通过模拟笔算的方式,将数…… 题解列表 2024年08月03日 5 点赞 0 评论 629 浏览 评分:10.0
奇偶ASCII值判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char ch; ch=getchar(); int num=ch; …… 题解列表 2024年08月04日 1 点赞 0 评论 415 浏览 评分:10.0
整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int x,y; scanf("%d %d",&…… 题解列表 2024年08月04日 0 点赞 1 评论 666 浏览 评分:10.0
对于这个问题,直接用暴力算法,直接求解 摘要:参考代码:#include<stdio.h>int main(){ int a=0; int n[3]; for(int i=0;i<3;i++){ scanf("%d",&n[i]); } for…… 题解列表 2024年08月04日 5 点赞 0 评论 1361 浏览 评分:10.0
1066: 二级C语言-自定义函数 此题有坑(c语言代码) 摘要:```c #include #include double fact(int n) { double n1 = 1.0; for (int i = 1; i …… 题解列表 2024年08月05日 1 点赞 1 评论 524 浏览 评分:10.0