← Back to List

24405번: Eye of Sauron ↗

Solutions

Python 3
148 B | 148 chars
s = input()
n = len(s)
d = n // 2

if n % 2 == 1 or s[d - 1] != '(' or s[d] != ')' or s.count('|') != n - 2:
  print("fix")
else:
  print("correct")