a basic question

General topic about Valladolid Online Judge

Moderator: Board moderators

Post Reply
geningcao
New poster
Posts: 1
Joined: Tue Nov 21, 2006 8:07 am

a basic question

Post 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
kogorman
New poster
Posts: 14
Joined: Sat Dec 02, 2006 6:58 am

Post 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?
Kevin
mars kaseijin
New poster
Posts: 22
Joined: Mon Sep 19, 2005 4:58 am
Contact:

Post 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...
Post Reply

Return to “General”