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

LeetCode 5997. 找到和为给定整数的三个连续整数 更多...

class  Solution
 

函数

 TEST (find_three_consecutive_integers_that_sum_to_a_given_number, case1)
 
 TEST (find_three_consecutive_integers_that_sum_to_a_given_number, case2)
 

详细描述

LeetCode 5997. 找到和为给定整数的三个连续整数

函数说明

◆ TEST() [1/2]

leetcode::find_three_consecutive_integers_that_sum_to_a_given_number::TEST ( find_three_consecutive_integers_that_sum_to_a_given_number  ,
case1   
)

在文件 leetcode_test.cpp1605 行定义.

1605 {
1606 const vector<long long> output = {10, 11, 12};
1607 ASSERT_EQ(output, Solution::sumOfThree(33));
1608 }

引用了 leetcode::find_three_consecutive_integers_that_sum_to_a_given_number::Solution::sumOfThree().

◆ TEST() [2/2]

leetcode::find_three_consecutive_integers_that_sum_to_a_given_number::TEST ( find_three_consecutive_integers_that_sum_to_a_given_number  ,
case2   
)

在文件 leetcode_test.cpp1610 行定义.

1610 {
1611 const vector<long long> output = {};
1612 ASSERT_EQ(output, Solution::sumOfThree(4));
1613 }

引用了 leetcode::find_three_consecutive_integers_that_sum_to_a_given_number::Solution::sumOfThree().