编写题解 2835: 计算书费 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int i; float sum=0.0; for(i=0…… 题解列表 2023年08月17日 0 点赞 0 评论 340 浏览 评分:0.0
题解 2789: 骑车与走路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d", &a); if ((10*a/12)>(10*a/30+…… 题解列表 2023年08月17日 0 点赞 0 评论 440 浏览 评分:0.0
运行时间过长(半天跑不出数)的看过来!!! 摘要:解题思路: 在CPU频率中,1GHz 就是每秒10亿次运算,你可以算一算自己CPU运算速度。 但是你若在写代码的过程中——比如说这道题——使用了三重嵌套for循环,那么就是…… 题解列表 2023年08月17日 1 点赞 0 评论 526 浏览 评分:7.3
题解 2790: 分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; scanf("%f", &a); if ((int)a>=0&&(int)a…… 题解列表 2023年08月17日 0 点赞 0 评论 404 浏览 评分:0.0
题解 2791: 计算邮资 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; char b; scanf("%d %c", &a, &b); if (…… 题解列表 2023年08月17日 0 点赞 0 评论 365 浏览 评分:0.0
题解 2792: 三角形判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; scanf("%d %d %d", &a, &b, &c); if …… 题解列表 2023年08月17日 0 点赞 0 评论 561 浏览 评分:9.9
题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 100int main(){ int n, age[N]; int i, sum=0; float…… 题解列表 2023年08月17日 0 点赞 0 评论 442 浏览 评分:6.0
3150: 蓝桥杯2023年第十四届省赛真题-冶炼金属 摘要:解题思路:其实这是一道数学题,根据给出的样例进行计算,比如75 3 这组,所求V在V*3>=75并且V*4<75,分别向上取整和向下取整就能获得这组的最大最小,一共n组,在这n组中向上取整的取最大值,…… 题解列表 2023年08月17日 0 点赞 0 评论 634 浏览 评分:4.0
题解 2807 YHLX 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ int R, Y; long int M; scanf("%…… 题解列表 2023年08月17日 0 点赞 0 评论 453 浏览 评分:6.0
被3整除的子序列(动态规划) 摘要:解题思路:建立dp[i][j],代表以i结尾,余数是j的所有子序列, 转移方程:dp[i][k]=∑dp[j][w];(if(w+s[i])%3==k) dp[i][k]…… 题解列表 2023年08月17日 0 点赞 0 评论 360 浏览 评分:9.9