Mercurial > hg > problem6
changeset 21:523f1eb145be draft
Case: swap capital and days arguments, was misparsing input (bug)
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Tue, 17 Mar 2015 09:50:41 -0400 |
parents | 7413c98553c3 |
children | 1c49ab3f44b0 |
files | optim.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/optim.py +++ b/optim.py @@ -3,7 +3,7 @@ from collections import namedtuple Machine = namedtuple("Machine", ["day", "buy", "sell", "profit", "maxprofit"]) -Case = namedtuple("Case", ["machines", "days", "capital"]) +Case = namedtuple("Case", ["machines", "capital", "days"]) from argparse import ArgumentParser