Programming contests

50 Programming Exercise for Beginners

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

Life Is Better in Pairs!

Write a program that examines whether all command line arguments occur in pairs. If all command line arguments have even number of occurrences, then the program should write the string „YES”, otherwise the string „NO” to the standard output!

Sample Command Line Arguments

  1. alma eper eper alma eper eper
download as text file

Output for Sample Input

  1. YES
download as text file

One possible solution is available in: main.c.

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. 03/01/2019