Search found 13 matches

by willima
Wed Oct 03, 2007 3:55 pm
Forum: Volume 100 (10000-10099)
Topic: 10099 - The Tourist Guide
Replies: 91
Views: 43033

I'll tell what's really wrong...

Hi.

After getting many and many WA in this problem, I discovered that I had just to add a second blank line at the final of output. Doing this I finally got AC, just because one BLANK LINE at the end!!!

So, for those who are trying this problem, pay attention to this!!

Regards.
by willima
Mon Sep 10, 2007 7:18 pm
Forum: Volume 102 (10200-10299)
Topic: 10215 - The Largest/Smallest Box ...
Replies: 55
Views: 38379

Confused

I really didn't undertand why your code print 3 numbers as output for some inputs. My WA code printed the following for the last 3 cases of the first post:

1666.500 0.000 4999.500
0.250 0.000 0.500 4999.500
0.250 0.000 0.500 4999.500


If the minimum volume is 0 and the volume is (L-2x)(M-2x)x, I ...
by willima
Tue Oct 31, 2006 10:11 pm
Forum: Volume 100 (10000-10099)
Topic: 10006 - Carmichael Numbers
Replies: 66
Views: 29542

Precalculating

Can someone give me a hint as to how to precalculate. I tried to precalculate by running through all the numbers from 2 to 65000 and putting it into an array if it was a carmichael number, but this wound up taking sooo much time.

Well, precalculating really can take several seconds or even ...
by willima
Fri Oct 20, 2006 1:25 am
Forum: Volume 101 (10100-10199)
Topic: 10150 - Doublets
Replies: 46
Views: 45913

Graph?

I've been triying to solve this problem and always get TLE. I thought it was my search and I replaced it for binary search. Then I thought it was dijkstra, and I replaced it for BFS. And now I discovered that my program can't build the graph in the proper time!!

I build the graph bye an O(n^2 ...
by willima
Wed Aug 30, 2006 10:04 pm
Forum: Volume 102 (10200-10299)
Topic: 10209 - Is This Integration ?
Replies: 37
Views: 15962

Why the formula?

Could any good "soul" explain me how I can reache this formulas? I tried so much to include/exclude simple geometric shapes in order to get the answer but I couldn't! :oops: :(

Thanks in advance!
by willima
Fri Aug 11, 2006 1:21 am
Forum: Volume 110 (11000-11099)
Topic: 11062 - Andy's Second Dictionary
Replies: 38
Views: 25024

More case tests

Here are more 1 case test:

Input:

Adv-
ent-
ures
in
Dis-
ney-
land

Two blondes were go-
ing to Disney-land
when they came to a
fork in the road.
The sign read: "Dis-
neyland Left."

So they went home.

This is takin' so so so, lo-
ng!!!!!!!!
Why??????


What is t-
hat little-guy!!!

will-lima ...
by willima
Thu Aug 10, 2006 9:26 pm
Forum: Volume 110 (11000-11099)
Topic: 11062 - Andy's Second Dictionary
Replies: 38
Views: 25024

Mistake founded!

Plesar, don't take in account my last post, because I've already founded my mistake: inside the loop, there was a command cin.getline( atual, MAXL ); And MAXL didn't have size enough to get the EOF sinal in the last line :oops:

So, that was what was going wrong, and I fixed it and got AC.

Goodbye ...
by willima
Thu Aug 10, 2006 8:00 pm
Forum: Volume 110 (11000-11099)
Topic: 11062 - Andy's Second Dictionary
Replies: 38
Views: 25024

How to stop reading

Why this code below makes TLE??

while ( !cin.eof() )
{
//...my code...
}

Bye bye,
Willian
by willima
Fri Jul 28, 2006 8:58 pm
Forum: Volume 100 (10000-10099)
Topic: 10006 - Carmichael Numbers
Replies: 66
Views: 29542

Only pre-calculating?

I solved this problem by precalculating the Carmichael Numbers and, from the topics above, I think this is the only to solve the problem without TLE. Am I right?
by willima
Sat Apr 08, 2006 3:34 am
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 65109

2 blank lines in the end!

Hello! I had a few (actually a LOT OF) problems with this problem and I only could get AC when I made my program print 2 blank lines ate the end of the output file!

Another hint: be carefull about printing a blank column after the last LCD-digit in a line.

Hope it helps!

See ya!
by willima
Wed Feb 08, 2006 9:27 pm
Forum: Volume 8 (800-899)
Topic: 847 - A Multiplication Game
Replies: 41
Views: 28183

What means "play perfectly"

I didn't understand this term. What does the problem mean when say that both players play perfectly in the game?

Thanks!
by willima
Thu Jan 19, 2006 7:36 pm
Forum: Volume 101 (10100-10199)
Topic: 10142 - Australian Voting
Replies: 82
Views: 45659

I didn't understand this names!

Hellow N|no, I'm sorry but I didn't understand some names of variables you've used in you source code, so, I couldn't understand that. Could you possibly translate these names for names in English more common?

Thanx, goodbye. :wink:
by willima
Wed Dec 07, 2005 1:25 pm
Forum: Volume 3 (300-399)
Topic: 362 - 18,000 Seconds Remaining
Replies: 75
Views: 38621

I can't understand!

I'm trying to solve 362 problem and I made more than 10 submissions and got very WA and 2 TLE. My program works for all the test cases you put in this board, but the judge still don't accept!

I think I'll leave this...

I do not know what's wrong. Does anybody know if I must use a struct for big ...

Go to advanced search