BRKDB - Brocken Data Base
A university course database has broken, one of the column has been completely deleted and that column had the names of the 3 students that belong to that group. It is known that in that course where only 3 students with the same surname and different last names and different id codes. You have the following data: “Monsalve” had the code 200410061010, “Silva” had 200120039010 and “Pineda” 199810024010. Your goal is to get back the data base integrity and print the surnames, last names and codes of the students one per line.
Input
As input read the name that had been deleted and now has been recovered by the IT personal of the university.
Output
It is expected that your problem prints as outputs one line per person replaced with the given data:
Name + space + Lastname1 + space + code1
Name + space + Lastname2 + space + code2
Name + space + Lastname3 + space + code3
Example:
Input:
Antonio
Output:
Antonio Silva 200120039010
Antonio Pineda 199810024010
Antonio Monsalve 200410061010
hide comments
shakhansho:
2020-03-26 10:23:08
in case you choose Python -> instead of input() (Python3) type raw_input() (Python2)
|
|
nikhil9:
2018-08-27 11:14:19
The inputs are different in question(199810043010) as well as test case(199810024010). The one given in test case gives correct answer. |
Added by: | Sergio Monsalve |
Date: | 2016-07-27 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | MAWK BC NCSHARP COFFEE DART FORTH JULIA KTLN OCT PROLOG PYTHON PYPY3 R RACKET SQLITE SWIFT UNLAMBDA |