适用新手代码 注意事项:1.题目说在所有的测试数据中,结果均不超过2.1*10^9所以longlong用不了2.pow精度有问题过不了 题解列表 2021年12月14日 0 点赞 0 评论 688 浏览 评分:9.9
蓝桥杯2018年第九届真题-次数差(C-不用排序代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char str[1001]; int fen[26]=…… 题解列表 2021年12月14日 0 点赞 0 评论 924 浏览 评分: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 评论 658 浏览 评分: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 评论 638 浏览 评分: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 评论 566 浏览 评分:9.9
1019: [编程入门]自由下落的距离计算 摘要:解题思路:把球落下和上升看做一个反弹周期,每个反弹周期经过的距离等于每个反弹周期时反弹高度*3参考代码:#includeint main(){ double m,n,sum=0; scan…… 题解列表 2021年12月15日 0 点赞 0 评论 561 浏览 评分:9.9
构造数字排序(C++) 摘要:解题思路:使用数字排序 控制格式输出注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,…… 题解列表 2021年12月15日 0 点赞 0 评论 777 浏览 评分:9.9
Minesweeper(c 语言)简单明了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>char sweep(char a[][100],int n,int m){ int i,j,k=0; char coun…… 题解列表 2021年12月16日 0 点赞 1 评论 590 浏览 评分:9.9
编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:for循环注意事项:求总路程的时候要减去最后一次反弹的高度参考代码:#include<stdio.h>int main(){ int n; float h; scanf("…… 题解列表 2021年12月16日 0 点赞 0 评论 514 浏览 评分:9.9
2131-01背包-动态规划 摘要:#include<stdio.h> int a[31][201]; int max(int a,int b) { return a>b?a:b; } void beibao(int M,…… 题解列表 2021年12月16日 0 点赞 0 评论 802 浏览 评分:9.9