Created
July 15, 2017 05:24
-
-
Save IKKO-Ohta/146976037160970d5bde849fcd19b6d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
S = input().split("+") | |
ans = 0 | |
for elem in S: | |
elem = elem.split("*") | |
if not("0" in elem): | |
ans += 1 | |
print(ans) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment