| 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)
-
import sys from PyQt4 import QtGui class Example(QtGui.QWidget): def __init__(self): super(Example,self).__init__() ...
-
Though it is simple but has a twist when any dimension of the board is 2.Let a & b be the dimension of the board. It will be better if...
-
/*** Md. Namzul Hasan Shahjalal University of Science & Technology,Sylhet. hasan08sust@gmail.com ***/ #include<bits/stdc++.h...
No comments:
Post a Comment