Stay Hungry,Stay Foolish!

摘要: B - New Place https://atcoder.jp/contests/arc154/tasks/arc154_b 思路 https://blog.csdn.net/nike0good/article/details/128751025 由于操作的特殊性,从s的第一个字符删除,插入后面任 阅读全文
posted @ 2023-01-23 20:17 lightsong 阅读(38) 评论(0) 推荐(0) 编辑
摘要: A - Swap Digit https://atcoder.jp/contests/arc154/tasks/arc154_a 思路 A 和 B中数字需要互换, 互换的准则是,使得 互换后的 AB 乘积最小, 互换后的 A 和 B 差值尽量大 即: 将对应位置的 数字, 小的数字放在A, 大的数字 阅读全文
posted @ 2023-01-23 18:28 lightsong 阅读(41) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel