出处: Codeforces
主要算法:数学
难度:4.7
思路分析:
题目由于是英文的,好长时间没读懂,而且还读错。注意he needs to find the number of contiguous subarrays这句,是连续的子序列,所以子序列仅仅只有\(\frac{n(n+1)}{2}\)个
代码注意点:
细节!!!
出处: Codeforces
主要算法:数学
难度:4.7
题目由于是英文的,好长时间没读懂,而且还读错。注意he needs to find the number of contiguous subarrays这句,是连续的子序列,所以子序列仅仅只有\(\frac{n(n+1)}{2}\)个
细节!!!