Search found 498 matches

by shamim
Thu Jan 04, 2007 11:06 am
Forum: Bugs and suggestions
Topic: how to print the topics
Replies: 5
Views: 2032

Use print command

If you use the print command from your browsers menu, you should have the page printed.
Perhaps you are asking if it is possible to have a printer friendly version of the pages.
by shamim
Sat Dec 30, 2006 12:20 pm
Forum: Volume 100 (10000-10099)
Topic: 10055 - Hashmat the Brave Warrior
Replies: 166
Views: 46223

Two mistakes:

1) you assume that the second number will always be higher, this is always not the case.
2) long data type will not do, use double.
by shamim
Tue Dec 26, 2006 1:10 pm
Forum: Algorithms
Topic: acm regional coimbatore problems a -how to solve
Replies: 14
Views: 7160

I am wondering, is it that difficult to create a problem set. Surely creating a good set is very difficult, but a new set with some easy and moderate problems should not be that tough.

Was it really necessary for them to sink as low as copy pasting problem statement :evil:
by shamim
Fri Dec 22, 2006 10:39 am
Forum: Algorithms
Topic: acm regional coimbatore problems a -how to solve
Replies: 14
Views: 7160

Looking at the activities of Coimbatore site, I am reminded of the the problem "It's not a Bug, it's a Feature!". In that problem, it describes how one bug must be kept to introduce a feature. Last year, the main problem with Coimbatore site was that, they had vague problem description. They have re...
by shamim
Thu Dec 21, 2006 11:35 am
Forum: Algorithms
Topic: acm regional coimbatore problems a -how to solve
Replies: 14
Views: 7160

Does ACM have any rules regarding problem sets?
Do they have any measures to take actions against copy-pasting problem description with minor change.
by shamim
Sat Nov 04, 2006 9:32 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 183189

Most recent problems usually state the number of cases at the begining. And for problems like 3*n+1, you have to test for the end of file condition which is usually done by while ( scanf("%d %d",&a,&b) == 2 ) , for this problem. And there are many problems, deciding the number of input in a line or ...
by shamim
Tue Oct 31, 2006 11:48 pm
Forum: Volume 104 (10400-10499)
Topic: 10466 - How Far?
Replies: 25
Views: 8421

Well, the best approach to solve this problem is to consider that the central body has a co-ordinate of (0,0).

This way, the co-ordinates of other planets can be found, hence thier distance from the central planet.
by shamim
Wed Oct 25, 2006 10:54 pm
Forum: Off topic (General chit-chat)
Topic: National Taiwan University=>PG the Evil
Replies: 3
Views: 3436

Pending Fujian Normal University: Polar Pending Nanjing University of Aeronautics and Astronautics: Atmo Center Pending Nanjing University of Aeronautics and Astronautics: Atom Center Pending National Taiwan University: Don''t kill me Pending National Taiwan University: BRieF Pending National Unive...
by shamim
Wed Aug 09, 2006 8:57 am
Forum: Volume 1 (100-199)
Topic: 193 - Graph Coloring
Replies: 93
Views: 21262

this problem has a correction program.
That means any valid answer will be accepted.
I guess, your code has slight mistake somewhere.
by shamim
Wed Aug 09, 2006 8:47 am
Forum: Algorithms
Topic: LCM(least common multiply)
Replies: 4
Views: 1471

Well I don't know how fast you want it, but the following will give the result in a reasonable time.

LCM(a,b) = a*b/GCD(a,b).

now LCM (a,b,c) = LCM ( LCM(a,b), c );

I hope you get the idea.
by shamim
Sun Jul 30, 2006 3:19 pm
Forum: Other words
Topic: Dynamic Programming.
Replies: 4
Views: 2499

Well, topcoder.com has a tutorial section which has an article about Dynamic Programming.
The title goes as follows: Dynamic Programming: From novice to advanced

http://www.topcoder.com/tc?module=Stati ... d2=dynProg

You could look in there.
by shamim
Wed Jun 28, 2006 6:16 am
Forum: Off topic (General chit-chat)
Topic: Who will win the World Cup?
Replies: 53
Views: 127281

The last time Brazil lost in the Finals was against France. So, could they break Brazils winning streak?
by shamim
Thu Jun 22, 2006 8:47 am
Forum: Other words
Topic: How to set up my own judge?
Replies: 4
Views: 6982

try http://acm.pku.edu.cn/JudgeOnline

The have a download version of their online Judge. See if you can make something out of it.


Darko, PC2 is used for limited time contest. I don't think it would help much as an online judge.
by shamim
Thu Jun 22, 2006 8:40 am
Forum: Off topic (General chit-chat)
Topic: Map Problem
Replies: 12
Views: 4816

V C++ does support <cstdio>,

but you should not include the .h after the header name.
by shamim
Mon Jun 19, 2006 6:35 am
Forum: Off topic (General chit-chat)
Topic: Who will win the World Cup?
Replies: 53
Views: 127281

This numorology will work for upto 2014, after that it will refer to WW-II dates, when no world cup was held.

After that, it will have three more chances.

Go to advanced search