M. N. Hasan
19 December 2017
UVA 11614 Python solution
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
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
UVA 10679 - I Love Strings!!
UVA 10573 - Geometry Paradox
/* ** Md. Nazmul Hasan Shahjalal University of Science & Technology,Sylhet. hasan08sust@gmail.com ** */ # include < iostream ...
UVA 11417 python solution
from sys import stdin scan = lambda : stdin.readline() def gcd (a , b): if b== 0 : return a return gcd(b , a%b) while Tr...
No comments:
Post a Comment