The 45th international undergraduate Programming Competition (ICPC) Asian regional competition (Nanjing) E.Evil Coordinate (classified discussion + simulation)

https://ac.nowcoder.com/acm/contest/21739/E There is a simpler way to solve this problem (enumerating all UDLR permutations). It took me 2 and a half hours to finally AC Idea: 1. First of all, we can think that given a sequence of walking methods, no matter how the sequence is arranged, its end point must be determined. Therefore, if the bo ...

Posted by vivekjain on Wed, 13 Oct 2021 16:42:16 +0200