can someone help me to find out bug in this code snippet.
import math t = int(input()) while t > 0 : n = int(input()) m = int((math.sqrt(1+8*n)-1)/2) o = int(m*(m+1)/2) n -= o if n < 1 : print(m) else: print(m+1) t -= 1
Asked by: rishup132 on April 7, 2019, 6:34 p.m. Last updated on April 7, 2019, 6:34 p.m.