Search found 21 matches

by yoshiro aoki
Tue Jan 16, 2007 10:27 pm
Forum: Volume 104 (10400-10499)
Topic: 10427 - Naughty Sleepy Boys
Replies: 35
Views: 25149

The test cases I posted were in my post right before yours.

I see that my message there has been cut away (removed).

Maybe my posting of that information was not allowed :(

Ok, from memory I can offer only small advice, and that is to be sure to write test cases to check border conditions.

Hope ...
by yoshiro aoki
Tue Jan 16, 2007 10:15 pm
Forum: Volume 104 (10400-10499)
Topic: 10427 - Naughty Sleepy Boys
Replies: 35
Views: 25149

hi, Im yoshiro.

sorry, my problem was I sent an old version of my program to the judge by accident.

The program that passed millions of test cases of course got AC. I enjoyed writing that test case generator : )!!

I posted several critical test cases for this program challenge here, but I don't ...
by yoshiro aoki
Fri Dec 01, 2006 1:51 am
Forum: Other words
Topic: C++ program
Replies: 1
Views: 2243

hi, please identify the problem number & title that you are trying to solve.

I noticed that you are using file i/o in your program. This is not allowed by the 'Judge' program.

good luck! 8)
by yoshiro aoki
Wed Nov 15, 2006 10:35 pm
Forum: Volume 104 (10400-10499)
Topic: 10434 - Working With Specific Gravity
Replies: 2
Views: 2231

Im sorry that you cannot understand it, but I cannot make it more clear than what I have already said. :( I hope someone else may be able to help you.

have a good day
by yoshiro aoki
Wed Nov 15, 2006 7:53 am
Forum: Volume 104 (10400-10499)
Topic: 10434 - Working With Specific Gravity
Replies: 2
Views: 2231

10434 - Working With Specific Gravity

The problem is not a big deal, but watch out that you use a good pi value.
I used 3.14159 from memory, but it was not good enough.

Pi is in math.h, and on MS compilers its ifdef'd out.
here it is: 3.14159265358979323846, u can borrow it :wink:

Maybe best to copy & paste it to a variable on such ...
by yoshiro aoki
Tue Nov 14, 2006 4:14 am
Forum: Algorithms
Topic: Recursion to Dynamic Programming, how?
Replies: 1
Views: 2502

Dynamic programming simply caches intermediate results whereas recursion does not.

When the recursive function returns, all of the intermediate results are lost.
So, for the same input twice you get to do all of the steps over again!
What do you think about that?

Adding a cache to your recursive ...
by yoshiro aoki
Fri Nov 10, 2006 2:53 pm
Forum: Volume 104 (10400-10499)
Topic: 10427 - Naughty Sleepy Boys
Replies: 35
Views: 25149

My 10427 code passed 41 million test cases by today.

So, I looked at Judge email and I see it is not the code I submitted to the Judge for the
by yoshiro aoki
Thu Nov 09, 2006 7:13 am
Forum: Volume 104 (10400-10499)
Topic: 10427 - Naughty Sleepy Boys
Replies: 35
Views: 25149

I finished the server.
So, the table values are comparing with calculated values now on my WA code.

Its at 320,000 now and should be done in 92 hours.

I suspect the problem may be that the judge expected a space (or not) from the beginning, or maybe a bug on my part in higher numbers. Who knows ...
by yoshiro aoki
Thu Nov 09, 2006 4:45 am
Forum: Volume 104 (10400-10499)
Topic: 10427 - Naughty Sleepy Boys
Replies: 35
Views: 25149

Im using C++.

The problem didn't say much about formatting, so I have no idea.
I made the output like in the problem, and expect PE if the Judge gets picky about spacing.

I finished the named-pipe server for my sequence db, and a client. So, tomorrow I will test my pgm on all possibilities if I ...
by yoshiro aoki
Wed Nov 08, 2006 10:28 pm
Forum: Volume 104 (10400-10499)
Topic: 10427 - Naughty Sleepy Boys
Replies: 35
Views: 25149

I wrote a program that writes the series (1,2,3,4,...,99999999) to a disk file.

I then access using "file.seekg(iIndex)".
So, I have all answers for the entire test range.

But after checking 50 random points there is no failure as yet.
It must be a very odd bug, to pass so many test cases and ...
by yoshiro aoki
Wed Nov 08, 2006 9:40 am
Forum: Volume 104 (10400-10499)
Topic: 10427 - Naughty Sleepy Boys
Replies: 35
Views: 25149

My code passes all my present tests and all those posted on this site, yet I get WA:x

I had to reduce the largest number I could resolve to 99,999,999
so the Judge could compile it. Its ok, because 10427 says
"N<100,000,000".

But I can easily resolve the much larger test numbers found on this ...
by yoshiro aoki
Wed Nov 08, 2006 6:23 am
Forum: Volume 104 (10400-10499)
Topic: 10427 - Naughty Sleepy Boys
Replies: 35
Views: 25149

nm.

fpavetic posted message is correct :D
by yoshiro aoki
Wed Nov 08, 2006 5:50 am
Forum: Volume 104 (10400-10499)
Topic: 10427 - Naughty Sleepy Boys
Replies: 35
Views: 25149

What is this on AC code? I am unsure of some results here:



5768678


Thanks very much
by yoshiro aoki
Tue Nov 07, 2006 8:03 am
Forum: Bugs and suggestions
Topic: Suggest new problems?
Replies: 2
Views: 1807

Suggest new problems?

I really like all of these programming problems.

Is there a method or procedure for submitting new problems?

thank you
by yoshiro aoki
Sun Nov 05, 2006 6:00 am
Forum: Other words
Topic: data security
Replies: 3
Views: 3032

I left reply with your other message, hope it helps you.

As for Windows XP Home, I don't know about it. I use XP Pro. My XP Pro can encrypt files all by itself.

This is how to encrypt files on XP Professional. Maybe it will work on your XP Home:

1. In Windows Explorer, Right click on the file or ...

Go to advanced search