摘要:
题意: 有多少种 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 也满足条件 阅读全文
摘要:
链接:https://ac.nowcoder.com/acm/contest/35146/B来源:牛客网 题目描述 There is a kingdom that has nnn cities connected by n−1n-1n−1 roads. All roads' length is 11 阅读全文
摘要:
https://codeforces.com/gym/103107/problem/A A. And RMQ time limit per test 3 seconds memory limit per test 512 megabytes input standard input output s 阅读全文