Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- in LUA, write a program that takes a file with an input htat looks like this
- julia@534@4
- julia@345@2
- pedro@754@2
- pedro@234@2
- pedro@234@1
- jack@234@2
- jack@234@1
- julia@555@2
- then, searches for an id (the 3th colum separating by @), and orderes by the second column. if someone is two times in the same id, take the highest value
Advertisement
Add Comment
Please, Sign In to add comment