白细胞计数(java) 摘要:解题思路:第一个for循环用来给a数组赋值并且求出最大值,最小值,总和。第一个for循环结束后紧接着求出平均值。第二个for循环将数值给b数组(除了最大值和最小值)。 第三个for循环求出有效样本(即…… 题解列表 2023年05月12日 0 点赞 0 评论 602 浏览 评分:8.0
1322: 沙子合并 摘要:```cpp #include using namespace std; #define maxn 1001 #define INF 1…… 题解列表 2023年05月13日 0 点赞 0 评论 788 浏览 评分:8.0
2770: 计算浮点数相除的余数 摘要:解题思路:函数注意事项:最基础的方法,适合初学者参考代码:#include <stdio.h>#include <math.h>double a, b, r;int main() { scanf("%…… 题解列表 2023年05月13日 0 点赞 0 评论 1213 浏览 评分:8.0
转换成每一步代价不等的最短路问题,采用优先队列(堆)解决 摘要:解题思路:设堆顶的状态为x,y,fat,time。那么从x,y向四个方向搜索下一个点tx,ty时,有的方向会因为肥胖问题无法移动,这时我们减小身材,让他能达到tx,ty这个点(注意身材减小为1时,一定…… 题解列表 2023年05月17日 0 点赞 0 评论 501 浏览 评分:8.0
收集瓶盖赢大奖 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; …… 题解列表 2023年05月20日 0 点赞 0 评论 386 浏览 评分:8.0
2896: 二维数组右上左下遍历 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int row,col; int a[150][150]; int i…… 题解列表 2023年05月20日 1 点赞 0 评论 427 浏览 评分:8.0
禁止作弊! 摘要:解题思路:用勾股定理注意事项:禁止作弊!#include<bits\c++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c;…… 题解列表 2023年06月03日 0 点赞 1 评论 664 浏览 评分:8.0
题解:骑车与走路 摘要:各位好,我们学了if的结构,想要知道它的结构请看我的文章我来把关于此题if的结构写出来#include <bits/stdc++.h> //注意要改万能头 using namespac…… 题解列表 2023年06月03日 0 点赞 0 评论 465 浏览 评分:8.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f(int x){ int f1=1,f2=2,i,f3; if (x == 1) return f1…… 题解列表 2023年06月16日 0 点赞 0 评论 707 浏览 评分:8.0
1000: [竞赛入门]简单的a+b (python代码) 摘要: while True: #while True 语句中一定要有结束该循环的break语句,否则会一直循环下去的 try: #Python 中,用try except语句块捕获…… 题解列表 2023年07月09日 3 点赞 0 评论 1262 浏览 评分:8.0