Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

It takes 4 hours to drive a distance of 150 km in car.create a program to calculate the average speed in km/h


To print 3 digit number and peint the digit of the number in reverse order

write a programm to print hard if any carry in addition of two given numbers otherwise print easy.


to input a number and print all numbers from 30 to 60 that is divisible by the input number



Decimal Galore

by CodeChum Admin

We've been dealing with integers too much, it's time for decimals to shine!


Instructions:

  1. Input five decimal numbers in one line.
  2. Print out the decimal numbers in one line, separated by spaces, and make sure you only print up to 1 decimal place.
  3. Add the first four decimal numbers and check if their sum is greater than the fifth decimal number. Print out "Yes" if they are.

Input

A line containing five decimal numbers separated by a space.

1.1·1.2·1.3·1.4·1.1

Output

The first line contains all the inputted decimal numbers separated by a space.

The second line contains a string which is the result.

1.1·1.2·1.3·1.4·1.1
Yes

That's Odd

by CodeChum Admin

Well, that's odd, or is it? It's your job to find out!


Instructions:

  1. Input one integer.
  2. Print out the integer in one line.
  3. Check whether the integer is odd or not. If it is odd, print "Odd".

Input

A line containing an integer

5

Output

The first line contains the inputted integer.

The second line contains a string which is the result.

5
Odd




Are Strings Created Equally?

by CodeChum Admin

Do you believe in doppelgangers? Well they are very much possible with strings! Check if the two given strings are the same or not.


Instructions:

  1. Input two strings in different lines (one each line).
  2. Print out the strings in one line, separate them with a \.
  3. Check whether the two strings are equal, print out "Equal" if they are.

Input

Two lines containing a string on each.

hello
hello

Output

The first line contains the two inputted strings separated by a \.

The second line contains a string result.

hello\hello
Equal

Two is Greater Than One

by CodeChum Admin

They say that the one in first place is always greater than the one in the second and third place. Are they always right?


Instructions:

  1. Input three integers in different lines (one each line).
  2. Print out the integers in one line.
  3. If the 1st integer is greater than or equal to both the 2nd integer and the 3rd integer, print "Yes".

Input

Three lines containing an integer on each.

3
2
1

Output

The first line contains all the three inputted integers.

The second line contains a string which is the result.

3·2·1
Yes

Are Integers Created Equally?

by CodeChum Admin

It's time to find out if something is true or false. Let's test your capabilities by creating a program that checks if two integers are equal!


Instructions:

  1. Input two integers in one line.
  2. Print the two integers in one line, separate them with a space.
  3. Print a string message on a new line, "Equal" if both integers are equal.

Input

A line containing two integers separated by a space.

5·5

Output

The first line contains the two integers input.

The second line contains a string which is the result.

5·5
Equal

The Richest Person


You are given a N entries denoting incomes of people.Same person can have more than one income entry.Write a Program to print person's name and index of the first income entry of the person with highest total income.In case of tie in total income, choose the lexicographically smallest name.


Note:

Name will contain only alphabets and spaces.

Names are case insensitive (i,e Ravi and ravi are same).

Ignore spaces in the name while comparing (i,e Ravi Kishore and RaviKishore are same).


Input

The first line contains an integer N.

Each of next N lines contains the name and income entry of a person.


Sample input1

4

John Cena 1000

John 2000

Jack 4000

Tom 4000


sample output1

Jack 2


]