Each value in the first row is repeated in a column by the corresponding number from the second row. Text input/output are tab-delimited and can be pasted and copied from/to your spreadsheet program.
Input (paste two rows from Excel):
1 2 3 4 20 7 10 5