Ingeniero Tecnico

Páginas: 2 (304 palabras) Publicado: 30 de mayo de 2012
SER RESUELVE UNA SOPA DE LETRAS

Exemplo d’entrada
5 6 7 maria jordi joan pere marta r x j o a n e y e o v i ma r t a i a t e d f n r r s a h d i w q q w a a q s d x z

5 6 8 felix jordi joan pere marta r x j o a n e y e ov i m a r t a i a t e d f n r r s a h d i w q q w a a f e l i x q e i o s m

Exemple de sortida
r x J O A N e ye O v i M A R T A i A t e d f N R r s a h d I w q q w a A q s d x z

r x J O A N

e y e O v i

M A R T A ia t e d f N

r r s a h d

i w q q w a

a F E L I X

q e i o s m



#include
#include
#includeusing namespace std;

typedef vector Fila;
typedef vector Sopa;


void llegeix_sopa(Sopa& S, int m, int n){
for (int i = 0; i < m; ++i) {
for (int j = 0; j < n; ++j) cin >> S[i][j];
}
}

voidescriu_solucio(const Sopa& S, int m, int n) {
for (int i = 0; i < m; ++i) {
for (int j = 0; j < n - 1;++j) cout x >> m >> n) {
vector P(x);
for (int i = 0; i < x; ++i) cin >> P[i];
Sopa S(m,Fila(n));
llegeix_sopa(S, m, n);
soluciona_sopa(S, m, n, P);
if (not primera) cout
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • ingeniero tecnico
  • ingeniero técnico
  • Ingeniero Tecnico
  • Ingeniero Tecnico
  • tecnico ingeniero
  • Técnico Ingeniero
  • Ingeniero Tecnico
  • Ingeniero Tecnico Industrial

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS