#41387: python


suyueh (suyueh)

學校 : 不指定學校
編號 : 272111
來源 : [101.12.162.212]
最後登入時間 :
2024-11-10 22:20:41
a647. 投資專家 | From: [125.229.229.84] | 發表日期 : 2024-07-23 15:54

n = int(input())
for i in range(n):
  m, p = map(int, input().split())
  r = (p-m)/m*100
  if r<0:
    r = r - 0.000001    
  elif r>0:
    r = r + 0.000001    
  if r >= 10 or r <= -7:  
    t = 'dispose'
  else:
    t = 'keep'
  print(f'{r:.2f}% {t}')  
 
ZeroJudge Forum