2013年11月17日

B. Levko and Permutation 简单构造

摘要: B. Levko and Permutationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLevko loves permutations very much. A permutation of lengthnis a sequence of distinct positive integers, each is at mostn.Let’s assume that valuegcd(a, b)shows the greatest co 阅读全文

posted @ 2013-11-17 16:47 keep trying 阅读(349) 评论(0) 推荐(0)

P - Psychos in a Line 单调队列

摘要: P -Psychos in a LineTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionThere arenpsychos standing in a line. Each psycho is assigned a unique integer from1ton. At each step every psycho who has an id greater than the psycho to his right 阅读全文

posted @ 2013-11-17 15:53 keep trying 阅读(260) 评论(0) 推荐(0)

导航