摘要: 题意:给一连串数字,如果有前缀重复给出NO,否则给出YES思路:这道题要delete否则爆内存,之前想的直接在insert()里解决查询有错误,所以先保存数据再查询。代码:#include#include#include#include#include#include... 阅读全文
posted @ 2018-05-09 22:40 KirinSB 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 思路:模板题,贴个模板代码:#include#include#include#include#include#include#include #include#include#include#include#include#include#define ll long... 阅读全文
posted @ 2018-05-08 22:51 KirinSB 阅读(81) 评论(0) 推荐(0) 编辑
摘要: Language:DefaultStarsTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 52268Accepted: 22486DescriptionAstronomers often examine... 阅读全文
posted @ 2018-05-07 20:29 KirinSB 阅读(305) 评论(0) 推荐(0) 编辑
摘要: DescriptionConsider the following 5 picture frames placed on an 9 x 8 array. ........ ........ ........ ........ .CCC....EEEEEE.. ....... 阅读全文
posted @ 2018-05-05 21:39 KirinSB 阅读(257) 评论(0) 推荐(0) 编辑
摘要: DescriptionWindy has N balls of distinct weights from 1 unit to N units. Now he tries to label them with 1 to N in such a way that:No ... 阅读全文
posted @ 2018-05-01 15:55 KirinSB 阅读(156) 评论(0) 推荐(0) 编辑
摘要: DescriptionOrder is an important concept in mathematics and in computer science. For example, Zorn's Lemma states: ``a partially order... 阅读全文
posted @ 2018-05-01 14:10 KirinSB 阅读(277) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John's cows have discovered that the clover growing along the ridge of the hill (which we can think of as a one-dime... 阅读全文
posted @ 2018-04-30 21:04 KirinSB 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionMery has a beautiful necklace. The necklace is made up of N magic balls. Each ball has a beautiful value. The balls... 阅读全文
posted @ 2018-04-28 12:29 KirinSB 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Problem Description自从Lele开发了Rating系统,他的Tetris事业更是如虎添翼,不久他遍把这个游戏推向了全球。为了更好的符合那些爱好者的喜好,Lele又想了一个新点子:他将制作一个全球Tetris高手排行榜,定时更新,名堂要比福布斯富豪榜还... 阅读全文
posted @ 2018-04-24 17:03 KirinSB 阅读(357) 评论(0) 推荐(0) 编辑
摘要: Problem Description有N个比赛队(1#include#include#include#include#include#include#include #include#include#include#include#include#define ll... 阅读全文
posted @ 2018-04-23 20:33 KirinSB 阅读(122) 评论(0) 推荐(0) 编辑