摘要: https://ac.nowcoder.com/acm/problem/21302: 注意到x % 3 = (x * 10) % 3. 因为(x * 10) % 3 = (x % 3) * (10 % 3) = x % 3 * 1 = x % 3. 所以对余数dp即可。 // Author: lev 阅读全文
posted @ 2021-10-22 09:25 levill 阅读(32) 评论(0) 推荐(0) 编辑