You are not logged in. Please login at www.codechef.com to post your questions!

×

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.

asked 10 Nov '14, 10:46

shangjingbo's gravatar image

3★shangjingbo ♦♦
161446376
accept rate: 0%

edited 10 Nov '14, 11:51

admin's gravatar image

0★admin ♦♦
19.8k350498541


Why is the input in descending order?

link

answered 18 Feb, 17:22

satyankar_2005's gravatar image

2★satyankar_2005
91
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×15,852
×1,112
×15

question asked: 10 Nov '14, 10:46

question was seen: 4,046 times

last updated: 18 Feb, 17:22