Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

Problem hidden on 2014-11-11 09:50:24 by Francky ?

HLP - Help in organizing

no tags 

During, the meeting held to organize a competition in Memory strengthOne of

the attendant suggested an idea that was accepted by almost all the organizers.


First, The competition is held such that all competitors oppose each other and

the winner is the one who got the highest score.

 

At the begin of the competition a sequence of pictures are shown to all the

competitors where their task, during every match, is to arrange the pictures

in front of him/her as quickly as possible in the same order he had seen in

the show.



Let's return to our suggestion, One of the Organizers 
suggested to put the

pictures in order where each two pictures where shown consecutively in the

show aren't beside each other. Also he suggested that, for each one, along

the competition, isn't allowed to try to put in order the same arrangement of

the pictures he had tried to do that with before.


In order not to help any competitor to remember easily.


Then, he needed to calculate the
minimum number of pictures 
that can be

in the sequence that allow organizing the competition.

Hint:

      All competitors will face each other one through out the competition.


----------------------------------------------

 
Task

 

write a program th reads the number of the competitors 
and calculate the

minimum number of elements needed in the sequence, that can be arranged,

where no two pictures that where originally next to each other are next to

each other, M times.


M is calculated, such that no one is allowed to try to arrange the same

 sequence more than once, along the competition.



Input

N (number of the competitors), where 1≤ 10309 


Output

 
The minimum number of elements needed in the sequence that
 will be

shown to all the competitors.


INPUT:
5


OUTPUT:
5


Explanation:

   M (minimum number of available arrangements needed) will be 5, in this case,

also a sequence of length 5 can allow 14 unique arrangements.


+ For 5 competitors there are 10 matches (4.0*5.0/2.0)

Notice that each arrangement can be used for more than one match, but one time for each player at maximum.


Hint:
4 can not b the right answer, as with a sequence of length 4
the number of

available arrangements is 2 only - less than needed -.

INPUT: 

89


OUTPUT:

6


  • Number of test-cases is 52.



hide comments
Min_25: 2014-11-11 07:41:56

@Francky
Thank you.
I confirmed that this problem was probably broken.

Is it possible to move this problem to tutorial while it is hidden?
--ans(Francky)--> Done.
EDIT:
Thanks!

-----

I have some questions for this problem:
- M = N - 1 ?
- Is the answer of 2 is 1 ?

Perhaps, the psetter calculated the answer using double instead of BigInteger because the maximum of N is 10^309.

Last edit: 2014-11-11 12:08:21
Francky: 2014-11-11 01:42:32

Email sent to psetter.
Problem hidden waiting for answers to psolvers, or fix and rejudge.

@Min_25 : Thanks for your "Help in organizing" ;-)

Last edit: 2014-11-11 01:44:02
Mostafa 36a2: 2012-09-05 15:59:10

Haha number of the competitors is more than atoms in the Sun .... :D

Fernando Fonseca [ITA]: 2012-07-05 20:25:57

I suspect there's something wrong with the test cases, as the solution is quite simple for everybody to have gotten it wrong.

Last edit: 2012-07-16 06:06:03
Rofael Emil: 2011-01-07 12:10:37

Sorry, There was some thing wrong with the test cases.

Test cases were modified see those above.
Now, try to solve it.

Last edit: 2010-12-23 21:35:32
Anton Lunyov: 2011-01-07 12:10:37

Is it true that M=2*(N-1)?
From the statement I can't figure out how many matches competitors perform during competition.

Rofael Emil: Another test case is added.

"Also he suggested that, for each one, along the competition, isn't allowed to try to put in order the same
arrangement of the pictures he had tried to do that with before."

Last edit: 2010-12-11 21:48:41

Added by:Rofael Emil
Date:2010-10-15
Time limit:0.100s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All