Buggy python submission (verdict: Time Limit Exceeded):
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X):
  for j in range(2,X):
    beki = i ** j
    
    if beki > max_beki:
      if beki <= X:
        max_beki = beki
 
print(max_beki)


Fixed submission:
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X):
  for j in range(2,X):
    beki = i ** j
    
    if beki > X:
      break
      
    elif beki > max_beki:
      max_beki = beki
 
print(max_beki)

Buggy python submission (verdict: Runtime Error):
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X/2):
  for j in range(2,X/2):
    beki = i ** j
    
    if beki > max_beki:
      if beki <= X:
        max_beki = beki
      
print(max_beki)


Fixed submission:
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X):
  for j in range(2,X):
    beki = i ** j
    
    if beki > X:
      break
      
    elif beki > max_beki:
      max_beki = beki
 
print(max_beki)

Buggy python submission (verdict: Runtime Error):
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X/2):
  for j in range(2,X/2):
    beki = i %% j
    
    if beki > max_beki:
      if beki <= X:
        max_beki = beki
      
print(max_beki)


Fixed submission:
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X):
  for j in range(2,X):
    beki = i ** j
    
    if beki > X:
      break
      
    elif beki > max_beki:
      max_beki = beki
 
print(max_beki)

Buggy python submission (verdict: Time Limit Exceeded):
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X):
  for j in range(2,X):
    beki = i ** j
    
    if beki > max_beki:
      if beki <= X:
        max_beki = beki
      
print(max_beki)


Fixed submission:
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X):
  for j in range(2,X):
    beki = i ** j
    
    if beki > X:
      break
      
    elif beki > max_beki:
      max_beki = beki
 
print(max_beki)

Buggy python submission (verdict: Runtime Error):
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X):
  for j in range(2,X):
    beki = i %% j
    
    if beki > max_beki:
      if beki <= X:
        max_beki = beki
      
print(max_beki)


Fixed submission:
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X):
  for j in range(2,X):
    beki = i ** j
    
    if beki > X:
      break
      
    elif beki > max_beki:
      max_beki = beki
 
print(max_beki)

Buggy python submission (verdict: Runtime Error):
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X):
  for j in range(2,X):
    beki = b %% p
    
    if beki > max_beki:
      if beki <= X:
        max_beki = beki
      
print(max_beki)


Fixed submission:
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X):
  for j in range(2,X):
    beki = i ** j
    
    if beki > X:
      break
      
    elif beki > max_beki:
      max_beki = beki
 
print(max_beki)

Buggy python submission (verdict: Runtime Error):
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X):
  for j in range(2,X):
    beki = b %% p
    
    if beki > max_beki:
      max_beki = beki
      
print(max_beki)

Fixed submission:
#標準入力
X = int(input())

max_beki = 1
for i in range(1,X):
  for j in range(2,X):
    beki = i ** j
    
    if beki > X:
      break
      
    elif beki > max_beki:
      max_beki = beki
 
print(max_beki)