fork download
  1. def max_path(pyramid,steps,n):
  2. sol = 1
  3. print sol
  4.  
  5. path = []
  6. for i in range(1,n):
  7. path.append("R")
  8. print "".join(path)
  9.  
  10. n = int(raw_input())
  11. pyramid = []
  12. steps = []
  13. for i in range(0,n):
  14. pyramid.append(map(lambda x: int(x), raw_input().strip().split(' ')))
  15. steps.append(['L']*(i+1))
  16. max_path(pyramid,steps,n)
  17.  
Success #stdin #stdout 0.01s 7900KB
stdin
5
7
3 8
8 1 0
2 7 4 4
4 5 2 6 5
stdout
1
RRRR