求对角线和的方法(python) 摘要:解题思路:注意事项:解答错误83,可能输出格式存在问题,本地编译已通过,求大神改正!!!参考代码:N=int(input())if N<=10: arr=[[0 for i in range(N…… 题解列表 2021年08月17日 0 点赞 0 评论 351 浏览 评分:6.0
1009: 数字的处理与判断(最易理解的方法) 摘要:解题思路: 解答该题可以运用strlen方法,这里介绍最简单最容易理解的方法,适合编程小白开发思维逻辑。scanf("%d",&x);y=x;z=x;这里先键盘输入x,并将x的值赋给y和z,后续…… 题解列表 2021年08月17日 0 点赞 0 评论 372 浏览 评分:8.0
C语言训练-"水仙花数"问题2 摘要:#include<stdio.h>int main(void){ int w,i,j,k; for(w=100;w<=999;w++) { i=w/100; …… 题解列表 2021年08月17日 0 点赞 0 评论 141 浏览 评分:0.0
1012: [编程入门]字符串分类统计 摘要:#include<stdio.h>int main(){ char I[100]; int x=0,y=0,m=0,n=0; int i=0,j; scanf("%c",&I[0]); while(I…… 题解列表 2021年08月17日 0 点赞 0 评论 379 浏览 评分:9.9
巧妙处理素数问题(python) 摘要:解题思路:将因子输入列表中,元素个数仅为2时,判定为素数。注意事项:参考代码:def f(n): s=[] for i in range(1,n+1): if n%i==0:…… 题解列表 2021年08月17日 0 点赞 0 评论 290 浏览 评分:9.9
《C语言考试练习题_保留字母》题解 代码仅10行~ 摘要:题目背景:说真的,这题不值黄题!看到过后觉得是一道大水题解题思路:algorithm是个好东西,里面有个叫“isalpha”的函数可以用来判断是否为字母,用法为isalpha(_CharT)注意事项:…… 题解列表 2021年08月17日 0 点赞 0 评论 379 浏览 评分:9.9
python求解的最基础解法,步骤清晰,易懂!!!(python) 摘要:解题思路:注意事项 参照用例注意保留三位有效数字参考代码:import mathdef positive(a,b,c): delta=b**2-4*a*c s=math.sqrt(d…… 题解列表 2021年08月17日 0 点赞 0 评论 444 浏览 评分:6.0
[编程入门]二维数组的转置 AC代码 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;void Transpose(int arr[3][3]){ for (int i = 0; i < 3; i++…… 题解列表 2021年08月17日 0 点赞 0 评论 318 浏览 评分:9.9
链表插入的两种姿势,中间插入和尾插 摘要:解题思路:先构建两个链表,然后按照链表内的学号进行升序排序,这里我的思路是每次插入前找到比链表2待插入的节点学号大的节点,然后进行插入注意事项:参考代码:#include<stdio.h>#inclu…… 题解列表 2021年08月17日 0 点赞 0 评论 375 浏览 评分:9.9
jiechenheshu11111111000 摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "math.h"int J(int n) //求阶乘{ if (n == 1||n==0)return 1; i…… 题解列表 2021年08月16日 0 点赞 0 评论 170 浏览 评分:0.0