Fazil frequently uses Hexadecimal notation in his work.
In hexadecimal notation, besides the ten digits 0, 1, …9 the six letters A, B, C, D, E and F are used to represent the values 10, 11, 12, 13, 14, …15 respectively.
In this problem, you are given two letters X and Y.
When X and Y are seen as hexadecimal numbers, which is larger?
Input:
The input is given X Y
Output:
X is smaller, print <
Y is smaller, print >
they are equal, print =.
#include <stdio.h> int main() { char X,Y; scanf("%c %c",&X,&Y); int a,b;a=(int)(X);b=(int)(Y); if(a==b){printf("=");} else{ a>b?printf(">"):printf("<");} return 0; }
INPUT_1:
E C
OUTPUT:
>
INPUT_2:
F F
OUTPUT:
=
Morae! Q
- Find a triplet such that triplet is minimum of all the triplets.
- Rearrange characters in a string such that no two adjacent are same.
- Return the coordinates of all cells in matrix sorted by their distance.
- Function to verify the ISBN number from the book.
- Find out the absolute difference of values of two array integers.
- Rotate the array in the right direction by K steps.
- Find the sequence of moves that wins the game, collect exactly G coins!.
- Calculate the sum of boundary elements of a matrix.
- Find the total number of ways to reach the tree house.
- Compute profit and loss of a product.
- Find the total expense of purchased items.
- Determine the maximum sequence weight.
- Find the person’s birth year is a leap year or not.
- Find the inner rating with the displayed rating.
- Find if angles are valid to form a triangle.
- Find out the winner of the game from the given statistics.
- Verify the tag to determine if one needs to arrest or allow the vehicle.
- Find the largest hexadecimal number.
- Group up all anagrams together from given words.
- Return all anagrams from the given words.