Page 118 - MATINF Nr. 11-12
P. 118

˘
            118                                       PROBLEME DE INFORMATICA PENTRU CONCURSURI


                Exemplu

                 fixe.in             fixe.out         Explicat , ie
                 3                   ram              Literele distincte din cuvˆant sunt a, m, r. Per-
                 mara                                 mut˘arile sunt
                                                      amr, arm, mar, mra, ram, rma.
                                                      Primele dou˘ permut˘ari ˆıl au pe a ca punct fix. A
                                                                  a
                                                      3-a permutare f˘ar˘ puncte fixe este ram.
                                                                        a
                Timp maxim de execut , ie: 0.1 secund˘a/test.
                Memorie total˘ disponibil˘ 2 MB.
                                 a
                                              a
                                                                           Doru Anastasiu Popescu, Pites , ti
   113   114   115   116   117   118   119   120   121   122   123