elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Guía rápida para descarga de herramientas gratuitas de seguridad y desinfección


  Mostrar Mensajes
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
161  Programación / Programación C/C++ / Re: Pregunta basica de c++ en: 11 Julio 2016, 02:29 am
bueno la idea seria poner un while infinito asi while(true)

y tener una variable bandera que avise si la palabra coincide y cambias el valor de la variable a false, de esa forma se sale del ciclo infinito

162  Programación / Java / ejerciccio de competencia en: 11 Julio 2016, 02:27 am
Código
  1. Is Bigger Smarter?
  2. Some people think that the bigger an elephant is, the smarter it is. To disprove this, you want to take
  3. the data on a collection of elephants and put as large a subset of this data as possible into a sequence
  4. so that the weights are increasing, but the IQ’s are decreasing.
  5. Input
  6. The input will consist of data for a bunch of elephants, one elephant per line, terminated by the endof-file.
  7. The data for a particular elephant will consist of a pair of integers: the first representing its size
  8. in kilograms and the second representing its IQ in hundredths of IQ points. Both integers are between
  9. 1 and 10000. The data will contain information for at most 1000 elephants. Two elephants may have
  10. the same weight, the same IQ, or even the same weight and IQ.
  11. Output
  12. Say that the numbers on the i-th data line are W[i] and S[i]. Your program should output a sequence
  13. of lines of data; the first line should contain a number n; the remaining n lines should each contain a
  14. single positive integer (each one representing an elephant). If these n integers are a[1], a[2],..., a[n] then
  15. it must be the case that
  16. W[a[1]] < W[a[2]] < ... < W[a[n]]
  17. and
  18. S[a[1]] > S[a[2]] > ... > S[a[n]]
  19. In order for the answer to be correct, n should be as large as possible. All inequalities are strict:
  20. weights must be strictly increasing, and IQs must be strictly decreasing.
  21. There may be many correct outputs for a given input, your program only needs to find one.
  22. Sample Input
  23. 6008 1300
  24. 6000 2100
  25. 500 2000
  26. 1000 4000
  27. 1100 3000
  28. 6000 2000
  29. 8000 1400
  30. 6000 1200
  31. 2000 1900
  32. Sample Output
  33. 4
  34. 4
  35. 5
  36. 9
  37. 7
  38.  
  39.  

alguna solucion ?? no se como comenzar  gracias y saludos



no logro entender como obtiener el Output, en realidad no entiendo el enunciado del todo
163  Foros Generales / Dudas Generales / Re: Ayuda como separar canciones de viento y las de voz en: 10 Julio 2016, 23:09 pm
interesante el problema que encontraste!!!

pero bueno si te basas en el peso, los que no tienen voz seria mas livianas, claro no sera muy preciso, pero ayuda
164  Programación / Programación General / Re: Alguien que sepa de javascript, que me ayude en: 9 Julio 2016, 19:22 pm
claro pero de que trata el juego, avanza? dispara? que hace


se mas claro porfavor
165  Programación / PHP / Re: php leer campo y compararlo. en: 9 Julio 2016, 18:12 pm
debes leer el archivo   .txt creo que con fopen


y luego recorrer linea por linea para poder comparar



pass1
pass2
pass3                          y tu ingresaste passsss


entonces deberias comparar pass1, 2, 3 con passss si son iguales entonces true
166  Foros Generales / Sugerencias y dudas sobre el Foro / Re: algunas incoherencias en el foro (0 visitantes) en: 9 Julio 2016, 18:04 pm
pero el mio esta activado.

saludos
167  Foros Generales / Sugerencias y dudas sobre el Foro / Re: algunas incoherencias en el foro (0 visitantes) en: 9 Julio 2016, 17:46 pm
a lo que me refiero, es que deberia aparecer que un usuario o al menos un visitante esta viendo el tema

o acaso soy un fantasma???


pero este error no aparece siempre, solo aveces
168  Foros Generales / Sugerencias y dudas sobre el Foro / algunas incoherencias en el foro (0 visitantes) en: 9 Julio 2016, 17:38 pm


por que sale 0 de visitantes?
169  Programación / Java / Re: identidad por teclado en: 9 Julio 2016, 17:04 pm

instale los paquetes requeridos y
me sale este error,

disculpas y porfavor lleven este tema al subgrupo correspondiente


me surgio una idea de aplicacion, quiero aplicar este sistema al momento de examen en linea.

el entrenamiento seria diferente?
170  Programación / Scripting / Re: win32api en: 9 Julio 2016, 16:19 pm
para alguien que tenga el mismo problema, la solucion es la siguiente:

pip install pypiwin32

o

python -m pip install pypiwin32 



funciona perfectamente
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines