ASCII art puzzle discussion

La table des caractères est donnée, normalement.
Je pense que PHP sait ce qu’est une table de hashage (ou dictionnaire).

Salut, bon ça fait un peu tard mais tu entends quoi par “correspondant au code C” ? J’ai le code ASCII mais je ne vois pas comment faire en sorte de prendre la bonne lettre dans $ROW …

Dans le sujet il n’y a pas la table ^^

La façon dont tu dois écrire les caractères est lue par le programme, normalement.

Hi there, trying to learn Python 3 here. so far so good except this puzzle. Something seems really weird to me in the auto generated code given.

# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.

l = int(input())
h = int(input())
t = input()
for i in range(h):
    row = input()

the row variable is supposed to be the whole ascii art palette, but when i print it, i only have one line, and looking at the code i’m wondering if something is missing. I cleared all tests by creating another variable with the whole ascii art palette and going my tests on them, but i obviously fail the “other art style” test, since i don’t use the one given to me.
/* -------------------------------------- */
Bonjour bonsoir a tous, je me remet actuellement à jour en me mettant au python 3 et j’ai donc décidé de tester les entrainements. Jusque la tout allait bien sauf pour ce test, ou quelque chose me parait vraiment bizarre dans le code fournit par défaut (voir la balise plus haut)

J’ai l’impression que la variable row est écrasée a chq boucle for et cette impression est relativement confirmée lorsque j’ai tenté un import pprint pour tester un affichage de toutes les variables globales et locales, la variable row ne contenait qu’une seule ligne d’ascii art… Du coup, est ce que je me trompe complètement, est ce que je passe a coté de quelque chose ? ou y a t il un petit bug a ce niveau la ? j’aimerai avoir quelques avis si vous avez un peu de temps a perdre ^^.
Merci d’avance

C’est exact à chaque fois que tu boucles dans ce cas on assigne la ligne contenue dans l’input à la variable row, ce qui fait que row n’est plus associé à la ligne précédente. Mais rien ne t’empeche d’associer l’input à chaque itération à différentes cases d’un tableau.

c’est ce que j’ai fais pour résoudre le probleme, mais lors des tests finaux, il y a 2 tests avec une palette d’ascii art que je ne vois pas (le test se fait en background); et donc en toute logique, le programme l’envoie dans la variable row, et pas dans la variable que j’ai moi meme créee, du coup je ne vois pas trop comment faire en sorte pour que ca marche au moment ou je commit mon code.

EDIT : ah ben en fait j’ai modifié la partie générée automatiquement pour que ca donne

l = int(input())
h = int(input())
t = input()
row=[]
for i in range(h):
    row.append(input())

et j’ai juste changé la référence a la variable dans mon code pour que ca reference row, et maintenant j’ai 100% ^^ je pensais que lors du commit j’allais perdre les modifications sur le code généré automatiquement, mais apparemment ca n’est pas le cas !

Merci pour l’astuce, et bonne continuation ^^

in my program: if char != A-Z (before that it changes all small chars a-z to A-Z) then write ? … all cases work except 6th

i have no clue what needs to be done.

The goal of the problem is to simulate an old airport terminal display: your program must display a line of text in ASCII art.
You have to split strings, store them and recreate others. You can use data structures like arrays or hash tables.

More seriously, this type of comment doesn’t help anyone. Try to explain what you don’t understand.

I was stuck with the same issue and then… I noticed that the output must be on “one line” and not one “character” by line…
Because an example is better than broken English:
What I output when I was young and foolish:
M
A
N

What we must output when wisdom touch us:
MANAHATAN

Merci, ça m’a beaucoup aidé.

For some reason, even though I was passing a particular set of chars as the base ([A-Z] and ?) for the printouts, and seemingly changing any chars from outside this set to “?”, I still had to introduce a separate case to handle “.” and/or “,” for the Lorem Ipsum test to pass, dunno why, new to Lua. HTH. J.

Can anybody help me with case №5. (MANHATTAN with another ASCII representation).
I got error

Failure
Found: .----------------. .----------------. .-----------------
Expected: .----------------. .----------------. .-----------------.

I found letter “N” incorrect ASCII code. First row of this letter end incorrect (with ‘-’, but must with ‘.’) or i’am wrong?

1 Like

i need help with two tests. first the AB!!CD… what could there be wrong so i cannot pass it?
and the lorem ipsum … test. I couldnt pass them :confused:

Can’t pass ‘Test full alphabet in CAPS WMADXESFGIJVTHKNOBPLYQRUZ’.

If that matters, I’m using Ruby.

did you pass the AB!!CD and lorem?

Been awhile since I coded so came back to this site to refresh myself, working in C#, Was able to get a first test done, and then set it up to convert the string it reads into a character array so that each character is read individually, problem is when it writes to the console it looks like it merges, in the case of different letters it just looks like a large stack of #, when I try something like “EE” it will return this

so it looks like its stacking them together, and i cant seem to figure out how to edit it so that it would shows the Ascii E’s side by side instead

Any help would be appreciated

Print row by row instead of Letter by letter.

Everyone who is using “scanf” in C and having problem with Lorem Ipsum test, should look at this reply.

Ty Dogwon.