又水水水水水。。。了一题 摘要:解题思路:加法最快,一直加到n/4,又1=4/4,2=(4+4)/4,3=4-4/4,所以模余一再加一,余二余三再加二注意事项:参考代码:#include<stdio.h>int main(){ …… 题解列表 2021年12月14日 0 点赞 0 评论 514 浏览 评分:9.9
蓝桥杯2018年第九届真题-次数差(C-不用排序代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char str[1001]; int fen[26]=…… 题解列表 2021年12月14日 0 点赞 0 评论 572 浏览 评分:9.9
1014: [编程入门]阶乘求和 摘要:解题思路:先搞清楚思路,再编程序注意事项:参考代码:n=int(input())Sn=0x=1for i in range(1,n+1): for j in range(1,n+1): …… 题解列表 2021年12月14日 0 点赞 2 评论 440 浏览 评分:8.0
适用新手代码 摘要:注意事项:1.题目说在所有的测试数据中,结果均不超过2.1*10^9所以long long用不了2.pow精度有问题过不了…… 题解列表 2021年12月14日 0 点赞 0 评论 466 浏览 评分:9.9
C++求1+2!+3!+...+N!的和 摘要:两次解决第一次是int类型,导致越界 改成long long 即可 ```cpp #include using namespace std; typedef long long ll;…… 题解列表 2021年12月14日 0 点赞 0 评论 532 浏览 评分: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 评论 327 浏览 评分: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 评论 250 浏览 评分:0.0
编写题解 1065: 二级C语言-最小绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a[10]; for…… 题解列表 2021年12月14日 0 点赞 0 评论 388 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断(C语言版) 摘要:解题思路:利用数组以及循环注意事项:要注意效率参考代码:#include<stdio.h>#define N 100int main(){ int n, i, j, sum, a[N], k; …… 题解列表 2021年12月14日 0 点赞 0 评论 409 浏览 评分:9.9
编写题解 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 评论 424 浏览 评分:0.0