Stay Hungry,Stay Foolish!

摘要: C. Fox And Names https://codeforces.com/problemset/problem/510/C 思路 使用拓扑序算法,找出前后的依赖的可能情况。 如果拓扑序未找到所有的节点,表明存在依赖环,这种情况不满足。 Code https://codeforces.com/p 阅读全文
posted @ 2023-03-01 10:25 lightsong 阅读(16) 评论(0) 推荐(0) 编辑
摘要: E - Make it Palindrome https://atcoder.jp/contests/abc290/tasks/abc290_e 思路 参考: https://zhuanlan.zhihu.com/p/608325900 双指针部分,添加解释: Code https://zhuanl 阅读全文
posted @ 2023-03-01 00:03 lightsong 阅读(38) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel