I do use the keyboard shown on the problem, because I'm French and I have AZERTY keyboards at home ...
For ' ' I think it is ok, I tested the algorithm in another program with just a scanf for a single line, and I works perfectly good ...
Ok, so I program in C and I just need to know another thing :
How do I scan an input file made of several lines
Example :
//Beginning of the file
15
45
12
//End of file
I have to do something for each line, like for the 495th problem ...