RETO11MAY - RETO SALARIOS
Read name and salary of employees, then display the name of the highest paid and his salary.
The first entry is the number of employees.
Input
The input data is the number of employees, then each name and salary.
Output
The output data will be the name and salary of the employee with the highest salary.
Example
Input: 4 Juan 1200000 Carmen 1500000 Mauricio 1000000 Manuel 2000000 Output: Manuel 2000000
hide comments
wisfaq:
2015-09-25 10:09:11
Unnecessary language restrictions.
|
Added by: | MARATON AFDM |
Date: | 2015-09-24 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | MAWK BC C NCSHARP CSHARP C++ 4.3.2 COFFEE DART FORTH JAVA JS-RHINO JULIA KTLN OCT PHP PROLOG PYPY3 R RACKET SQLITE SWIFT UNLAMBDA |