Search found 21 matches
- Sat Oct 27, 2007 8:47 am
- Forum: Volume 100 (10000-10099)
- Topic: 10027 - Language Cardinality
- Replies: 16
- Views: 4374
- Fri May 18, 2007 6:35 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10433 - Automorphic Numbers
- Replies: 41
- Views: 24236
you need not calculate the whole array for checking automorphic number.. For example, 25 25 ---625 save the result and extend it for 625 625 -- do not calculate 25*25 again, just extend it for the last 6. -- hope i am clear.. and it will help you.. This is helpful but it's not enough to get AC. Her...
- Mon Feb 27, 2006 9:07 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10999 - Crabbles
- Replies: 26
- Views: 14503
- Mon Feb 27, 2006 6:52 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10999 - Crabbles
- Replies: 26
- Views: 14503
- Sun Feb 26, 2006 3:34 am
- Forum: Volume 109 (10900-10999)
- Topic: 10999 - Crabbles
- Replies: 26
- Views: 14503
- Sun Feb 26, 2006 12:01 am
- Forum: Volume 109 (10900-10999)
- Topic: 10999 - Crabbles
- Replies: 26
- Views: 14503
10999 - Crabbles
How do people solve this question so that the program runs within 10 seconds?
(I even saw some people's programs that ran within 2 seconds during the contest.
)
Thank you
(I even saw some people's programs that ran within 2 seconds during the contest.

Thank you
- Sun Nov 06, 2005 5:54 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10032 - Tug of War
- Replies: 91
- Views: 34426
- Thu Nov 03, 2005 11:08 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10032 - Tug of War
- Replies: 91
- Views: 34426
- Thu Nov 03, 2005 4:34 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10032 - Tug of War
- Replies: 91
- Views: 34426
- Thu Nov 03, 2005 8:36 am
- Forum: Volume 100 (10000-10099)
- Topic: 10032 - Tug of War
- Replies: 91
- Views: 34426
- Wed Nov 02, 2005 5:27 am
- Forum: Volume 100 (10000-10099)
- Topic: 10032 - Tug of War
- Replies: 91
- Views: 34426
10032 Tug of War TLE
I am getting TLE even though I use DP. My run time is (number of people * number of people/2 * total weight/2) I use a boolean array "array[3][100]=true" means it is possible to have 3 people with total weight=100. Does it sound right? How do people approach this problem? Thank you (should...
- Sun Oct 30, 2005 6:52 am
- Forum: Volume 109 (10900-10999)
- Topic: 10954 - Add All
- Replies: 80
- Views: 30123
- Sun Oct 30, 2005 3:13 am
- Forum: Volume 109 (10900-10999)
- Topic: 10954 - Add All
- Replies: 80
- Views: 30123
- Sun Oct 30, 2005 2:41 am
- Forum: Volume 109 (10900-10999)
- Topic: 10954 - Add All
- Replies: 80
- Views: 30123
- Sun Oct 30, 2005 12:55 am
- Forum: Volume 109 (10900-10999)
- Topic: 10954 - Add All
- Replies: 80
- Views: 30123
10954 - Add All
I absolutely no idea why I am getting a WA. I got WA even after changing uint to double, sorting the numbers... #include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { typedef unsigned int uint; int N; while(cin>>N && N!=0) { vector<uint> table(N); for (N...