diff options
Diffstat (limited to 'other/find_k_beauty_num.cpp')
-rw-r--r-- | other/find_k_beauty_num.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/other/find_k_beauty_num.cpp b/other/find_k_beauty_num.cpp new file mode 100644 index 0000000..a8a224e --- /dev/null +++ b/other/find_k_beauty_num.cpp @@ -0,0 +1,16 @@ +#include "leetcode.h" + +class Solution { +public: + int divisorSubStrings(int num, int k) {} +}; + +int main() { + Solution obj; + cout << obj.divisorSubStrings(240, 2); + + int num = 240, k = 2; + string s = to_string(num); + int i = 0, j = 0, n = s.size(); + cout << s.size(); +} |