sum-of-digits-in-base-k 1.0.0
Sum of Digits in Base K
Loading...
Searching...
No Matches
main.cpp File Reference
#include <bits/stdc++.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Data Structures

class  Solution
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 23 of file main.cpp.

24{
25 int n = 34;
26 int k = 6;
27 try
28 {
29 cout << Solution().sumBase(n, k) << endl;
30 }
31 catch(const std::exception& e)
32 {
33 cerr << e.what() << endl;
34 }
35 return 0;
36}
int sumBase(int n, int k)
Definition main.cpp:8

References Solution::sumBase().