1 2 3 4 5 6 7 8 9 10
import csv import fileinput import sys reader = csv.reader(fileinput.input(inplace=True)) # modify input files inplace writer = csv.writer(sys.stdout) # fileinput redirects stdout to input file # after input file has been copied to a temporary file for row in reader: row += [row[-1]] # duplicate last column writer.writerow(row)
You have reached a limit of free submissions this month.
You cannot send submissions this month anymore because of exceeding your monthly limit. Please recharge your account.
the submission is still running...
- upload with new input
result: Success time: 0.09s memory: 10904 kB returned value: 0