l33t


Submit solution

Points: 10
Time limit: 5.0s
Memory limit: 256M

Author:
Problem types
Allowed languages
C#, Go, Java

El l33t no té regles, però un algoritme sí. Posem aquestes:

  1. Es substitueixen aquestes lletres:
A: 4
B: 8
E: 3
G: 6
I: !
L: 1
M: /\/\    
O: 0
S: 5
T: 7
U: |_|
V: \\//
W: \/\/
Z: 2
  1. La resta de lletres s'escriuen alternant minúscules i majúscules

  2. S'eliminen els punts i les comes

Input Format

Un text amb linies. El text acaba amb una línia amb la paraula \(END\).

Constraints

-

Output Format

El text en llengua l33t

Test Case 1

Input
Hello world
END
Output
h3110 \/\/0R1d

Test Case 2

Input
Hello leet
END
Output
h3110 1337

Test Case 3

Input
goodbye world
END
Output
600d8Y3 \/\/0r1D

Test Case 4

Input
all your base are belong to us
END
Output
411 y0|_|R 8453 4r3 8310N6 70 |_|5

Test Case 5

Input
Lorem ipsum 
dolor sit amet, 
consectetur adipiscing elit.
END
Output
10r3/\/\ !P5|_|/\/\ 
d010R 5!7 4/\/\37 
c0N53c737|_|R 4d!P!5c!N6 31!7

Test Case 6

Input
This isn't even, 
my final form.
END
Output
7h!5 !5N'7 3\\//3N 
/\/\y F!n41 F0r/\/\

Test Case 7

Input
If the Tao is great, then the operating system is great. 
If the operating system is great, then the compiler is great. 
If the compiler is great, then the application is great. 
The user is pleased, and there is harmony in the world.
END
Output
!f 7H3 740 !5 6r347 7H3n 7H3 0p3R47!n6 5Y573/\/\ !5 6r347 
!F 7h3 0P3r47!N6 5y573/\/\ !5 6R347 7h3N 7h3 C0/\/\p!13R !5 6r347 
!F 7h3 C0/\/\p!13R !5 6r347 7H3n 7H3 4pP1!c47!0N !5 6r347 
7H3 |_|53r !5 P13453d 4Nd 7H3r3 !5 H4r/\/\0Ny !N 7h3 \/\/0R1d

Test Case 8

Input
It's over 9000!
END
Output
!7'5 0\\//3R 9000!

Authorship: Gerard Falcó

CC BY-NC-SA 4.0