Giter Club home page Giter Club logo

Comments (12)

Hots-J avatar Hots-J commented on May 5, 2024 8

在从药瓶里倒出1粒药片A,现在有4片药,把每片药都切一半,然后只吃每片药的一半,剩下的4分半片药第二天吃

from leetcode.

Gemiry avatar Gemiry commented on May 5, 2024 2

哈哈,可以拿出一个A在弄成粉末,分成2次就可以了

from leetcode.

scv057 avatar scv057 commented on May 5, 2024

再倒出一片A在0点服下4颗药? 跑了 跑了。。

from leetcode.

JumpJumpSparrow avatar JumpJumpSparrow commented on May 5, 2024

在不破坏药片、或借助量器的情况下,无解

from leetcode.

azl397985856 avatar azl397985856 commented on May 5, 2024

在不破坏药片、或借助量器的情况下,无解

那如果可以破坏呢

from leetcode.

stale avatar stale commented on May 5, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from leetcode.

chaheti89 avatar chaheti89 commented on May 5, 2024

I'm assuming that pills A and B taste differently. So take half of each, that way you will know which tastes different, and then u can half the other half from differently tasting pill. Thus you will have exact amount of dose.

from leetcode.

cherie-wuyajun avatar cherie-wuyajun commented on May 5, 2024

from leetcode.

xiaosisong avatar xiaosisong commented on May 5, 2024

from leetcode.

lording avatar lording commented on May 5, 2024

from leetcode.

azl397985856 avatar azl397985856 commented on May 5, 2024

I'm assuming that pills A and B taste differently. So take half of each, that way you will know which tastes different, and then u can half the other half from differently tasting pill. Thus you will have exact amount of dose.

pill A and pill B may have same taste. I will post my anwser below in both English and Chinese

from leetcode.

azl397985856 avatar azl397985856 commented on May 5, 2024

我们可以将手中的三个药片均进行二等分,然后将其中一半放到左面,另一半放到右面。这样下来,左面和右面分别有半个A和一个B。接下来,我们再从A中拿出一片药,同样进行等分操作,即进行二等分,然后将其中一半放到左面,另一半放到右面。

这样左右两面都有一个A和一个B,吃其中一组,第二天吃剩下的一组即可。

We can divide the three pills in our hand into two parts, and then put half of them on the left side and the other half on the right side. In this way, there are half A and one B on the left and right respectively. Next, we take out a piece of pill from A, and perform the same division operation, that is, divide it into two equal parts, and then put half of it on the left side and the other half on the right side.

In this way, there is an A and a B on the left and right sides, eat one of them, and eat the rest the next day.

from leetcode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.