Dec 4, 2012 at 11:05pm
The first (and the only) input line contains integer number w (1 ≤ w ≤ 100)....
I just don't know how to say w=(1 ≤ w ≤ 100) in C++ language.
Is it
int w=(1 <= w <= 100);
?
thanks before.
Dec 4, 2012 at 11:07pm
That is telling you what the input will contain, not that you are supposed to check that is the case.
Dec 4, 2012 at 11:13pm
Exactly, it is just saying the input will consist of a number, and that it will lie within the range 1 to 100 inclusive. It's a description.
Last edited on Dec 4, 2012 at 11:18pm