• Jueves 2 de Mayo de 2024, 06:55

Autor Tema: [Código Fuente] Juego Puzzle  (Leído 6388 veces)

valencia_gera

  • Nuevo Miembro
  • *
  • Mensajes: 2
    • Ver Perfil
[Código Fuente] Juego Puzzle
« en: Martes 8 de Junio de 2004, 01:35 »
0
Este programa es una aplicacion de las listas doblemente enlazadas, el juego solo tiene tres formas en las cuales puedes ganar, despues saldra la nueva version en la que se incluiran colores y mas soluciones.

Autor: Gerardo Valencia Ortiz Y Gabriel Carrillo
El mensaje contiene 1 archivo adjunto. Debes ingresar o registrarte para poder verlo y descargarlo.

ocuadrosl

  • Nuevo Miembro
  • *
  • Mensajes: 2
    • Ver Perfil
Saludos
« Respuesta #1 en: Lunes 28 de Junio de 2004, 17:12 »
0
HolA , Me llamo Oscar y soy de Perú, revisé tu codigo y me parece muy bueno, te cuento que yo tambien hice el puzzle, pero el mio tiene mas lineas de codigo, por eso te escribo ya que ahora tengo un problema que no lo puedo resolver aver si tu me puedes ayudar el planteamiento esta mas abajo
este en lo correo
ocuadrosl@yahoo.es
gracias.

ACM Pacific NW Region Programming Contest
10 November 2001
PROBLEM C
TRIANGLES
Write a program that, given an NxN matrix of characters, determines the number of non−trivial
single−character filled "standard" triangles in that matrix.
A "standard" triangle is an isosceles right triangle, with either:
a) the legs aligned along any two dimensions of the matrix, for example:
A BBB
AA BB
AAA B
b) the hypotenuse aligned along any one dimension of the matrix, for example:
B
A BB
AAA BBB
AAAAA BB
B
(These don’t look like right triangles, because the font isn’t perfectly square, but they are in terms of
the matrix).
No other triangles are counted.
A non−trivial triangle must contain at least 3 letters (a single letter is a trivial triangle).
Input:
The input for your program will be a sequence of matrices. Each matrix will start with a dimension
(N) that will be less than twenty, followed by N rows of N upper−case letters. The input ends with a
single zero (0) as the dimension.
Input file for this problem is C.in
Output:
For each matrix, you should print the total number of non−trivial right triangles in parentheses,
followed by the number of non−trivial triangles for each character in the matrix.
Sample I/O:
Input:
3
AAB
ABB
BBB
4
AABB
ABBB
BBBB
BBBB
0
Output:
(10) 1 A 9 B
(51) 1 A 50 B

alexander2006

  • Nuevo Miembro
  • *
  • Mensajes: 1
    • Ver Perfil
pasame el codigo con backtraking a mi correo
« Respuesta #2 en: Sábado 11 de Noviembre de 2006, 04:19 »
0
pasame en visual c++ el codigo de puzzle por favor

megh11

  • Nuevo Miembro
  • *
  • Mensajes: 1
    • Ver Perfil
muy buen programa
« Respuesta #3 en: Martes 5 de Julio de 2011, 04:05 »
0
excelente prgrma