摘要:
题目链接:HDU-4614-Vases and Flowers 题意是有n个花瓶在一个线段上,用0~n-1来标记,有两种操作,第一种是从x开始插花,一直向后插y个花,如果一个花瓶里已经插有花,则不能再插,求第一个插花的位置和最后一个插花的位置,如果一朵花都插不了的话,输出"Can not put... 阅读全文
摘要:
题目链接:HDU-4027-Can you answer these queries? 一个数最多开平方8次,所以加个剪枝,当区间和等于区间元素数时,不再递归下去, 然后要注意eps开大一点,因为原始数字是long long 的范围。 #include#include#includeusing... 阅读全文