摘要:
题意:给一连串数字,如果有前缀重复给出NO,否则给出YES思路:这道题要delete否则爆内存,之前想的直接在insert()里解决查询有错误,所以先保存数据再查询。代码:#include#include#include#include#include#include... 阅读全文
摘要:
思路:模板题,贴个模板代码:#include#include#include#include#include#include#include #include#include#include#include#include#include#define ll long... 阅读全文
摘要:
Language:DefaultStarsTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 52268Accepted: 22486DescriptionAstronomers often examine... 阅读全文
摘要:
DescriptionConsider the following 5 picture frames placed on an 9 x 8 array. ........ ........ ........ ........ .CCC....EEEEEE.. ....... 阅读全文
摘要:
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 ... 阅读全文
摘要:
DescriptionOrder is an important concept in mathematics and in computer science. For example, Zorn's Lemma states: ``a partially order... 阅读全文
摘要:
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... 阅读全文
摘要:
Problem DescriptionMery has a beautiful necklace. The necklace is made up of N magic balls. Each ball has a beautiful value. The balls... 阅读全文
摘要:
Problem Description自从Lele开发了Rating系统,他的Tetris事业更是如虎添翼,不久他遍把这个游戏推向了全球。为了更好的符合那些爱好者的喜好,Lele又想了一个新点子:他将制作一个全球Tetris高手排行榜,定时更新,名堂要比福布斯富豪榜还... 阅读全文
摘要:
Problem Description有N个比赛队(1#include#include#include#include#include#include#include #include#include#include#include#include#define ll... 阅读全文