求平方和简单写法 摘要:参考代码:#include<stdio.h>#include<math.h>int main(){ int a=3; int b=4; scanf("%d%d",&a,&b); print…… 题解列表 2023年10月16日 0 点赞 0 评论 769 浏览 评分:9.9
分段函数简单题解 摘要:参考代码:#include<stdio.h>#include<math.h>int main(){ int x,y=0; scanf("%d",&x); if(x<1) { y=x; …… 题解列表 2023年10月16日 0 点赞 0 评论 377 浏览 评分:9.9
求一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a, b, c, x1=0, x2=0; scanf(…… 题解列表 2023年10月16日 0 点赞 0 评论 301 浏览 评分:9.9
贪心快乐司机 摘要:解题思路:跟金银岛一样,https://blog.dotcpp.com/a/98826注意事项:参考代码:n,w = map(int,input().split()) gi = [] # 重量…… 题解列表 2023年10月16日 0 点赞 0 评论 556 浏览 评分:9.9
小白都能看懂的解答 摘要:解题思路:其实后面间距是一样的200000,最后一个是400000,写的时候可以改一下,当时懒不愿改了注意事项:参考代码:#include<stdio.h>int main(){ int x,y; s…… 题解列表 2023年10月16日 0 点赞 0 评论 333 浏览 评分:9.9
看看天才怎么写的 摘要:def isprime(x): if x < 2: return False for i in range(2, int(x**0.5) + 1): & 题解列表 2023年10月16日 0 点赞 0 评论 369 浏览 评分:9.9
暴力最小正整数 摘要:解题思路:想太多思维容易一坨,还是暴力吧。。注意事项:参考代码:def count(num): # 统计十进制数num的二进制形式中‘1’的个数 cnt = 0 …… 题解列表 2023年10月16日 0 点赞 1 评论 310 浏览 评分:9.9
偶数求和的直观思路 摘要:解题思路:1.先假设n正好是m的整数倍,即正好可以求出(n/m)个平均值;2. 如果有剩下的数,最后再将剩下的数相加然后求平均数;注意事项:注意格式,注意设置一个变量来存放平均数加到哪了;参考代码:#…… 题解列表 2023年10月16日 0 点赞 0 评论 318 浏览 评分:9.9
暴力寂寞的数 摘要:解题思路:想太多思维容易一坨,还是暴力吧。。注意事项:参考代码:def d(num): temp = [int(i) for i in str(num)] return num +…… 题解列表 2023年10月16日 0 点赞 0 评论 274 浏览 评分:9.9
欣赏天才之作 摘要:import math def find_defective_ball(N): k = math.ceil(math.log(N, 3)) return k while Tru…… 题解列表 2023年10月16日 1 点赞 0 评论 631 浏览 评分:9.9