Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Mar 21st, 2018
96
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.31 KB
| None
|
0
0
raw
download
clone
embed
print
report
T = int(input())
for _ in range(T):
D = int(input())
h, s = 0, D
j = 0
c = 1
while(h != s):
if h + 1 <= s:
h+=1
j+=1
# print('H',h)
if s - c >= h:
s-=c
c+=1
j+=1
# print('S', s)
print(j)
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 58 sec ago | 0.38 KB
XGZP6857D
Arduino | 16 min ago | 2.15 KB
Python Watermarker
Python | 37 min ago | 3.44 KB
Userku
PHP | 41 min ago | 0.03 KB
Bitcoin and Bitcoin Testnet
Email | 1 hour ago | 0.16 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
Untitled
C++ | 1 hour ago | 4.05 KB
psi crash bt
Bash | 1 hour ago | 1.69 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!