fork download
  1. def mrF(alg, times = 1):
  2. if times % 2 == 0:
  3. return alg
  4. elif alg == 'R':
  5. return "L'"
  6. elif alg[0] == 'G':
  7. return alg
  8. elif alg[-1] == "'":
  9. return alg[:-1]
  10. elif alg[-1] == '2':
  11. return alg
  12. else:
  13. return alg + "'"
Success #stdin #stdout 0.08s 10832KB
stdin
Standard input is empty
stdout

Standard output is empty