ACM14AM1-Editorial

PROBLEM LINK:

Practice
Contest

Author:
Tester:
Editorialist: Jingbo Shang, Anudeep

DIFFICULTY:

Cakewalk

PREREQUISITES:

For-loop

PROBLEM:

Given an array of integers and a number X. You need to tell how many of those integers are greater than or equal to X.

EXPLANATION:

You may follow the following steps:

  1. Load the integers and store them in an array
  2. Load the number X
  3. Loop over the array, compare each element with X.
  4. Maintain a counter to record the total number.

AUTHOR’S AND TESTER’S SOLUTIONS:

The links will be fixed soon.

Author’s solution can be found here.
Tester’s solution can be found here.

Why is the input in descending order?