Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - + 1 Oculto(s)

#161
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
Java / ejerciccio de competencia
11 Julio 2016, 02:27 AM
Código (xml) [Seleccionar]

Is Bigger Smarter?
Some people think that the bigger an elephant is, the smarter it is. To disprove this, you want to take
the data on a collection of elephants and put as large a subset of this data as possible into a sequence
so that the weights are increasing, but the IQ's are decreasing.
Input
The input will consist of data for a bunch of elephants, one elephant per line, terminated by the endof-file.
The data for a particular elephant will consist of a pair of integers: the first representing its size
in kilograms and the second representing its IQ in hundredths of IQ points. Both integers are between
1 and 10000. The data will contain information for at most 1000 elephants. Two elephants may have
the same weight, the same IQ, or even the same weight and IQ.
Output
Say that the numbers on the i-th data line are W[i] and S[i]. Your program should output a sequence
of lines of data; the first line should contain a number n; the remaining n lines should each contain a
single positive integer (each one representing an elephant). If these n integers are a[1], a[2],..., a[n] then
it must be the case that
W[a[1]] < W[a[2]] < ... < W[a[n]]
and
S[a[1]] > S[a[2]] > ... > S[a[n]]
In order for the answer to be correct, n should be as large as possible. All inequalities are strict:
weights must be strictly increasing, and IQs must be strictly decreasing.
There may be many correct outputs for a given input, your program only needs to find one.
Sample Input
6008 1300
6000 2100
500 2000
1000 4000
1100 3000
6000 2000
8000 1400
6000 1200
2000 1900
Sample Output
4
4
5
9
7



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
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
claro pero de que trata el juego, avanza? dispara? que hace


se mas claro porfavor
#165
PHP / Re: php leer campo y compararlo.
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
pero el mio esta activado.

saludos
#167
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


por que sale 0 de visitantes?
#169
Java / Re: identidad por teclado
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
Scripting / Re: win32api
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