Main
  About Cybernetics
  Olympiad Regulations
  Olympiad History
 
  • Photo
  • Video



  •   Examples of Tasks
      Organizing Committee
      Current Olympiad
     
  • Teams Registration
  • Participants
  • Olympiad Results

  • Login:

    Password:

     
     RUS / ENG
        News
     
    Task 2008-3. "Post chaos"

    It is necessary to send letters to k addressee. For this purpose k envelopes with necessary data is prepared. However letters stuffed in envelopes in absolutely casual order and as a result they were mixed.

    Task. What number of combinations of placing of letters in envelopes at which no addressee will receive own letter?

    Stream. The input stream sets number of addressee. The output stream should specify number of combinations.

    Example
    Input stream:
    4
    Output stream:
    9

     
       
    19.02.2013 17:19
     
    Cyber XIV. Results of Distance Session of Olympiad . . . -->

    21.01.2013 15:59
     
    Key for a training session . . . -->

    29.02.2012 12:41
     
    Video of the Olympiad . . . -->

    29.02.2012 12:12
     
    The results of Main Session of Olympiad on Cybernetics . . . -->

    News archive
     
    Back to news archive -->


    Today visitings: 71
    All visitings: 810455
    Web ststistics: