Guest User

Untitled

a guest
Feb 18th, 2025
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. in LUA, write a program that takes a file with an input htat looks like this
  2.  
  3. julia@534@4
  4. julia@345@2
  5. pedro@754@2
  6. pedro@234@2
  7. pedro@234@1
  8. jack@234@2
  9. jack@234@1
  10. julia@555@2
  11.  
  12. 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