ÀÂÒ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

623. Bracket

Time Limit: 1 seconds
Memory Limit:1000KB
Points:2
View Problem Statistics Submit Problem added Undefined

Bracket

Symbol is entered with keyboards. If symbol is a bracket, that remove what exactly, for instance {- figured opening, }- figured closing, [ - square opening, ] - square closing, ( - round opening, ) – round closing. In the event of entering of the other symbol to remove ERROR.

 

Input data

 

Symbol

 

Output data

Feature of the symbol (line) or ERROR.

 

Example input data

[

Example output data

square opening

Author: Smirnova A. M.

 

 


View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
667. Average arithmetic 623. 675. Calculate the sequence 670. Change of places of the first words 661. Comparison of numbers
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.031 sec.
© Copyright VSTU, AVT, Nosov D.A.