Search found 498 matches

by shamim
Sun Oct 30, 2005 6:03 am
Forum: Volume 109 (10900-10999)
Topic: 10954 - Add All
Replies: 80
Views: 27486

Another way of staing the problem is , add two numbers from the list, add the result to the cumulative cost, remove the two numbers from the list and insert the sum to the list. The answer will be the minimum cumulative value obtainable. so, 2 2 2 2 3 -> (2+2=4) 4 2 2 3 -> (2+2=4) 4 4 3 ->(4+3=7) 7 ...
by shamim
Wed Oct 19, 2005 4:08 pm
Forum: C++
Topic: can anyone tell me good compile for c++
Replies: 7
Views: 2722

The compiler used by most Online Judge is GNU standard. The operating system used is Linux. So, it is better that you use those compilers.
by shamim
Wed Oct 19, 2005 4:04 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 180126

you could get the compile error message from the compiler by maill, if you enabled that option, when registering.
by shamim
Sun Oct 16, 2005 7:09 am
Forum: Other words
Topic: Recommended Problems.
Replies: 3
Views: 1735

Lists like this already exists in other threads. My advice would be goto Steven Halim's site, where rating for a lot of problems are available. Choose the easier problems first and move up the difficulty level. The site also mentions the type of each problem. The site also has hints on solving probl...
by shamim
Sun Oct 16, 2005 7:02 am
Forum: Off topic (General chit-chat)
Topic: How will I see the submission result in Online competition.
Replies: 2
Views: 1834

On the running contest page, there is a link that says, Judges status and event page. This is where you get results of submissions for contests.
by shamim
Sun Oct 16, 2005 6:52 am
Forum: Volume 101 (10100-10199)
Topic: 10187 - From Dusk Till Dawn
Replies: 50
Views: 17563

BFS is OK, but your state space should be two dimensional, one for each station and the second for time of arrival. :wink:
by shamim
Wed Oct 05, 2005 7:07 am
Forum: Other words
Topic: has anybody got this book
Replies: 4
Views: 1985

Re: has anybody got this book

please if you've got this book or you know the links where i can download tell me Introduction to Algorithms (Second Edition) by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Cliff Stein thanks :roll: Well, this is one of the most popular book on algorithms. You should have no troub...
by shamim
Mon Oct 03, 2005 8:29 am
Forum: Other words
Topic: Other ICPC being Online
Replies: 0
Views: 928

Other ICPC being Online

If I remember correctly, I read a thread where it says each site from now on must reveal the judge data on the web including sample solution and correction program. The thread also said, this will enable all regionals to be hosted online at this site. Does anyone (specially the admins) know whether ...
by shamim
Sat Sep 24, 2005 11:33 am
Forum: ACM ICPC Archive Board
Topic: 3292 - Matrissor (From Dhaka 2005-2006)
Replies: 18
Views: 4795

3292 - Matrissor (From Dhaka 2005-2006)

I tried to solve this problem using Memoization. Simply partition the given set of matrix in two and see if it is possible to evaluate the subsets. Or else partion the set(s) that can not be evaluated and the process is recursive. Then consider the partition that requires minimum number of steps. Bu...
by shamim
Sat Sep 24, 2005 11:03 am
Forum: Volume 109 (10900-10999)
Topic: 10905 - Children's Game
Replies: 66
Views: 25409

10905 - Children's Game

here is one i was getting wrong initially,
90 9 should be 990.

By the way, this problem can be solved by clever sorting.
by shamim
Thu Sep 15, 2005 10:44 am
Forum: Off topic (General chit-chat)
Topic: FIFA U-17 World Championship Peru 2005
Replies: 2
Views: 1687

Well it is hard to tell since not much is known about the U-17 players. Majority don't play in international level clubs like Real Madrid, Manchester Utd, etc.
by shamim
Wed Sep 14, 2005 6:42 am
Forum: Volume 107 (10700-10799)
Topic: 10719 - Quotient Polynomial
Replies: 51
Views: 16997

The function strtok() is there to handle such task.
by shamim
Tue Aug 30, 2005 4:50 pm
Forum: Volume 100 (10000-10099)
Topic: 10023 - Square root
Replies: 121
Views: 27048

The input numbers are very large, traditional data types can't handle it.
by shamim
Tue Aug 30, 2005 4:44 pm
Forum: Other words
Topic: precion problem float Vs double
Replies: 5
Views: 1376

printf("%.3Lf",N), will print the number as 0.000. Or in some weird cases it will print -0.000 Actually not that weird :wink: , i mean cetain calculation may result in values like -1.3434e-34or so, that is a number very close to zero but less than it by representation. In such cases, you will have ...
by shamim
Sun Aug 28, 2005 5:32 pm
Forum: C++
Topic: How to get sqrtl in g++?
Replies: 6
Views: 2899

If i remember correctly, sqrtl() is defined in <math.h>, if you use C as the compiler option and not C++.
This is how the problem 10023 was solved by many before the judge data was increased.

Go to advanced search