摘要:
惊了,从别人那里偷了一个dfs序。世界真神奇 dfs序什么意思呢,就是对dfs走过的地方进行标序,每个节点建立一个 struct node{ int in,out; ......... }; 这个in就是你什么时候进入这个节点,out就是什么时候从这个节点出来,程序也很好实现,加个计数cnt就行了, 阅读全文
2017年11月5日 #
2017年10月31日 #
摘要:
B. Nikita and string time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output One day Nikita foun 阅读全文
2017年10月26日 #
摘要:
D. Make a Permutation! time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Make a Permuta 阅读全文
2017年10月24日 #
摘要:
C. Qualification Rounds time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Qualification 阅读全文