Page 1 of 1

a basic question

Posted: Tue Nov 21, 2006 8:30 am
by geningcao
HI everybody

i just want to konw,when i need to get a input,i should use such "scanf" or just put the input number into a variable beforehand?

i code by c or java

thx

Posted: Sat Dec 02, 2006 9:06 pm
by kogorman
Think of it this way: do you know what the judge uses as a test case? There are probably more test cases than are given in the samples. Then how are you going to put it into a variable if you don't know what it's going to be?

Posted: Sat Aug 25, 2007 12:16 pm
by mars kaseijin
Prepare for the biggest data input, pick a data type that will accomodate it.
:-? Wish i have 64-bit machine to play with...