add: 220218-CN [C++]
This commit is contained in:
parent
095e769cb0
commit
0a41b5abf5
|
|
@ -0,0 +1,8 @@
|
|||
#include <vector>
|
||||
|
||||
class Solution {
|
||||
public:
|
||||
static int findCenter(const std::vector<std::vector<int>>& edges) {
|
||||
return edges[0][(edges[0][0] == edges[1][0] || edges[0][0] == edges[1][1]) ? 0 : 1];
|
||||
}
|
||||
};
|
||||
|
|
@ -3,4 +3,4 @@ PROJECT(2202)
|
|||
|
||||
SET(CMAKE_CXX_STANDARD 23)
|
||||
|
||||
ADD_EXECUTABLE(2202 220217-CN.cpp)
|
||||
ADD_EXECUTABLE(2202 220218-CN.cpp)
|
||||
|
|
|
|||
Loading…
Reference in New Issue