1065: 二级C语言-最小绝对值 摘要:#include<bits/stdc++.h> using namespace std; int main(){ vector<int> a(10,0),b(10,0); …… 题解列表 2021年12月13日 0 点赞 0 评论 459 浏览 评分:0.0
有序数组插入新数据的处理-C语言 摘要:解题思路:1.一个有序数组中随机插入一个数字并能按升序输出新数组;2.那就要建立一个数组,长度为10(因为增加一个元素后数组长度+1,从原来的9变成10),先用for循环输入前9个数据(也可以用get…… 题解列表 2021年12月14日 0 点赞 0 评论 619 浏览 评分:0.0
编写题解 1484: 蓝桥杯算法提高VIP-Quadratic Equation 摘要:解题思路:注意事项:参考代码:import matha,b,c = map(float,input().split())x1=math.sqrt((-c/a)+(b/(a*2))**2)-b/(a*2…… 题解列表 2021年12月14日 0 点赞 0 评论 473 浏览 评分:0.0
编写题解 1065: 二级C语言-最小绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a[10]; for…… 题解列表 2021年12月14日 0 点赞 0 评论 424 浏览 评分:0.0
python50%错误 摘要:解题思路:不知道错在哪里注意事项:参考代码:a = input().split()b = []for i in a: if 65 <= ord(i) <= 90 or 97 <= ord(i) …… 题解列表 2021年12月14日 0 点赞 1 评论 269 浏览 评分:0.0
编写题解 2004: 统计成绩 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10]; for(int i=0;i<10;i…… 题解列表 2021年12月14日 0 点赞 0 评论 370 浏览 评分:0.0
C++求1+2!+3!+...+N!的和 摘要:两次解决第一次是int类型,导致越界 改成long long 即可 ```cpp #include using namespace std; typedef long long ll;…… 题解列表 2021年12月14日 0 点赞 0 评论 560 浏览 评分:0.0
偶数求和(c语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, m; while (~scanf("%d%d", &n, &m)) { int i, sum =…… 题解列表 2021年12月15日 0 点赞 0 评论 553 浏览 评分:0.0
编写题解 1116: IP判断 摘要:解题思路:把.作为分隔,分别判断字符串是不是属于0-255注意事项:参考代码:while True: try: n = input() ls=[] if…… 题解列表 2021年12月15日 0 点赞 0 评论 576 浏览 评分:0.0
编写题解 1084: 用筛法求之N内的素数 摘要:解题思路:注意事项:参考代码:n = int(input())ls = []for i in range(2,n+1): for j in range(2,i): if i%j =…… 题解列表 2021年12月15日 0 点赞 0 评论 466 浏览 评分:0.0