摘要: Using a Robot to Print the Lexicographically Smallest String You are given a string s and a robot that currently holds an empty string t . Apply one o 阅读全文
posted @ 2022-10-09 23:28 onlyblues 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 最小移动距离 平面上有 $n$ 个点,编号为 $1 \sim n$。 对于每个点 $i$($1 \leq i \leq n$),都存在一条从点 $i$ 到点 $a_i$($1 \leq a_i \leq n$,$a_i$ 可以等于 $i$)的有向边。 所有边的长度均为 $1$。 请你判断是否存在一个 阅读全文
posted @ 2022-10-09 09:55 onlyblues 阅读(131) 评论(0) 推荐(0) 编辑
Web Analytics