摘要:
https://www.acwing.com/problem/content/1326/ 思路: 枚举起点 正反方向 如果满足.输出 #include <bits/stdc++.h> using namespace std; int n; int g[16][16]; int dx[4] = {-1 阅读全文
posted @ 2020-02-24 19:14
Hazelxcf
阅读(161)
评论(0)
推荐(0)
摘要:
给定一个单链表 L1→L2→⋯→Ln-1→Ln,请编写程序将链表重新排列为 Ln→L1→Ln−1→L2→⋯。例如:给定L为1→2→3→4→5→6,则输出应该为6→1→5→2→4→3。 输入格式: 每个输入包含1个测试用例。每个测试用例第1行给出第1个结 阅读全文
posted @ 2020-02-24 00:02
Hazelxcf
阅读(335)
评论(0)
推荐(0)

浙公网安备 33010602011771号