摘要: Trim the NailsTime Limit:2 Seconds Memory Limit:65536 KBRobert is clipping his fingernails. But the nail clipper is old and the edge of the nail clipper is potholed.The nail clipper's edge isNmillimeters wide. And we useNcharacters('.' or '*') to represent the potholed nail clipp 阅读全文
posted @ 2012-11-25 17:40 YogyKwan 阅读(219) 评论(0) 推荐(0) 编辑
摘要: D.Japanese Mahjong I模拟:枚举每张牌加入,判断是否能组成4*3+2的模式F.Japanese Mahjong III模拟:直接判断是否七对或十三烂G.Gao The Sequence贪心:转化为差数组上的操作。从后往前扫,若目前节余值t加上剩余的差之和仍然当前扫到的差,则NO。一直没有NO就是YES。I.Search in the Wiki暴力:直接用stl的set_intersection判断交集J.Trim the Nailsbfs:每次用没有用过的方式去剪指甲,结果为0,即指甲剪光了就结束45 jingg.cxy4100284 (1)0105 (1)00265 (2) 阅读全文
posted @ 2012-11-25 17:22 YogyKwan 阅读(286) 评论(0) 推荐(0) 编辑