采药python,不知哪里错了,请求支援 摘要:解题思路:注意事项:参考代码:各位大神帮我看看哪里有问题,实在找不出哪里错了。。。。。我测试的数据都成功t,m = map(int,input().split())s = []h = 0sum = 0…… 题解列表 2022年11月04日 0 点赞 0 评论 449 浏览 评分:9.9
C语言考试练习题_一元二次方程(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double a,b,c,x1,x2,t; scanf("%lf %lf %lf",&a,&b,&c…… 题解列表 2022年11月04日 0 点赞 0 评论 323 浏览 评分:9.9
1160: 出圈(c++) 摘要:```cpp #include using namespace std; int main() { int n,m; while(cin>>n>>m) { …… 题解列表 2022年11月05日 0 点赞 0 评论 483 浏览 评分:9.9
1043一行解(Python) 摘要:注意事项:可以参考一下其他人的一行解,体会其中的不同点参考代码:for data in [i for i in sorted(map(int, input().split()))] : print(d…… 题解列表 2022年11月05日 0 点赞 0 评论 286 浏览 评分:9.9
1058: 二级C语言-求偶数和 题解 摘要:解题思路:1.输入需要输入n个整数;2.通过for循环输入n个整数;3.每通过for循环得到一个数,就判断它是否是偶数,如果是,就直接和偶数和相加。注意事项:输入的整数之间用空格分开。#include…… 题解列表 2022年11月05日 0 点赞 0 评论 349 浏览 评分:9.9
1044一行解(Python) 摘要:注意事项:这种解法同时适用于更多字符串输入的情形参考代码:import sysfor data in sorted([data.strip() for data in sys.stdin]) : pr…… 题解列表 2022年11月05日 0 点赞 0 评论 471 浏览 评分:9.9
2239: 蓝桥杯算法训练-动态数组使用(c++stl) 摘要:```cpp #include//万能头文件 using namespace std; int main() { int n; cin >> n;//输入长度 vectorv1(n)…… 题解列表 2022年11月05日 0 点赞 0 评论 304 浏览 评分:9.9
1026一行解(Python) 摘要:注意事项:注意题目的要求最后能不能存在空格,要是不允许空格存在还需要对最后一位进行处理参考代码:for i in input().split()[::-1]:print(i,end=' …… 题解列表 2022年11月05日 0 点赞 0 评论 618 浏览 评分:9.9
细节!!! 摘要:解题思路:简单的输入输出题注意事项:在输出n=10,m=1实际上输出的是99.20,但是输其他数据是正常的,所以这里只要加个判断语句就可以了参考代码:#include <stdio.h>int mai…… 题解列表 2022年11月05日 0 点赞 15 评论 1167 浏览 评分:9.9
简单的思路——骑车与走路 摘要:解题思路:数学+if else-if else语句。注意事项:不要将速度弄错了!参考代码:#include<stdio.h>int main(){ int a; float t1,t2; …… 题解列表 2022年11月05日 0 点赞 2 评论 1038 浏览 评分:9.9