3044: 电池的寿命 摘要:#include<stdio.h>int main(){ int N; int single_max; float sum = 0.0; int temp; while(scanf(&qu…… 题解列表 2025年11月12日 0 点赞 0 评论 101 浏览 评分:0.0
电池的寿命 摘要:思路: 对于有1个3,1个5的情况和3,5各有奇数个的情况没得说,对于其他情况把电池当作水即可求得。参考代码为初始未优化代码,大家可以自己更近一步修改。 参考代码: ```c #inc…… 题解列表 2023年01月12日 0 点赞 0 评论 684 浏览 评分:7.3