Search found 498 matches

by shamim
Sat Aug 27, 2005 7:19 am
Forum: Other words
Topic: precion problem float Vs double
Replies: 5
Views: 1376

This is a common problem with floating point numbers. The numbers are never expressed exactly. The solution is usually case dependent, for example, a problem might require you to give output to 3 decimal place, in that case the statemnt, printf("%.3Lf",N), will print the number as 0.000. And if you ...
by shamim
Sat Aug 27, 2005 7:08 am
Forum: Volume 108 (10800-10899)
Topic: 10889 - The Lost Gift
Replies: 17
Views: 6913

Are you considering the case, where the number of black balls found is more than the calculated value of original number of black balls.
by shamim
Mon Aug 15, 2005 9:49 am
Forum: Other words
Topic: Wrong account information
Replies: 4
Views: 1202

This is a current problem with the registration system. You can't fix it on your own. You just have to wait for some time until the site authority fixes it own their own.
by shamim
Sun Aug 14, 2005 10:10 am
Forum: Volume 108 (10800-10899)
Topic: 10827 - Maximum sum on a torus
Replies: 52
Views: 26938

Another thing, if i got neg value then what should i print -(neg) or 0 (zero).
It should be 0.
by shamim
Sat Aug 13, 2005 1:07 pm
Forum: Other words
Topic: Account issues (for new and old users)
Replies: 4
Views: 1126

the security code does not show at all, so they cannot successfully register themselves with OJ.
If i remember correctly, one of my friend registered by entering a random number for the security code and he registered successfully. So you could give it a try.
by shamim
Tue Aug 09, 2005 2:37 pm
Forum: Volume 108 (10800-10899)
Topic: 10892 - LCM Cardinality
Replies: 25
Views: 8263

If you are getting WA, check your LCM calculating method.
Improper implementation can result in overflow.

It should be:

Code: Select all

LCM(int x,int y) {
 return x/GCD(x,y) * y;
}
and not :

Code: Select all

LCM(int x,int y) {
 return x*y/GCD(x,y);
}
by shamim
Tue Aug 09, 2005 8:07 am
Forum: Volume 108 (10800-10899)
Topic: 10892 - LCM Cardinality
Replies: 25
Views: 8263

Are you handling square numbers properly.
by shamim
Mon Aug 08, 2005 9:42 am
Forum: Volume 108 (10800-10899)
Topic: 10891 - Game of Sum
Replies: 33
Views: 12455

I think it's the other way,

that is player A takes 4,
player B takes 7,
player A takes -10
player B takes -20,

so player A has -6 and player B has -13 ( diff. of 7).
by shamim
Tue Jul 26, 2005 10:28 am
Forum: Other words
Topic: Eligibility Rules for 2005 Regionals
Replies: 4
Views: 1235

Yes, your point is entirely valid.
What I tried to emphasise on is, it is not totally impossible for graduating students to participate, although it is tough in general, as you have explained.
by shamim
Sun Jul 24, 2005 8:41 am
Forum: Other words
Topic: Eligibility Rules for 2005 Regionals
Replies: 4
Views: 1235

This is from the icpc site: A student who has competed in two World Finals is no longer eligible to compete. A student who has competed in regional contests for five years is not eligible to compete. A student who graduated from secondary school in 2001or later is eligible to compete. A student who ...
by shamim
Thu Jul 21, 2005 9:46 am
Forum: Off topic (General chit-chat)
Topic: If "New Realtime System Status" System OK??
Replies: 4
Views: 2366

There is no reason why any one would like the new system.
I think the site is going over major change. It has been few days since the Author's Ranklist is not working as well as few other features. All these require fixing.
by shamim
Tue Jul 19, 2005 10:52 am
Forum: Volume 5 (500-599)
Topic: 589 - Pushing Boxes
Replies: 14
Views: 5494

Nice that you have done some work to find cases that are not present but should be to catch bad solutions. Actually, in such cases, it better to mail the information to the following address. problemset@uva.es The admins really don't read much of the posts in this thread but they will respond to the...
by shamim
Wed Jul 13, 2005 2:45 pm
Forum: Volume 3 (300-399)
Topic: 306 - Cipher
Replies: 74
Views: 18130

I am getting WA, could some one post some test cases.
The previous cases could be wrong as it was asked when the author was getting WA.
by shamim
Wed Jul 13, 2005 7:12 am
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 52940

sohel wrote:to helloneo:
your author id seems to be very familiar..
... oh! wait a sec. It's my uva ID.
Sohel, how is it your uva ID :-?
by shamim
Sat Jul 09, 2005 3:38 pm
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 17841

remember that in this problem xtop<=xbottom ytop>=ybottom are not always true. so you should consider this case. Hope this will help you. Yes, this is indeed true. I got plenty of wrong answers for this. But what bothered me :evil: is, whenever a problem statement says left and top, they better use...

Go to advanced search