首页 > TAG信息列表 > jug

【直播预约】线上Greentea JUG Meetup

简介:【直播预约】线上Greentea JUG Meetup 因疫情而沉寂一年的GreenTea JUG Meetup,错过了太多值得被分享的技术:Java15正式发布;ZGC的生产就绪版;国内外各大厂商的各种JDK发行版;Leyden项目被提出讨论等等…… 今年为了让大家了解Java最新技术动向,获得最佳实践,我们推出了线上JU

LeetCode | 0365. Water and Jug Problem水壶问题【Python】

LeetCode 0365. Water and Jug Problem水壶问题【Medium】【Python】【BFS】【数学】 Problem LeetCode You are given two jugs with capacities x and y litres. There is an infinite amount of water supply available. You need to determine whether it is possible to me

365. 水壶问题(gcd)

题目连接: https://leetcode-cn.com/problems/water-and-jug-problem/ 题目大意: 中文题 具体思路: ax + by = z 求是否有合理的解 ,x ,y 为系数化简 a * t1 * k + b * t2 * k == z;然后 k * (a * t1 + b * t2) = z;也就是说z为 a 和 b 的gcd 的倍数特判为 0 的时候 以及 使得等式成立