fork download
  1. print(50)
  2. print("0 1 1 B R")
  3.  
  4.  
  5. print("1 * 2 B R")
  6. print("2 1 2 B R")
  7. print("2 B 3 1 R")
  8.  
  9.  
  10. print("1 1 4 B R")
  11.  
  12.  
  13. print("4 1 4 1 R")
  14.  
  15. print("4 * 5 * L")
  16. print("5 1 6 0 R")
  17. print("5 0 5 0 L")
  18. print("6 0 6 0 R")
  19.  
  20.  
  21. print("6 * 7 * R")
  22. print("7 0 7 1 R")
  23. print("7 * 7 * R")
  24. print("7 1 7 1 R")
  25. print("7 B 8 * L")
  26. print("8 0 8 0 L")
  27. print("8 1 9 0 R")
  28. print("9 0 9 0 R")
  29. print("9 * 10 * R")
  30. print("10 1 10 1 R")
  31. print("10 B 11 1 L")
  32. print("11 1 11 1 L")
  33. print("11 * 8 * L")
  34.  
  35.  
  36. print("8 * 12 * L")
  37. print("12 0 12 0 L")
  38. print("12 1 12 1 L")
  39. print("12 * 12 * L")
  40. print("12 B 13 B R")
  41. print("13 0 13 0 R")
  42. print("13 1 13 1 R")
  43. print("13 * 5 * L")
  44.  
  45.  
  46. print("5 B 14 B R")
  47. print("14 0 14 B R")
  48. print("14 * 15 B R")
  49. print("15 0 15 1 R")
  50. print("15 1 15 1 R")
  51. print("15 * 15 * R")
  52.  
  53.  
  54. print("15 B 16 B L")
  55. print("16 * 16 * L")
  56. print("16 1 16 1 L")
  57.  
  58.  
  59. print("16 B 17 B R")
  60. print("17 1 17 1 R")
  61. print("17 * 18 * L")
  62. print("18 1 18 1 L")
  63. print("18 B 19 B R")
  64.  
  65.  
  66. print("19 1 20 B R")
  67. print("20 * 17 B R")
  68. print("20 1 21 B R")
  69. print("21 1 21 1 R")
  70. print("21 * 17 1 R")
  71.  
Success #stdin #stdout 0.03s 9608KB
stdin
Standard input is empty
stdout
50
0 1 1 B R
1 * 2 B R
2 1 2 B R
2 B 3 1 R
1 1 4 B R
4 1 4 1 R
4 * 5 * L
5 1 6 0 R
5 0 5 0 L
6 0 6 0 R
6 * 7 * R
7 0 7 1 R
7 * 7 * R
7 1 7 1 R
7 B 8 * L
8 0 8 0 L
8 1 9 0 R
9 0 9 0 R
9 * 10 * R
10 1 10 1 R
10 B 11 1 L
11 1 11 1 L
11 * 8 * L
8 * 12 * L
12 0 12 0 L
12 1 12 1 L
12 * 12 * L
12 B 13 B R
13 0 13 0 R
13 1 13 1 R
13 * 5 * L
5 B 14 B R
14 0 14 B R
14 * 15 B R
15 0 15 1 R
15 1 15 1 R
15 * 15 * R
15 B 16 B L
16 * 16 * L
16 1 16 1 L
16 B 17 B R
17 1 17 1 R
17 * 18 * L
18 1 18 1 L
18 B 19 B R
19 1 20 B R
20 * 17 B R
20 1 21 B R
21 1 21 1 R
21 * 17 1 R