11 2022 档案

摘要:V<int> dis; // 离散化数组 V<int> l(n), r(n); for (int i = 0; i < n; i++) { cin >> l[i] >> r[i]; dis.push_back(l[i]), dis.push_back(r[i]); } // 离散化 sort(all 阅读全文
posted @ 2022-11-15 14:48 er007 阅读(15) 评论(0) 推荐(0) 编辑
摘要:https://www.acwing.com/solution/content/23435/ https://oiwiki.org/math/game-theory/impartial-game/ https://ac.nowcoder.com/acm/contest/26656/1048 http 阅读全文
posted @ 2022-11-11 14:05 er007 阅读(12) 评论(0) 推荐(0) 编辑
摘要:题意: 有多少种 x y 的选择方法,使得对于长度为 n 的 a 数组, 取 a[x+1] ,a[x+2] ... a[y-2] , a[y-1] 的乘积是 k 的倍数 思路: 对于所有的 x ,当选择 x = x + 1 时 y = y 满足条件 ,则此时取 x = x ,y = y 也满足条件 阅读全文
posted @ 2022-11-10 23:18 er007 阅读(25) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示