摘要:
大意:有两个杯子 三种操作You are given two pots, having the volume ofAandBliters respectively. The following operations can be performed:FILL(i) fill the poti(1 ≤... 阅读全文
摘要:
Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, whic... 阅读全文
摘要:
Calculate the FunctionTime Limit:2 Seconds Memory Limit:65536 KBYou are given a list of numbersA1A2..ANandMqueries. For the i-th query:The query has t... 阅读全文
摘要:
大意:告诉你一些关系a b 代表 a 和 b 是异性问这些关系中有没有错误的语句分析:有并查集维护其是否在同一个集合之中 在开一个num数组来维护对于根节点的偏移量在find的时候只需要递归到根节点返回的过程中把num数组进行维护就可以了在进行合并的时候我们需要考虑到把一个点的根节点并到另一个的根节... 阅读全文