Programming contests

50 Programming Exercise for Beginners

January 2, 2019, 12:00 AM – December 31, 2019, 12:00 AM

The Curse of Greatness

Write a program that receives at least one but otherwise any number of negative integers as command line arguments and writes the value of the largest of these numbers to the standard output.

Sample Input

  1. -1 -2 -3 -4 -5
download as text file

Output for Sample Input

  1. -1
download as text file
Acknowledgement This work was supported by the construction EFOP-3.4.3-16-2016-00021. The project was supported by the European Union, co-financed by the European Social Fund.
University of Debrecen; Faculty of Informatics; v. 09/30/2024