Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
скобочная послед
Cheeel666
Oct 17th, 2017
79
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.25 KB
| None
|
0
0
raw
download
clone
embed
print
report
s = input()
balance = 0
for i in range(len(s)):
if s[i] == '(':
balance +=1
else:
balance -=1
if balance <0:
break
if balance == 0:
print("ALLRIGHT")
else:
print("WRONG")
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
⭐⭐ FREE BTC GUIDE ✅ Working ✅🎯
JavaScript | 49 sec ago | 0.67 KB
⭐⭐ FREE BTC GUIDE ✅ Working ⭐⭐
JavaScript | 2 min ago | 0.67 KB
⚡⚡ +10,000$ in 1 month
JavaScript | 2 min ago | 0.67 KB
💎 2OOO$ 15 MIN INSANE METHOD 💵🚨 🎯📌
JavaScript | 2 min ago | 0.67 KB
📌 QUICK 1K$ 20 MINUTES ✅✅
JavaScript | 3 min ago | 0.67 KB
📌 VIP MONEY METHOD 📌 📌🎯
JavaScript | 4 min ago | 0.67 KB
Infinite Money Glitch
JavaScript | 5 min ago | 0.67 KB
⭐⭐ FREE BTC GUIDE ✅ Working ⭐⭐
JavaScript | 5 min ago | 0.67 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!