[编程入门]结构体之成绩统计2 容易理解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Grade{ char no[10]; char name[10]; int subject[10];};void cal…… 题解列表 2021年08月18日 0 点赞 0 评论 351 浏览 评分:9.9
1018: [编程入门]有规律的数列求和 摘要:#include<stdio.h>int main(){ int i,N; float m=1.0,n=2.0,S=0,a; scanf("%d",&N); for(i=0;i<N;…… 题解列表 2021年08月17日 0 点赞 0 评论 623 浏览 评分:8.0
求对角线和的方法(python) 摘要:解题思路:注意事项:解答错误83,可能输出格式存在问题,本地编译已通过,求大神改正!!!参考代码:N=int(input())if N<=10: arr=[[0 for i in range(N…… 题解列表 2021年08月17日 0 点赞 0 评论 337 浏览 评分:6.0
1009: 数字的处理与判断(最易理解的方法) 摘要:解题思路: 解答该题可以运用strlen方法,这里介绍最简单最容易理解的方法,适合编程小白开发思维逻辑。scanf("%d",&x);y=x;z=x;这里先键盘输入x,并将x的值赋给y和z,后续…… 题解列表 2021年08月17日 0 点赞 0 评论 362 浏览 评分: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 评论 128 浏览 评分: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 评论 346 浏览 评分:9.9
巧妙处理素数问题(python) 摘要:解题思路:将因子输入列表中,元素个数仅为2时,判定为素数。注意事项:参考代码:def f(n): s=[] for i in range(1,n+1): if n%i==0:…… 题解列表 2021年08月17日 0 点赞 0 评论 278 浏览 评分:9.9
《C语言考试练习题_保留字母》题解 代码仅10行~ 摘要:题目背景:说真的,这题不值黄题!看到过后觉得是一道大水题解题思路:algorithm是个好东西,里面有个叫“isalpha”的函数可以用来判断是否为字母,用法为isalpha(_CharT)注意事项:…… 题解列表 2021年08月17日 0 点赞 0 评论 371 浏览 评分: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 评论 433 浏览 评分:6.0
[编程入门]二维数组的转置 AC代码 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;void Transpose(int arr[3][3]){ for (int i = 0; i < 3; i++…… 题解列表 2021年08月17日 0 点赞 0 评论 310 浏览 评分:9.9