04 2022 档案
摘要:原理图如上:主要思路是割裂,从前到后有层次的逆置,先逆置12,此时3456...都被割裂开了,然后将3连同逆置,一直这样下去。 头文件如下: 链表类的声明 #include<bits/stdc++.h> using namespace std; template<class T> struct No
阅读全文
摘要:A. Red Versus Blue time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Team Red and Team Blue
阅读全文