Ir ao conteúdo
  • Cadastre-se

keuvyn carlos

Membro Júnior
  • Posts

    1
  • Cadastrado em

  • Última visita

Reputação

0
  1. me ajudem nessa questão está me matando... The Fibonacci numbers (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, ...) are de ned by the recurrence: F0 = 0 F1 = 1 Fi = Fi-1 + Fi-2 for i>1 write a program which calculates Mn = Fn mod 2 elevado a m for given pair of n and m 0<= m <= 2147483647 and 0 <= m < 20 Note that a mod b gives the remainder when a is divided by b. Input Input consists of several lines specifying a pair of n and m. Output Output should be corresponding Mn, one per line. SampleInput 11 7 11 6 SampleOutput 89 25

Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas comunidades sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...