Search found 498 matches

by shamim
Tue Apr 18, 2006 12:44 pm
Forum: Volume 109 (10900-10999)
Topic: 10998 - Flipping Colors
Replies: 15
Views: 3591

My interpretation is it is due to the breaking condition of the while loop. Istead of comparing double value as DOUBLE_VAL != 0, use the format
fabs(DOUBLE_VAL) > 1e-9.
by shamim
Mon Apr 17, 2006 1:06 pm
Forum: Other words
Topic: 2007 world finals IN JAPAN?
Replies: 20
Views: 10576

I heard from some where that it will be Hawaii.

The logic in that post was, it is two years in North America and Two years Outside North America.

Although I am not sure how s/he came up with Hawaii.

Anyway, it will be declared pretty soon.

Look at
by shamim
Thu Mar 30, 2006 10:14 am
Forum: Algorithms
Topic: nitk problem
Replies: 5
Views: 1330

The main problem with your method is you changed the requirement of the problems.

You can't sort the numbers, their initial order must be preserved. Only then you could add adjacent elements.
by shamim
Tue Mar 28, 2006 10:09 am
Forum: Algorithms
Topic: Permutation
Replies: 3
Views: 1122

If you have the book Discrete Maths by Rosen, you can consult it.
You will find the algorithm there.
by shamim
Thu Mar 23, 2006 1:21 pm
Forum: Other words
Topic: topcoder releated question -- > cheating
Replies: 17
Views: 6706

You better send an email to them to ask why they think you was cheating. Most brobably they think you collaborated with somebody else. Right now, I am logged into the India Google CodeJam arena, it seems that some other people also suffered. Sadly, the admin there isn't responding to any queries, a...
by shamim
Thu Mar 23, 2006 1:16 pm
Forum: Other words
Topic: topcoder releated question -- > cheating
Replies: 17
Views: 6706

Krzysztof Duleba wrote:Maybe somebody else was using the same IP and they didn't like it.
If they mind to this, shouldn't they make it clear some where, Coders should not log in from same PC.

No such mentioning was made anywhere.
by shamim
Tue Mar 21, 2006 10:06 am
Forum: Bugs and suggestions
Topic: Is this forum also for reporting mistakes in problem I/O?
Replies: 3
Views: 2635

Actually if you feel that judge data for certain problem should be changed, you have to directly mail to them. The address is

So for this problem, you have to send a new input and answer file as well as problem description with necessary changes made.
by shamim
Thu Mar 16, 2006 7:14 am
Forum: Off topic (General chit-chat)
Topic: How many posts needs?
Replies: 11
Views: 12118

The tags are somehow misleading. If someone asks for help more than 100 times without giving any help to others s/he will still be referred to as "A great Helper".
by shamim
Tue Mar 14, 2006 10:25 am
Forum: Volume 110 (11000-11099)
Topic: 11008 - Antimatter Ray Clearcutting
Replies: 81
Views: 38803


I tried a similar approach and it too got TLE. Then I made a sample with 16 trees and my method took 3 seconds to get the solution. So 4 cases like this is enough to cause TLE in OJ.

You have to use the methods described earlier.
by shamim
Tue Mar 14, 2006 9:55 am
Forum: Other words
Topic: Problem with "Can't be judged"
Replies: 1
Views: 1664

I think it is due to the options you set during registration. In one of the options, you were required to specify how you want online judge to receive your code. If you set it to the "email address" instead of "from any host I may use", you could get this error. Try changing the options. If you have...
by shamim
Tue Mar 07, 2006 9:56 am
Forum: Volume 110 (11000-11099)
Topic: 11008 - Antimatter Ray Clearcutting
Replies: 81
Views: 38803

Abednego wrote:It is not clear from the problem statement, but you are allowed to move around the forest between firing shots. I'll update the problem statement so that it makes more sense.
Ok man, now you are talking.
So, I guess the solution is DP, right?
by shamim
Tue Feb 14, 2006 7:46 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 50331

I submitted your code as C++ and it did not get compile error.
But it got compile error using the C option.
Perhaps this is the problem. :wink:
by shamim
Wed Feb 08, 2006 9:41 am
Forum: C++
Topic: Why compile error?
Replies: 6
Views: 2273

Code: Select all

int bfs() { 
    int queue[MAX_VERTEX], parent[MAX_VERTEX], visited[MAX_VERTEX]; 
    int front=0, tail=1,; 
    Edge* ptr;
Remove the comma in "tail=1,".
by shamim
Thu Feb 02, 2006 3:25 pm
Forum: Volume 106 (10600-10699)
Topic: 10693 - Traffic Volume
Replies: 12
Views: 6387

Two changes are required to get AC.

Code: Select all

printf("%.8f %.8f",V,volume);
There should be a newline after each case of output.

Also, change all data types to double.
by shamim
Thu Feb 02, 2006 6:59 am
Forum: Volume 101 (10100-10199)
Topic: 10107 - What is the Median?
Replies: 74
Views: 18833

1614469.cpp:10: warning: ISO C++ forbids
declaration of `main' with no type
1614469.cpp: In function `int main()':
1614469.cpp:21: conversion from `int' to
non-scalar type `std::_Bit_reference' requested
Here is the compile error message.

Go to advanced search