摘要: 原理图如上:主要思路是割裂,从前到后有层次的逆置,先逆置12,此时3456...都被割裂开了,然后将3连同逆置,一直这样下去。 头文件如下: 链表类的声明 #include<bits/stdc++.h> using namespace std; template<class T> struct No 阅读全文
posted @ 2022-04-18 10:53 Gustavo09 阅读(40) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2022-04-18 10:40 Gustavo09 阅读(12) 评论(0) 推荐(0)