10298 - Power Strings
Moderator: Board moderators
-
- Experienced poster
- Posts: 106
- Joined: Sun Feb 17, 2002 2:00 am
- Location: Seoul, South Korea
- Contact:
10298 - Power Strings
I think that the simple soultion is only calculate all input character
numbers, and check each character, return the minimum number of
character. I believe that it was the solution. ( Because,
when concatenate string, there are some looping patterns. So if it is
a concatenate string, there should be two or more char will be appread.
So I programmed it. But I got a WA.
My solution is wrong? Give me a hint.
Thanks.
numbers, and check each character, return the minimum number of
character. I believe that it was the solution. ( Because,
when concatenate string, there are some looping patterns. So if it is
a concatenate string, there should be two or more char will be appread.
So I programmed it. But I got a WA.
My solution is wrong? Give me a hint.
Thanks.
-
- A great helper
- Posts: 284
- Joined: Thu Feb 28, 2002 2:00 am
- Location: Germany
- Contact:
-
- System administrator & Problemsetter
- Posts: 399
- Joined: Sat Jan 12, 2002 2:00 am
He He
If you print the judge data after seeing it and send it to judge and get accepted and then say that judge data is poor then what can we say but



-
- A great helper
- Posts: 284
- Joined: Thu Feb 28, 2002 2:00 am
- Location: Germany
- Contact:
Uva don't mind if one knows the judge data, but change it if somebody boosting with precalculated data for all answers.gvcormac wrote:uva could change the data, but that wouldn't change the fact that the solution is available at the same place as the data.
(The limits was changed in 10303)
So the boosting is prevented, but the cheating not.

Ok, I see that this limit 10303 is more interesting, but you should decided it before setting problem.

-
- System administrator & Problemsetter
- Posts: 399
- Joined: Sat Jan 12, 2002 2:00 am
Preventing cheating
Hello,
Actually, preventing precomputing is not the issue here. During real time contest pre-computing is allowed but there one don't find any advanced calculating tool such as mathematica. But here the people who precompute may have done it with a language like C/Java/Pascal but some may have used other tools (which is I am afraid is not allowed in real time contest). That's why we prevent tables for the sake of the contestants.
As we want to maintain a standard contest environment we often change many things. It is difficult for us to predict everything. I generally tend to use large judge data to prevent precomputing (even if the data is known, even I cannot send a printf() submission for my own problems
)
but it is not always possible as often the all possible input is small. Also we cannot prevent use of internet, cut copy etc. So after setting a particular problem we often have to search the internet to see if there is a full readymade code/solution ready. Although we cannot always do that eiher.
Actually, preventing precomputing is not the issue here. During real time contest pre-computing is allowed but there one don't find any advanced calculating tool such as mathematica. But here the people who precompute may have done it with a language like C/Java/Pascal but some may have used other tools (which is I am afraid is not allowed in real time contest). That's why we prevent tables for the sake of the contestants.
As we want to maintain a standard contest environment we often change many things. It is difficult for us to predict everything. I generally tend to use large judge data to prevent precomputing (even if the data is known, even I cannot send a printf() submission for my own problems

but it is not always possible as often the all possible input is small. Also we cannot prevent use of internet, cut copy etc. So after setting a particular problem we often have to search the internet to see if there is a full readymade code/solution ready. Although we cannot always do that eiher.
10298-Run Time Error
Invalid memory reference!!
I declared a char array that contains 1 million units.
I wonder if it caused the error!
I declared a char array that contains 1 million units.
I wonder if it caused the error!
10298
Hi,
I used such input : abaaababaaab
, and my program will output : 1
I think the output is wrong, and it should be 2 anyway
Strangely, after sending my code to online-judge, I got AC
BTW, I found this problem when i was handling p455
p455 is very similar with p10298
but online-judge will detect the such case: abaaababaaab
Here is my code (C++), p10298
----------------------------------------------------------------------------
[cpp] Code Deleted [/cpp]
I used such input : abaaababaaab
, and my program will output : 1
I think the output is wrong, and it should be 2 anyway
Strangely, after sending my code to online-judge, I got AC

BTW, I found this problem when i was handling p455
p455 is very similar with p10298
but online-judge will detect the such case: abaaababaaab
Here is my code (C++), p10298
----------------------------------------------------------------------------
[cpp] Code Deleted [/cpp]
Last edited by DJWS on Thu May 06, 2004 2:16 pm, edited 1 time in total.