bfs
诉说旋律
这个作者很懒,什么都没留下…
展开
-
H - Pots
You are given two pots, having the volume ofAandBliters respectively. The following operations can be performed: FILL(i) fill the poti(1 ≤i≤ 2) from the tap; DROP(i) empty the pot...原创 2019-07-29 20:52:05 · 141 阅读 · 0 评论 -
牛客NOIP暑期七天营-普及组4 C-火龙果田
小巫女从小就喜欢吃火龙果,她有一个梦想,就是用魔法变出许许多多美味可口的火龙果,这样她就可以天天享受火龙果的美味啦! 可是小巫女平常没有认真完成魔法学院的功课,魔法经常出现一些意想不到的情形,不能变出许多的火龙果。 于是,在一块 H× W 的田地里,她打算先变出 n 个品种的火龙果,并且种在坐标为 (xi,yi) 的格子内,并且美味程度为 ci,然后在剩余的格子内种满任意美味程度的火龙果...原创 2019-08-22 14:27:28 · 227 阅读 · 0 评论