problemscpp
A collection of my answers to algorithm problems in c++.
| 函数
leetcode::count_artifacts_that_can_be_extracted 命名空间参考

LeetCode 5203. 统计可以提取的工件 更多...

class  Solution
 

函数

 TEST (count_artifacts_that_can_be_extracted, case1)
 
 TEST (count_artifacts_that_can_be_extracted, case2)
 

详细描述

LeetCode 5203. 统计可以提取的工件

函数说明

◆ TEST() [1/2]

leetcode::count_artifacts_that_can_be_extracted::TEST ( count_artifacts_that_can_be_extracted  ,
case1   
)

在文件 leetcode_test.cpp2192 行定义.

2192 {
2193 vector<vector<int>> artifacts = {{0, 0, 0, 0}, {0, 1, 1, 1}};
2194 vector<vector<int>> dig = {{0, 0}, {0, 1}};
2195 ASSERT_EQ(1, Solution::digArtifacts(2, artifacts, dig));
2196 }

引用了 leetcode::count_artifacts_that_can_be_extracted::Solution::digArtifacts().

◆ TEST() [2/2]

leetcode::count_artifacts_that_can_be_extracted::TEST ( count_artifacts_that_can_be_extracted  ,
case2   
)

在文件 leetcode_test.cpp2198 行定义.

2198 {
2199 vector<vector<int>> artifacts = {{0, 0, 0, 0}, {0, 1, 1, 1}};
2200 vector<vector<int>> dig = {{0, 0}, {0, 1}, {1, 1}};
2201 ASSERT_EQ(2, Solution::digArtifacts(2, artifacts, dig));
2202 }

引用了 leetcode::count_artifacts_that_can_be_extracted::Solution::digArtifacts().