字符删除——思路简单,6行代码 摘要:解题思路:坑:输入记得删空格,两个输入都得删,否则只能对91%注意事项:参考代码:s1=str(input().strip()) #输入删除空格c=str(input().strip())fo…… 题解列表 2022年10月18日 0 点赞 0 评论 730 浏览 评分:9.9
[编程入门]水仙花数判断 最基础解法 摘要:解题思路:bw=i//100 sw=(i-bw*100)//10 gw=i-bw*100-sw*10注意事项:参考代码: for i in range(100,1000): bw=i…… 题解列表 2022年10月18日 0 点赞 0 评论 427 浏览 评分:7.0
最大公约数与最小公倍数 摘要:解题思路:最小公倍数和最大公约数的基本思想。最小公倍数,从两个数中大的数开始找起,最大不超过两数的乘积;最大公因数,从两数中小的数开始找起,最小不超过1.注意事项:注意空格,注意换行,注意函数原型声明…… 题解列表 2022年10月18日 0 点赞 0 评论 320 浏览 评分:0.0
1147: C语言训练-角谷猜想 摘要:```cpp #include using namespace std; int main() { int n; cin>>n; while(n!=1) …… 题解列表 2022年10月18日 0 点赞 0 评论 501 浏览 评分:9.9
类实现 —— 结构体之成绩统计2 摘要:解题思路: 定义学生类(然后初始化N个<100),每个类有属性 :学号,姓名、三科成绩 :string num,name、 vector容器注意事项: 参考代码:#include <iostre…… 题解列表 2022年10月18日 0 点赞 0 评论 415 浏览 评分:0.0
简单代码 循环考虑 摘要:解题思路:注意事项:最后加上第一次下落距离并减去最后多循环的一次距离参考代码:#include <stdio.h>int main(){ float M,ft_h,sum_h,a; int…… 题解列表 2022年10月18日 0 点赞 0 评论 280 浏览 评分:9.9
编写题解 2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:x,y=map(int,input().split()) if x>y: print('>') elif x==y: print(…… 题解列表 2022年10月18日 0 点赞 0 评论 1238 浏览 评分:9.9
编写题解 2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:n=int(input()) if n%2!=0: print('odd') else: print('even'…… 题解列表 2022年10月18日 1 点赞 0 评论 1537 浏览 评分:9.0
编写题解 2781: 奇偶ASCII值判断 摘要:解题思路:注意事项:参考代码:a=input() if ord(a)%2!=0: print('YES') else: print('NO')…… 题解列表 2022年10月18日 0 点赞 0 评论 996 浏览 评分:8.3
编写题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:print('%.2f'%abs(float(input()))) #print('{:.2f}'.format(abs(float(i…… 题解列表 2022年10月18日 1 点赞 0 评论 1463 浏览 评分:5.6