Quantcast
[ 3 / biz / cgl / ck / diy / fa / g / ic / jp / lit / sci / tg / vr ] [ index / top / reports / report a bug ] [ 4plebs / archived.moe / rbt ]

Maintenance is complete! We got more disk space.
Become a Patron!

/g/ - Technology

Search:


View post   

[ Toggle deleted replies ]
>> No.73904821 [View]
File: 66 KB, 298x256, 3de15456f774fbb586987fe2bebf2c7583412bee.png [View same] [iqdb] [saucenao] [google] [report]
73904821

I can't believe how much I pajeeted today.

width = tonumber(arg[2])
height = tonumber(arg[3])

layers = {}
layer = {}
row = {}
for x in io.open("d08_input.txt"):read("a"):gmatch("%d") do
table.insert(row, tonumber(x))
if #row >= width then
table.insert(layer, row)
row = {}
if #layer >= height then
table.insert(layers, layer)
</wbr>



Navigation
View posts [+24] [+48] [+96]