汽水瓶(python代码) 摘要:解题思路:注意事项:参考代码while True: n=int(input()) if n==0: break c=0 while n>=3: c=…… 题解列表 2024年03月17日 0 点赞 0 评论 324 浏览 评分:0.0
python选择排序 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split()))a.sort()for i in a: print(i)…… 题解列表 2024年03月17日 0 点赞 0 评论 283 浏览 评分:0.0
继续畅通工程 摘要:解题思路:最小生成树,如果道路是好的就提前连上且不用成本注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f[1000]; s…… 题解列表 2024年03月17日 0 点赞 0 评论 275 浏览 评分:0.0
直接解方程组 摘要:解题思路:注意事项:参考代码:x, a, y, b = map(int, input().split())m = b*y - a*xn = b- ares= m / nprint('%.2f&…… 题解列表 2024年03月17日 1 点赞 0 评论 563 浏览 评分:0.0
注意‘'x"要大写 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int h,l,i,z,y; int d;const int n;const int j;int *p=&j;…… 题解列表 2024年03月17日 0 点赞 0 评论 397 浏览 评分:0.0
1226题解——贪心 摘要:解题思路:分奇偶两种情况考虑。注意事项:参考代码:#include <stdio.h> #include <iostream> using namespace std; int gc…… 题解列表 2024年03月17日 0 点赞 0 评论 383 浏览 评分:0.0
切开字符串-C语言 摘要:## 切开字符串-C语言 函数:正回文子串种类(manacher算法)、所有子串种类-正回文子串种类 ``` #include #define MaxChar 100001 int O…… 题解列表 2024年03月18日 0 点赞 0 评论 368 浏览 评分:0.0
自定义函数求一元二次方程,非常简单的做法 摘要:参考代码:#include<iostream> #include<math.h>using namespace std;int main(){ double a,b,c; double x1,x2,x…… 题解列表 2024年03月18日 0 点赞 0 评论 507 浏览 评分:0.0
数学真的很重要 摘要:解题思路:这是一个数学类型的题目,代码很简单,只要核心想到了答案就出来了。最大的不能买到的数字就是两个数字的最小公倍数再减去它们之和(设它为t),为什么是这样呢?最小公倍数就是两个数都可以单独构成,在…… 题解列表 2024年03月18日 0 点赞 0 评论 618 浏览 评分:0.0
成绩评定用if的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; scanf("%d",&x); if(x>=90) printf("A\n"); else if…… 题解列表 2024年03月18日 0 点赞 0 评论 506 浏览 评分:0.0