Back
Close

Exponent Scramble

Statement

 Goal

You are given a base, N, and a solution, Y. You must find the exponent needed to get from the base to the solution (such that N ^ X = Y) and print it.
Input
Line 1: An integer, N, for the base
Line 2: An integer, Y, for the solution
Output
Line 1: An integer for the exponent needed to get from N to Y
Constraints
N > 0
Y > 0
Example
Input
2
4
Output
2

Game modes
FastestReverse

Test cases
Simple Test
Input
2 4
Output
2

Simple Validator
Input
4 64
Output
3

Greater Numbers Test
Input
25 390625
Output
4

Greater Numbers Validator
Input
101 1030301
Output
3

Haven't I Seen You Before? Test
Input
43 43
Output
1

Haven't I Seen You Before? Validator
Input
56 56
Output
1

The Hardest Question Test
Input
99 1
Output
0

The Hardest Question Validator
Input
56 1
Output
0

Solution language

Solution

Stub generator input