首页 > 钓鱼比赛
头像 _Bingbong
发表于 2025-01-07 22:18:38
解题思路 需要计算: cc在固定位置钓鱼 分钟的概率 ss随机钓鱼 分钟的概率 比较两者的概率并输出结果 关键点 使用while循环处理多组输入 计算至少钓到一条鱼的概率 处理浮点数比较和输出格式 代码 cpp java python #include <iost 展开全文
头像 牛客375619505号
发表于 2023-05-04 16:48:19
#include <iomanip> #include <iostream> #include <math.h> using namespace std; int main() { int m,n,x,y,t; while (cin >&g 展开全文
头像 X_IN
发表于 2023-03-27 19:41:48
while True: try: n, m, x, y, t = list(map(int, input().strip().split())) matrix = [] prob_sum = 0.0 for i in range 展开全文
头像 17c89
发表于 2024-03-13 11:40:37
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); while 展开全文

等你来战

查看全部