daymonth=[0,31,28,31,30,31,30,31,31,30,31,30,31] daymonth[2] daymonth[1]+daymonth[2]+daymonth[3]+daymonth[4] daymonth[2]=29 daymonth
irb(main):001:0> a = [3,1,4,1,5,9] => [3, 1, 4, 1, 5, 9] irb(main):003:0> a[0] = a[4] => 5 irb(main):004:0> a[0]+a[2]
a=[[0,0,1,1],[0,1,1,0]] a[1][3] a[1] a[0][0]=1 a
a = [[0 ,0 ,1 ,1], [0 ,1 ,1 ,0]] show(a)
d=[[[0,0,0],[0,1,0],[0,0,1]], [[1,0,0],[1,1,0],[1,0,1]]] show(d)
daymonth=[0,31,28,31,30,31,30,31,31,30,31,30,31] daymonth.length()
irb(main):001:0> a = [3,1,4,1,5,9] => [3, 1, 4, 1, 5, 9] irb(main):002:0> a.length()
irb(main):001:0> a=[[0,0,1,1],[0,1,1,0]] => [[0, 0, 1, 1], [0, 1, 1, 0]] irb(main):002:0> a.length()
irb(main):001:0> a=[[0,0,1,1],[0,1,1,0]] => [[0, 0, 1, 1], [0, 1, 1, 0]] irb(main):002:0> a[0].length()