Search found 10 matches

by ovidiu
Sun Jan 16, 2011 2:36 pm
Forum: Volume 8 (800-899)
Topic: 854 - Worse Code
Replies: 9
Views: 7233

Re: 854 - Worse Code

Hello,

I got WA.
Please provide me a test file for which my code output is wrong.
I used a well known algorithm for finding the number of atomic symbols.
[I will not name it because I suppose this is a spoiler.]
I think my bug is in reading the input and preparing the string which will be coded ...
by ovidiu
Mon Dec 31, 2007 7:02 am
Forum: Volume 1 (100-199)
Topic: 138 - Street Numbers
Replies: 93
Views: 21139

Think if you really need to compare temp1 with n.
by ovidiu
Sun Dec 30, 2007 11:42 am
Forum: Volume 1 (100-199)
Topic: 138 - Street Numbers
Replies: 93
Views: 21139

Because you have the lines:

Code: Select all

long count=0; 
if(count==10)
count will always be 0 in this if ...

It seems it is important that you learn to debug the code.
Set a breakpoint at line:
count++;
and watch the variable i.
by ovidiu
Sat Dec 29, 2007 7:46 pm
Forum: Volume 1 (100-199)
Topic: 138 - Street Numbers
Replies: 93
Views: 21139

Your code displays many times the same pair, like:

Code: Select all

         6          8
         6          8
         6          8
         6          8
         6          8
...
by ovidiu
Fri Dec 21, 2007 5:31 pm
Forum: Bugs and suggestions
Topic: Over 8000000 datasets for a problem
Replies: 2
Views: 2244

Thank you!
You're right. I used int, having in mind the statement for a similar problem, 10750 - Beautiful Points.
Sorry for my initial message ...
by ovidiu
Tue Dec 18, 2007 7:06 pm
Forum: Bugs and suggestions
Topic: In judge queue ?
Replies: 1
Views: 2063

I suppose that the judge is stopped for some maintenance and our submissions will be judged soon. It would be nice if somebody from staff will post a reply about the judge status ...
by ovidiu
Sun Dec 16, 2007 5:52 am
Forum: Volume 1 (100-199)
Topic: 151 - Power Crisis
Replies: 56
Views: 11666

"Output will consist of a series of lines, one for each line of the input."
Please remove your code after accepted.

Running your code, I found my mistake. Thank you! :wink:
by ovidiu
Thu Dec 13, 2007 5:48 am
Forum: Bugs and suggestions
Topic: Over 8000000 datasets for a problem
Replies: 2
Views: 2244

Over 8000000 datasets for a problem

10245 - The Closest Pair Problem

After some TLEs, I submited a source which just reads data and I found that there are over 8000000 datasets. :o
The time limit is set to 3 seconds, not to 8 seconds as reads in the problem statement.
8000000 datasets were read in near 3 seconds, but there are more ...
by ovidiu
Sun Dec 09, 2007 10:47 am
Forum: Volume 107 (10700-10799)
Topic: 10750 - Beautiful Points
Replies: 21
Views: 15248

Please tell me what is wrong in the next code, or tell me a test case for which the code produce wrong results.


#include <iostream>
#include <iomanip>
#include <math.h>

using namespace std;

#ifndef ONLINE_JUDGE
#include <fstream>
#define cin fi
#define cout fo
fstream fi("BeautifulPoints.in ...
by ovidiu
Fri Dec 07, 2007 11:16 am
Forum: Volume 100 (10000-10099)
Topic: 10034 - Freckles
Replies: 101
Views: 48920

You use too small data structures. Just think how many edges can be.

Reading your code I found that after last output there need only one endl and got ACC my code. Thank you!

In my beginner opinion, judging as WA if there are 0 or 2 endl it is a "little" ... unpleasant ...

Go to advanced search