@kade_robertson/

Python Code Golfing

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
while 1:
    i,j,k=input()
    t=0
    g=i*['.'*j]
    for b in k:g[b]='XO'[t%2]+g[b];t+=1
    print'\n'.join(''.join(m[:j])for m in g)