1442: 蓝桥杯2013年第四届真题-打印十字图 摘要: n = int(input()) l = [['.']*(4*n+5+1) for _ in range(4*n+5+1)] l[2*n+3][2*n+3] = '$' …… 题解列表 2021年12月13日 0 点赞 0 评论 579 浏览 评分:9.9
题目 1177: 三角形-C语言递推解法 摘要:解题思路:递推注意事项:时间限制参考代码:#include<stdio.h> int main() { int tu[105][105]={0}; int zong,n; scanf(…… 题解列表 2021年12月14日 0 点赞 0 评论 1019 浏览 评分:9.9
编写题解 1017: [编程入门]完数的判断(C语言版) 摘要:解题思路:利用数组以及循环注意事项:要注意效率参考代码:#include<stdio.h>#define N 100int main(){ int n, i, j, sum, a[N], k; …… 题解列表 2021年12月14日 0 点赞 0 评论 462 浏览 评分:9.9
适用新手代码 摘要:注意事项:1.题目说在所有的测试数据中,结果均不超过2.1*10^9所以long long用不了2.pow精度有问题过不了…… 题解列表 2021年12月14日 0 点赞 0 评论 545 浏览 评分:9.9
蓝桥杯2018年第九届真题-次数差(C-不用排序代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char str[1001]; int fen[26]=…… 题解列表 2021年12月14日 0 点赞 0 评论 693 浏览 评分:9.9
又水水水水水。。。了一题 摘要:解题思路:加法最快,一直加到n/4,又1=4/4,2=(4+4)/4,3=4-4/4,所以模余一再加一,余二余三再加二注意事项:参考代码:#include<stdio.h>int main(){ …… 题解列表 2021年12月14日 0 点赞 0 评论 559 浏览 评分:9.9
最大公约数与最小公倍数(c语言代码) 摘要:#include<stdio.h>int main(){ int a,b,m,i=0; scanf("%d %d",&a,&b); while(1) { i++; if((i%a=…… 题解列表 2021年12月15日 0 点赞 1 评论 504 浏览 评分:9.9
1088: A+B for Input-Output Practice (IV) 摘要:#include<bits/stdc++.h> using namespace std; int main(){ int a,n; int sum; while…… 题解列表 2021年12月15日 0 点赞 0 评论 454 浏览 评分:9.9
1019: [编程入门]自由下落的距离计算 摘要:解题思路:把球落下和上升看做一个反弹周期,每个反弹周期经过的距离等于每个反弹周期时反弹高度*3参考代码:#includeint main(){ double m,n,sum=0; scan…… 题解列表 2021年12月15日 0 点赞 0 评论 441 浏览 评分:9.9
构造数字排序(C++) 摘要:解题思路:使用数字排序 控制格式输出注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,…… 题解列表 2021年12月15日 0 点赞 0 评论 655 浏览 评分:9.9