1.


/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, SS11
* Problem: 11172 Relational Operator
* Link: http://uva.onlinejudge.org/external/111/11172.html
*
* @author Hidir Sayli
* @
* @version 1.0, 3/23/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.112
*/

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);
int t;
int a, b;

t = sc.nextInt();

for(int i = 0; i < t; i++) {
a = sc.nextInt();
b = sc.nextInt();

if(a == b) {
System.out.println("=");
}

else {

if(a < b) {
System.out.println("<");
}

else {
System.out.println(">");
}
}
}
}
}

2.

import java.io.*;

/** Marion Gödel 11172 0.224
*
* @author ifw07248
*
*/


public class Main {

public static void main(String[] args){

BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

try {
int nrSets = Integer.parseInt(reader.readLine());

String line;
int a, b;

for(int i = 0; i < nrSets; i++){

line = reader.readLine();
String[] vals = line.split(" ");
a = Integer.parseInt(vals[0]);
b = Integer.parseInt(vals[1]);

if(a < b)
System.out.println("<");
else {
if(a > b)
System.out.println(">");
else
System.out.println("=");
}
}
} catch (IOException e) {
e.printStackTrace();
}
}

}

3.

/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, SS11
* Problem: 11172 Relational Operator
* Link: http://bbs.cooldavid.org/acm/v104/10424.html
*
* @author Beinhofer Christian
* @version 1.0, 23.03.2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.008
*/

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char* argv[])
{
char line[26];
gets(line);

int items = atoi(line);
while(items--)
{
gets(line);

char* num2 = line;

while(*num2 != ',')
num2++;

*num2 = '\0';
num2++;

int item1 = atoi(line);
int item2 = atoi(num2);


if(item1 == item2)
printf("=\n");
if(item1 < item2)
printf("<\n");
if(item1 > item2)
printf(">\n");
}
}

4.

/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, SS11
* Problem: 11172 Relational Operator
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2113
*
* @author Beinhofer Christian
* @version 1.0, 23.03.2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.008
*/

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char* argv[])
{
char line[26];
gets(line);

int items = atoi(line);
while(items--)
{
gets(line);

char* num2 = line;

while(*num2 != ' ')
num2++;

*num2 = '\0';
num2++;

int item1 = atoi(line);
int item2 = atoi(num2);


if(item1 == item2)
printf("=\n");
if(item1 < item2)
printf("<\n");
if(item1 > item2)
printf(">\n");
}
}

5.

/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, SS11
* Problem: 11172 - Relational Operator
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2113
* @author Mitterreiter Christian
* @author Posselt Christian
* @version 1.0, 03/23/2011
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.120
*/

import java.util.Scanner;

public class Main {

public static void main(String[] a) {

Scanner c = new Scanner(System.in);

//Anzahl der Testfälle
int count = c.nextInt();

while(count > 0) {
//Die zu vergleichenden Zahlen einlesen
int n1 = c.nextInt();
int n2 = c.nextInt();

//Auswertung
if(n1 == n2) System.out.println("=");
if(n1 < n2) System.out.println("<");
if(n1 > n2) System.out.println(">");

count--;
}

}

}
6.

/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, SS11
* Problem: 11172 Relational Operator
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2113
*
* @author Burgmair Stefan
* @version 1.0, 04/23/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.108
*/

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main
{
public static void main(String[] args) throws IOException
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

int nmbrOfRows = Integer.parseInt(reader.readLine());


for (int i = 0; i < nmbrOfRows; i++)
{
String input = reader.readLine();

String[] arr = input.split(" ");
int firstValue = Integer.parseInt(arr[0]);
int secondValue = Integer.parseInt(arr[1]);
System.out.println(compare(firstValue, secondValue));
}
}
public static String compare(int firstValue, int secondValue)
{
if (firstValue < secondValue)
{
return "<";
}
else if (firstValue == secondValue)
{
return "=";
}

return ">";

}
}

7.

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, SS11
* Problem: 11172 Relational Operator
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2113
*
* @author Bastian Hoecker
* @author Philipp Hauck Thalheim
* @version 1.0, 03/30/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.116
*/


public class Main {

/**
* @param args
*/
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub

BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

StringTokenizer st = new StringTokenizer(br.readLine());
int num = Integer.parseInt(st.nextToken());

for (int i = 0; i < num; i++) {
st = new StringTokenizer(br.readLine());
int x1 = Integer.parseInt(st.nextToken());
int x2 = Integer.parseInt(st.nextToken());

if (x1 > x2)
System.out.println(">");
else if (x1 < x2)
System.out.println("<");
else if (x1 == x2)
System.out.println("=");

}
}

}

8.
/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, SS11
* Problem: 11172 Relational Operator
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2113
*
* @author Weigl Joseph
* @author Müller Thomas
* @version 1.0, 03/30/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.264
*/

import java.util.Scanner;


public class Main {

public static void main(String... args){
Scanner in = new Scanner(System.in);
int number = Integer.parseInt(in.nextLine());
String[] pair;
String[] out = new String[number];
int first = 0;
int second = 0;
for(int i = 0; i < number; i++){
pair = in.nextLine().split(" ");
first = Integer.parseInt(pair[0]);
second = Integer.parseInt(pair[1]);

if(first < second)
out[i] = "<";
else if (first > second)
out[i] = ">";
else
out[i] = "=";
}

for(String s: out)
System.out.println(s);
}
}


-------------------------------------------------------------------------------------------

1.

/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, WS10/11
* Problem: 11172 Relational Operator
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2113
*
* @author Fabian Liebl
* @version 1.0, 10/06/2010
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.096
*/

import java.io.*;

public class Main {

public static void main(String[] args) {
BufferedReader inputReader = new BufferedReader(new InputStreamReader(System.in));
int numberOfRequests = 0;
int number1 = 0;
int number2 = 0;
try {
numberOfRequests = Integer.parseInt(inputReader.readLine());
} catch (IOException e) {
System.out.println("IOException reading number of requests");
return;
}

for (int i = 0; i < numberOfRequests; i++) {
try {
String[] line = inputReader.readLine().split(" ");
number1 = Integer.parseInt(line[0]);
number2 = Integer.parseInt(line[1]);
} catch (IOException e) {
System.out.println("IOException reading numbers for request " + i);
}
if (number1 > number2) {
System.out.println(">");
} else {
if (number1 < number2) {
System.out.println("<");
} else {
System.out.println("=");
}
}
}
}

}

2.

/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, WS10/11
* Problem: 11172 Relational Operator
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2113
*
* @author Manuel Hager
* @version 1.0, 10/11/2010
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.108
*/

import java.io.*;

public class Main
{
public static void main(String[] args)
{
try
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

String currLine = reader.readLine();

int number = Integer.parseInt(currLine.trim());

for(int i = 0; i < number; i++)
{
currLine = reader.readLine();

String[] parts = currLine.split(" ");

int val1 = Integer.parseInt(parts[0]);
int val2 = Integer.parseInt(parts[1]);

if (val1 == val2)
System.out.println("=");
else if (val1 > val2) {
System.out.println(">");
}
else
System.out.println("<");
}

reader.close();
}
catch(Exception ex) {
throw new RuntimeException(ex);
}
}
}