fork download
  1. m = int(input())
  2. d = int(input())
  3.  
  4. while m <= 12:
  5. c = d
  6. if m % 2 == 0:
  7. k = (31 - d) // 7
  8. while (k != 0):
  9. print(m, d +7)
  10. c += 7
  11. if 31-(31-d)%7 >= d%7:
  12. print(m, c + d%7)
  13. c = 7-d%7
  14. m += 1
  15. else:
  16. k = (30 - d) // 7
  17. while (k != 0):
  18. print(m, d +7)
  19. c += 7
  20. if 30-(30-d)%7 >= d%7:
  21. print(m, c + d%7)
  22. c = 7-d%7
  23. m += 1
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
11
20
compilation info
Traceback (most recent call last):
  File "/usr/lib/python3.5/py_compile.py", line 125, in compile
    _optimize=optimize)
  File "<frozen importlib._bootstrap_external>", line 735, in source_to_code
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "./prog.py", line 15
    else:
        ^
IndentationError: unindent does not match any outer indentation level

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.5/py_compile.py", line 129, in compile
    raise py_exc
py_compile.PyCompileError: Sorry: IndentationError: unindent does not match any outer indentation level (prog.py, line 15)
stdout
Standard output is empty