Any hints for problem B, Arranging a Contest?
I am getting TLE. I am basically doing a pruned DFS.
Search found 20 matches
- Sat Dec 29, 2007 8:38 pm
- Forum: Other words
- Topic: Contest of Newbies 2007
- Replies: 9
- Views: 4986
- Thu Sep 13, 2007 8:06 pm
- Forum: Volume 6 (600-699)
- Topic: 681 - Convex Hull Finding
- Replies: 60
- Views: 30688
- Fri Aug 31, 2007 2:18 am
- Forum: Volume 1 (100-199)
- Topic: 112 - Tree Summing
- Replies: 137
- Views: 32281
I just got AC with my same old code. I don't know why it give WA earlier. May be I submitted the wrong version.
BTW, for the test case:
my AC code prints:
BTW, for the test case:
Code: Select all
0 ()
Code: Select all
no
- Fri Aug 31, 2007 2:11 am
- Forum: Volume 1 (100-199)
- Topic: 112 - Tree Summing
- Replies: 137
- Views: 32281
- Mon Aug 20, 2007 6:37 pm
- Forum: Volume 5 (500-599)
- Topic: 562 - Dividing coins
- Replies: 73
- Views: 44186
- Sun Apr 08, 2007 8:55 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10820 - Send a Table
- Replies: 34
- Views: 19579
- Sun Apr 08, 2007 7:50 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10964 - Strange Planet
- Replies: 13
- Views: 7859
- Sun Apr 08, 2007 7:49 pm
- Forum: Other words
- Topic: how is the memory used decided?
- Replies: 3
- Views: 3674
- Sat Apr 07, 2007 7:28 pm
- Forum: Volume 1 (100-199)
- Topic: 104 - Arbitrage
- Replies: 223
- Views: 37228
@gits:
I got AC, but I have this doubt.
I feel the above statement should be:-
and m should vary from 1 to steps-1 (making the solution O(n^5)).
But why is it not required? Why is just calculating for m=1 enough?
I got AC, but I have this doubt.
tmp = best[k][steps-1] * best[k][j][1]
I feel the above statement should be:-
Code: Select all
best[i][k][steps-m]*best[k][j][m]
But why is it not required? Why is just calculating for m=1 enough?
- Sun Feb 11, 2007 11:04 pm
- Forum: General
- Topic: Invitation to Codecraft 2007 - Online Programming Contest
- Replies: 1
- Views: 2822
Invitation to Codecraft 2007 - Online Programming Contest
IIIT Hyderabad is back with its Online Programming Contest CodeCraft 2007. This is the 5th year of Codecraft. It has grown over the years and has witnessed huge participation on a global scale. The contest is known for having a high quality problemset.
It will be held on February 21st, 2007, 6 PM ...
It will be held on February 21st, 2007, 6 PM ...
- Sun Feb 11, 2007 10:46 pm
- Forum: C
- Topic: Participate in CodeCraft 2007 - Online Programming Contest
- Replies: 0
- Views: 4895
Participate in CodeCraft 2007 - Online Programming Contest
IIIT Hyderabad is back with its OPC CodeCraft.
It will be held on February 21st, 2007, 6 PM - 12 AM IST.
Contest is open to all. Registration has started. Everyone is invited
Enjoy!
It will be held on February 21st, 2007, 6 PM - 12 AM IST.
Contest is open to all. Registration has started. Everyone is invited

- Sun Feb 11, 2007 10:45 pm
- Forum: C++
- Topic: Participate in CodeCraft 2007 - Online Programming Contest
- Replies: 0
- Views: 1768
Participate in CodeCraft 2007 - Online Programming Contest
IIIT Hyderabad is back with its OPC CodeCraft. C,C++ and Java coders are invited.
It will be held on February 21st, 2007, 6 PM - 12 AM IST.
Contest is open to all. Registration has started. Everyone is invited
It will be held on February 21st, 2007, 6 PM - 12 AM IST.
Contest is open to all. Registration has started. Everyone is invited

- Sun Feb 11, 2007 10:44 pm
- Forum: Off topic (General chit-chat)
- Topic: Participate in CodeCraft 2007 - Online Programming Contest
- Replies: 0
- Views: 12040
Participate in CodeCraft 2007 - Online Programming Contest
IIIT Hyderabad is back with its OPC CodeCraft.
It will be held on February 21st, 2007, 6 PM - 12 AM IST.
Contest is open to all. Registration has started. Everyone is invited
It will be held on February 21st, 2007, 6 PM - 12 AM IST.
Contest is open to all. Registration has started. Everyone is invited

- Sun Feb 11, 2007 10:41 pm
- Forum: Other words
- Topic: Participate in CodeCraft 2007 - Online Programming Contest
- Replies: 0
- Views: 1963
Participate in CodeCraft 2007 - Online Programming Contest
IIIT Hyderabad is back with its OPC CodeCraft.
It will be held on February 21st, 2007, 6 PM - 12 AM IST.
Contest is open to all. Registration has started. Everyone is invited
It will be held on February 21st, 2007, 6 PM - 12 AM IST.
Contest is open to all. Registration has started. Everyone is invited

- Fri May 26, 2006 12:28 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10820 - Send a Table
- Replies: 34
- Views: 19579