Search found 647 matches

by Larry
Thu May 12, 2011 6:07 pm
Forum: Volume 119 (11900-11999)
Topic: 11946 - Code Number
Replies: 49
Views: 8288

Re: 11946- Code Number

The problem description's encode/decode message for this problem is wrong -- use the sample input/output. It uses some 2s as Z's or something.
by Larry
Wed Feb 20, 2008 7:19 pm
Forum: Bugs and suggestions
Topic: Lost Password
Replies: 7
Views: 2880

..
by Larry
Tue Jan 15, 2008 9:55 pm
Forum: Bugs and suggestions
Topic: Lost Password
Replies: 7
Views: 2880

No reply for two weeks. Wow. What is this bug forum for if an admin can't even reply?
by Larry
Sat Dec 08, 2007 1:14 am
Forum: Bugs and suggestions
Topic: Lost Password
Replies: 7
Views: 2880

No way to fix this at all?
by Larry
Wed Nov 21, 2007 5:05 pm
Forum: Bugs and suggestions
Topic: Lost Password
Replies: 7
Views: 2880

Lost Password

I try to do the forgot password on the new system, but it doesn't send it to my email address.

Thanks.
by Larry
Fri Jan 12, 2007 12:02 am
Forum: Volume 108 (10800-10899)
Topic: 10848 - Make Palindrome Checker
Replies: 26
Views: 14496

I use: abcd 3 abcdcba aaaa 3 abcdcba abc 2 abdcba aab b baab abababaabababa 0 abababaabababa pqrsabcdpqrs 9 pqrsabcdpqrqpdcbasrqp a 0 aa aa 0 aa 0 2 aa and I get: TTTTTTT The solution is accepted TTTFFTT The solution is not accepted TFTTTFT The solution is not accepted TTTTTFT The solution is not ac...
by Larry
Thu Jan 11, 2007 11:53 pm
Forum: Volume 110 (11000-11099)
Topic: 11096 - Nails
Replies: 28
Views: 14029

You're welcomed! :D

Unforunately, I still haven't AC'ed this. I probably need somethign more in depth!
by Larry
Wed Jan 10, 2007 6:01 pm
Forum: Volume 109 (10900-10999)
Topic: 10933 - Volleyball
Replies: 15
Views: 6604

I use this for formatting:

"%-20s%5d%5d%10d\n"

but I get PE - now that it matters, how do I get AC instead? Thanks!
by Larry
Wed Nov 01, 2006 11:18 pm
Forum: Volume 110 (11000-11099)
Topic: 11096 - Nails
Replies: 28
Views: 14029

So, no trick cases?
by Larry
Thu Oct 26, 2006 8:21 pm
Forum: Algorithms
Topic: Problems using LCA form arhive.
Replies: 8
Views: 3862

Actually, you can do the precalc in O(nlogn) time by converting into an +/-1 RMQ problem in linear time, and then do the queries in O(1). Of course, you can also precalc in O(n) and queries in O(1), and that part isn't so bad using the big/small universe paradigm. The general RMQ->LCA is probably th...
by Larry
Thu Oct 26, 2006 6:29 pm
Forum: Volume 110 (11000-11099)
Topic: 11096 - Nails
Replies: 28
Views: 14029

In the N = 2 case, say

1 2
0 1
0 2

are we suppose to print "2" or "1"? Thanks!
by Larry
Tue Oct 24, 2006 3:24 pm
Forum: Volume 111 (11100-11199)
Topic: 11132 - Dice from pennies
Replies: 10
Views: 3852

There's no case where Dice = 0, because I would timeout from it.
by Larry
Fri Oct 06, 2006 3:43 pm
Forum: Volume 110 (11000-11099)
Topic: 11096 - Nails
Replies: 28
Views: 14029

I don't use int's.. and I've tried the n=0,1,2 cases.. are there any other particularly tricky cases?
by Larry
Tue Sep 12, 2006 6:34 am
Forum: Volume 110 (11000-11099)
Topic: 11088 - End up with More Teams
Replies: 30
Views: 17118

Seems like most of the memo's got around 1 second. Just memo on the state..
by Larry
Mon Sep 11, 2006 11:01 pm
Forum: Volume 110 (11000-11099)
Topic: 11084 - Anagram Division
Replies: 19
Views: 9217

Re: partial memoization :)

the first thing i did was next_permutation(), but TLE the second is using dp[mask][rem] with memo map<int,int>, but TLE the third is i changed the map<int,int> to int memo[1024*10000], but MLE the fourth is partial memoization (is that what we call it?) so i only memoized up to 1000000, otherwise i...

Go to advanced search