摘要:
D. Distance in Tree time limit per test 3 seconds memory limit per test 512 megabytes input standard input output standard output A tree is a connecte 阅读全文
摘要:
query Given a permutation pp of length nn, you are asked to answer mm queries, each query can be represented as a pair (l ,r )(l,r), you need to find 阅读全文
摘要:
XKC's basketball team XKC , the captain of the basketball team , is directing a train of nn team members. He makes all members stand in a row , and nu 阅读全文
摘要:
Travel There are nn planets in the MOT galaxy, and each planet has a unique number from 1 \sim n1∼n. Each planet is connected to other planets through 阅读全文
摘要:
Swap There is a sequence of numbers of length nn, and each number in the sequence is different. There are two operations: Swap the first half and the 阅读全文