Loading

摘要: 链接:https://ac.nowcoder.com/acm/contest/11254/B 来源:牛客网 题目描述 Goodeat has a white chessboard with n rows and m columns. Each grid (i, j) has a weight c(i 阅读全文
posted @ 2021-07-25 16:06 脂环 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 如果边权不大(1e6以下)的话可以不直接sort而是使用桶排序,开边权范围的vector数组不断往对应的vector里push_back边即可 阅读全文
posted @ 2021-07-25 11:14 脂环 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/11254/E 来源:牛客网 题目描述 Given n, count the number of pairs of positive integers (x, y), such that xy+1∣x2+y2,1≤x≤y≤ 阅读全文
posted @ 2021-07-25 00:23 脂环 阅读(375) 评论(2) 推荐(3) 编辑