类实现 —— 结构体之成绩统计2 摘要:解题思路: 定义学生类(然后初始化N个<100),每个类有属性 :学号,姓名、三科成绩 :string num,name、 vector容器注意事项: 参考代码:#include <iostre…… 题解列表 2022年10月18日 0 点赞 0 评论 418 浏览 评分:0.0
简单代码 循环考虑 摘要:解题思路:注意事项:最后加上第一次下落距离并减去最后多循环的一次距离参考代码:#include <stdio.h>int main(){ float M,ft_h,sum_h,a; int…… 题解列表 2022年10月18日 0 点赞 0 评论 283 浏览 评分:9.9
编写题解 2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:x,y=map(int,input().split()) if x>y: print('>') elif x==y: print(…… 题解列表 2022年10月18日 0 点赞 0 评论 1240 浏览 评分:9.9
编写题解 2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:n=int(input()) if n%2!=0: print('odd') else: print('even'…… 题解列表 2022年10月18日 1 点赞 0 评论 1539 浏览 评分:9.0
编写题解 2781: 奇偶ASCII值判断 摘要:解题思路:注意事项:参考代码:a=input() if ord(a)%2!=0: print('YES') else: print('NO')…… 题解列表 2022年10月18日 0 点赞 0 评论 998 浏览 评分:8.3
编写题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:print('%.2f'%abs(float(input()))) #print('{:.2f}'.format(abs(float(i…… 题解列表 2022年10月18日 1 点赞 0 评论 1464 浏览 评分:5.6
编写题解 2778: 判断数正负 摘要:解题思路:科学计数法的使用,while循环控制范围,不满足用break终止循环注意事项:参考代码:N=int(input()) while N>=-1E9 and N<=1E9: if N…… 题解列表 2022年10月18日 0 点赞 0 评论 1583 浏览 评分:9.9
编写题解 2765: 计算分数的浮点数值 摘要:解题思路:保留小数点位数常用方法:1.'%.9f'%n2.'{:.9f}'.format(n)注意事项:参考代码:a,b=map(int,input().split()…… 题解列表 2022年10月18日 3 点赞 0 评论 2225 浏览 评分:9.9
编写题解 2764: 带余除法 摘要:解题思路:整除://求余:%注意事项:参考代码:a,b=map(int,input().split()) while b!=0: #当除数非0,进入while循环 print(a//b,a…… 题解列表 2022年10月18日 0 点赞 0 评论 1320 浏览 评分:9.7
编写题解 2762: 计算(a+b)*c的值 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split()) print((a+b)*c)…… 题解列表 2022年10月18日 0 点赞 0 评论 1173 浏览 评分:9.1