Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
244 B
4
Indexable
Never
#include <bits/stdc++.h>

using namespace std;

int max_digit(long long a, int digit)
{
 if(a == ???) return ???;
  else return max_digit(a / ???, max(digit, (int)(a % ???)));
}

int main()
{
 long long a;
 cin >> a;
 cout << max_digit(a, 0);
}