import math | |
n = int(input()) | |
i=1 | |
while i<=n: | |
x = int(input()) | |
d = (-1 + math.sqrt(1 + 8 * x)) / 2 | |
print(int(d)) | |
i = i+1 |
Subscribe to:
Post Comments (Atom)
-
Problem Explanation Category: Easy Type: String Ad Hoc This is simple string ad hoc problem. You just need to find out a substring of...
-
/* ** Md. Nazmul Hasan Shahjalal University of Science & Technology,Sylhet. hasan08sust@gmail.com ** */ # include < iostream &...
-
/* ** Md. Nazmul Hasan Shahjalal University of Science & Technology,Sylhet. hasan08sust@gmail.com ** */ # include < iostream &...
No comments:
Post a Comment