It's the 750mg caffeine that made you ill, not the APAP. 2.5 grams of APAP isn't likely to cause acute harm. Maybe if you're 6 years old it will.
The FDA's recommended 24 hour limit is 4 grams. The LD50 is somewhere above 10 grams.
Anyway, taking ~800mg of caffeine is enough to make pretty much anyone super sick. Anything over about 200mg is going to be a bad choice for non-caffeine-tolerant people.
KSA, your code is about a million times longer than it has to be, learn to reuse input streams.
Thanks, I'll keep that in mind
