摘要:
【bzoj1962】模型王子 2015年3月26日1,6460 Description Input 输入数据共一行,两个整数N,K,用一个空格隔开,具体意义如题目中所述。 Output 输出数据共一行,为最少所需要的时间S。 Sample Input 5 3 Sample Output 5 HINT 阅读全文
posted @ 2017-12-13 21:10
Kaiser-
阅读(194)
评论(0)
推荐(0)
摘要:
Hotel The cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superior. Be 阅读全文
posted @ 2017-12-13 20:24
Kaiser-
阅读(214)
评论(0)
推荐(0)
摘要:
The Game “Man Down 100 floors” is an famous and interesting game.You can enjoy the game from http://hi.baidu.com/abcdxyzk/blog/item/16398781b4f2a5d1bd 阅读全文
posted @ 2017-12-13 19:56
Kaiser-
阅读(185)
评论(0)
推荐(0)
摘要:
Spoj 10628. Count on a tree Description 给定一棵N个节点的树,每个点有一个权值,对于M个询问(u,v,k),你需要回答u xor lastans和v这两个节点间第K小的点权。其中lastans是上一个询问的答案,初始为0,即第一个询问的u是明文。 给定一棵N个 阅读全文
posted @ 2017-12-13 19:36
Kaiser-
阅读(365)
评论(0)
推荐(0)
摘要:
D-query Given a sequence of n numbers a1, a2, ..., an and a number of d-queries. A d-query is a pair (i, j) (1 ≤ i ≤ j ≤ n). For each d-query (i, j), 阅读全文
posted @ 2017-12-13 16:12
Kaiser-
阅读(439)
评论(0)
推荐(0)
摘要:
维护括号序列 Replace(i): 将第i个位置的括号反向。 Check:测试当前序列是否合法。 题解 将左括号定为1,右括号定为-1,所以只需要满足前缀和序列没有负数即可,即最小值 为正即可,第i个括号反向,就是该位置 n减2或者加2 阅读全文
posted @ 2017-12-13 16:06
Kaiser-
阅读(378)
评论(0)
推荐(0)
摘要:
[Coci 2009]PATULJCI Description Input Output 10 31 2 1 2 1 2 3 2 3 381 21 31 41 52 52 66 97 10 10 31 2 1 2 1 2 3 2 3 381 21 31 41 52 52 66 97 10 Sampl 阅读全文
posted @ 2017-12-13 14:24
Kaiser-
阅读(152)
评论(0)
推荐(0)

浙公网安备 33010602011771号