编写题解 2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:n=int(input()) if n%2!=0: print('odd') else: print('even'…… 题解列表 2022年10月18日 1 点赞 0 评论 1438 浏览 评分:9.9
编写题解 2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:x,y=map(int,input().split()) if x>y: print('>') elif x==y: print(…… 题解列表 2022年10月18日 0 点赞 0 评论 1169 浏览 评分:9.9
简单代码 循环考虑 摘要:解题思路:注意事项:最后加上第一次下落距离并减去最后多循环的一次距离参考代码:#include <stdio.h>int main(){ float M,ft_h,sum_h,a; int…… 题解列表 2022年10月18日 0 点赞 0 评论 219 浏览 评分:9.9
1147: C语言训练-角谷猜想 摘要:```cpp #include using namespace std; int main() { int n; cin>>n; while(n!=1) …… 题解列表 2022年10月18日 0 点赞 0 评论 447 浏览 评分:9.9
字符删除——思路简单,6行代码 摘要:解题思路:坑:输入记得删空格,两个输入都得删,否则只能对91%注意事项:参考代码:s1=str(input().strip()) #输入删除空格c=str(input().strip())fo…… 题解列表 2022年10月18日 0 点赞 0 评论 642 浏览 评分:9.9
完数——超简单思路+避坑 摘要:解题思路:从2到该数开方取大,挨个除,能整除则除数和商都是因数,加到总和上,最后判断总和与这个数是否相同,相同就是完数注意事项:坑:1不是完数,踩这个坑只能对91%参考代码:import mathx=…… 题解列表 2022年10月18日 0 点赞 0 评论 392 浏览 评分:9.9
某位大佬的题解,我这个更容易理解并且删除了不必要的内容 摘要:解题思路:注意事项:参考代码:def lucky_number(down, top): nums = [i for i in range(1, top + 1)] sum = 0 a…… 题解列表 2022年10月18日 0 点赞 0 评论 341 浏览 评分:9.9
迭代求平方根简化 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x1,x2; int a; x2=1.0; …… 题解列表 2022年10月18日 0 点赞 1 评论 642 浏览 评分:9.9
去空格 区分scanf 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i=0,t=0,j=0,z=0,h=0,k=0,l=0,m=0; char a[100],b[100],…… 题解列表 2022年10月18日 0 点赞 0 评论 470 浏览 评分:9.9
题解1010:利润计算(c++) 摘要:解题思路:原题:企业发放的奖金根据利润提成。利润低于或等于100000元的,奖金可提10%;利润高于100000元,低于200000元(100000<I≤200000)时,低于100000元的部分按1…… 题解列表 2022年10月18日 2 点赞 0 评论 1307 浏览 评分:9.9