Olimpiada de Informatica - Q&A
Login
Register
Q&A
Questions
Unanswered
Tags
Ask a Question
Bienvenido al sitio de Preguntas y Respuestas (Q&A) de la Olimpiada de Informatica, donde tu podras realizar preguntas y recibir respuestas de otros miembros de la comunidad.
Most popular tags
spoj
ioi
obi
abierto
icpc
uva
32
questions
42
answers
15
comments
5,743
users
como se lee la entrada en el problema Hash?
+1
vote
http://bo.spoj.com/problems/O11_HASH/
como es q se leen las cadenas sin tener el numero especifico de cadenas a ingresar...donde se almacenan estas???
asked
Jan 17, 2014
by
Jared A.S
(
190
points)
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2 Answers
–3
votes
Bueno puedes hacer esto
string txt;
while(cin>>txt)
{...}
El juez te aceptara
answered
Jan 17, 2014
by
ronaldo
(
220
points)
perdona me equivoque era getline(cin,txt)
osea getline(cin,txt);
while(txt!="")
{ ... getline(cin,txt);}
Please
log in
or
register
to add a comment.
+2
votes
Puedes hacerlo asi:
string s;
while (getline(cin, s))
{
}
Espero que te sirva.
answered
Jan 17, 2014
by
Daydreamer (M Wilde)
(
2,480
points)
Please
log in
or
register
to add a comment.
Related questions
0
votes
1
answer
ayuda con la entrada en Graph Connectivity (UVA)
asked
Jan 25, 2014
by
MickyOr
(
140
points)
uva
0
votes
2
answers
cual es el tipo de entrada en Juego de Fracciones?
asked
Jan 15, 2014
by
Jared A.S
0
votes
3
answers
Me ayudan con el problema "La mejor Empresa"
asked
Feb 3, 2014
by
dieguitis1
(
470
points)
spoj
icpc
nacional
0
votes
1
answer
ayuda con el problema "la nueva pieza de ajedrez"
asked
Jan 17, 2014
by
alguien12
(
120
points)
obi
0
votes
1
answer
Se podrá usar C++11 en Taiwán??
asked
Mar 25, 2014
by
Daydreamer (M Wilde)
(
2,480
points)
ioi
taiwan
c
11
...