Submission #683148

#TimeUsernameProblemLanguageResultExecution timeMemory
683148beaconmcHomework (CEOI22_homework)Pypy 3
53 / 100
1050 ms339416 KiB
s = input() n = 0 for i in s: if i == "?": n += 1 s = s.replace("?", "'?'") mini = min maxi = max def min(a,b): if a=="?" or b=="?": return 1 else: return mini(a,b) def max(a,b): if a=="?": a = 1 if b=="?": b = 1 return a+b l = eval(s) def max(a,b): if a=="?" or b=="?": return 1 else: return mini(a,b) def min(a,b): if a=="?": a = 1 if b=="?": b = 1 return a+b r = n-eval(s)+1 print(r-l+1)
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...