Actually just one night's bad sleep would be far more detrimental than having one day's lousy nutritional intake.
Um, that would actually kill you! We know that 11 days without sleep will cause severe mental problems, so I would say 40 days would be more than enough to kill.