2018 ACM 国际大学生程序设计竞赛上海大都会赛重现赛 F Color it
链接: https://www.nowcoder.com/acm/contest/163/F 来源:牛客网 2018 ACM 国际大学生程序设计竞赛上海大都会赛重现赛 F Color it 时间限制:C/C++ 3秒,其他语言6秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 There is a matrix A that has N rows and M columns. Each grid (i,j)(0 ≤ i < N, 0 ≤ j < M) is painted in white at first. Then we perform q operations: For each operation, we are given (x c , y c ) and r. We will paint all grids (i, j) that meets to black. You need to calculate the number of white grids left in matrix A. 输入描述: The first line of the input is T(1≤ T ≤ 40), which stands for the number of test cases you need to