python编写题解 1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:参考代码:from math import sqrt a, b, c = map(int, input().split()) d = b**2-4*a*c e = sqrt(4*a*c…… 题解列表 2024年03月07日 0 点赞 0 评论 385 浏览 评分:0.0
python编写题解 1480: 模拟计算器 摘要:注意事项: 商是整除while True: try: a, b, c = map(str, input().split()) a, b = int(a),…… 题解列表 2024年03月07日 0 点赞 0 评论 240 浏览 评分:0.0
不用多余变量完成 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void dg(int n, char* arr){ if (n - strlen(arr…… 题解列表 2024年03月07日 1 点赞 0 评论 334 浏览 评分:0.0
用筛法求之N内的素数 摘要:解题思路:筛法就是把数据按从小到大的顺序排列,找到第一个素数,再筛选掉数据内所有与此数有关的数,完成之后再找下一个素数,再次筛选,以此类推注意事项:参考代码:#include<iostream>usi…… 题解列表 2024年03月07日 0 点赞 0 评论 368 浏览 评分:0.0
A+B for Input-Output Practice (I) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) cou…… 题解列表 2024年03月07日 0 点赞 0 评论 603 浏览 评分:10.0
python编写题解 2773: 计算线段长度 摘要:解题思路:两点间距离公式注意事项:测试数据都是一组,不是两组。参考代码:from math import sqrt number = input().split() if len(number) …… 题解列表 2024年03月07日 2 点赞 4 评论 759 浏览 评分:9.9
A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; int arr[100]; int sum = 0; c…… 题解列表 2024年03月07日 0 点赞 0 评论 510 浏览 评分:0.0
A+B for Input-Output Practice (III) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b; while(cin>>a>>b) { if (a…… 题解列表 2024年03月07日 0 点赞 0 评论 237 浏览 评分:0.0
A+B for Input-Output Practice (IV) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b,sum=0; while (cin >> a && …… 题解列表 2024年03月07日 0 点赞 0 评论 355 浏览 评分:0.0