acmsguru |
---|
Finished |
case =for "
weigh 1+2 vs 3+4because the pans will never be equal there). For every weighing the numbers of coins on both pans should be equal, and no coin should be simultaneously put on both pans.
sample input | sample output |
4 | need 2 weighings weigh 1 vs 2 case <: weigh 1+2 vs 3+4 case <: fake 1 case >: fake 2 end case =: weigh 1 vs 3 case =: fake 4 case <: fake 3 case >: fake 3 end case >: weigh 1+2 vs 4+3 case >: fake 1 case <: fake 2 end end |
Name |
---|