Ir ao conteúdo
  • Cadastre-se

gabrielsdsd

Membro Júnior
  • Posts

    3
  • Cadastrado em

  • Última visita

Reputação

0
  1. Meu computador é um acer aspire e15 com windows 10. Tentei fazer dual boot com kali linux e não funcionou. Fiz o boot do pendrive usando win32, rufus e formatei o pendrive de todas as maneiras possiveis. Tentei instalar com legacy e UEFI, desativei o boot secure, fragmentei o hd corretamente, instalei tudo corretamente mas sempre que tento iniciar o kali pelo manager do windows dá erro, e não consegui selecionar o grub na instalação do sistema. O boot manager do windos informa que não conseguiu iniciar o windows quando tento iniciar o kali. Li que pode ser por causa do windows 10 ou até mesmo por causa da bios, e que para eu rodar o kali teria que emular. Eu queria saber se tem algum modo de instalar usando o windows 10 ou se tenho que trocar mesmo o OS para colocar o linux, ou se tenho que fazer qualquer outra coisa para funcionar. Os forums a respeito estão todos em inglês e geralmente dizem que preciso ter algum linux já instalado para fazer funcionar, mas como não consigo instalar linux...
  2. Meu headset quebrou e ao abri-lo para separar a peça quebrada para mandar fazer uma de metal, sem querer arrebentei as soldas e não sei mais onde soldar o quê e nem como soldas. O fio azul esta ligado a um lugar escrito +1. O cor de cobre ligado a um escrito -1. Outros dois da ***** estão ligados a outro local da placa se liga a parte com o imã. Os fios verde e vermelho estão ligados em outros locais que nao consegui identificar nada escrito. O headset também tem bluetooth e a bateria deve se ligar de algum modo a eles também. Não sei onde soldar cada um e nem como soldar. Se uso um material especifico ou algo do tipo. Obrigado a quem puder ajudar.
  3. Eu preciso resolver este problema mas estou com dificuldades. Preciso resolver em C, e não conheço muito bem a linguagem e nenhuma outra para falar a verdade. A group of ants is really proud because they built a magnificent and large colony. However, the enormous size has become a problem, because many ants do not know the path between some parts of the colony. They desperately need your help! The colony of ants was made as a series of N anthills, connected by tunnels. The ants, obsessive as they are, numbered the anthills sequentially as they built them. The first anthill, numbered 0, did not require any tunnel, but for each of the subsequent anthills, 1 through N −1, the ants also built a single tunnel that connected the new anthill to one of the existing anthills. Of course, this tunnel was enough to allow any ant to go to any previously built anthill, possibly passing through other anthills in its path, so they did not bother making extra tunnels and continued building more anthills. Your job is, given the structure of the colony and a set of queries, calculate for each query the shortest path between pairs of anthills. The length of a path is the sum of the lengths of all tunnels that need to be traveled. Input Each test case is given using several lines. The first line contains an integer N representing the number of anthills in the colony (2 ≤ N ≤ 105). Each of the next N −1 lines contains two integers that describe a tunnel. Line i, for 1 ≤ i ≤ N −1, contains Ai and Li, indicating that anthill i was connected directly to anthill Ai with a tunnel of length Li (0 ≤ Ai ≤ i−1 and 1 ≤ Li ≤ 109). The next line contains an integer Q representing the number of queries that follow (1 ≤ Q ≤ 105). Each of the next Q lines describes a query and contains two distinct integers S and T (0≤S,T ≤N −1), representing respectively the source and target anthills. The last test case is followed by a line containing one zero. Output For each test case output a single line with Q integers, each of them being the length of a shortest path between the pair of anthills of a query. Write the results for each query in the same order that the queries were given in the input.

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...