Submission #1794637


Source Code Expand

import java.util.ArrayList;
import java.util.Scanner;

class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String x = sc.next();
		String y = sc.next();
		int a = 0;
		int b = 0;
		ArrayList array = new ArrayList();
		array.add("A");
		array.add("B");
		array.add("C");
		array.add("D");
		array.add("E");
		array.add("F");
		for (int i = 0; i < 6; i++) {
			if(x.equals(array.get(i))){
				a = i;
				break;
			}
		}
		for (int i = 0; i < 6; i++) {
			if(y.equals(array.get(i))){
				b = i;
				break;
			}
		}
		if(a == b){
			System.out.println("=");
		}else if(a < b){
			System.out.println("<");
		}else if(a > b){
			System.out.println(">");
		}
	}
}

Submission Info

Submission Time
Task A - HEX
User unirita151
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 739 Byte
Status AC
Exec Time 90 ms
Memory 21972 KB

Compile Error

Note: ./Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 12
Set Name Test Cases
Sample example_0, example_1, example_2
All example_0, example_1, example_2, rand_0, rand_1, rand_2, rand_3, rand_4, rand_5, rand_6, rand_7, rand_8
Case Name Status Exec Time Memory
example_0 AC 88 ms 21844 KB
example_1 AC 88 ms 21844 KB
example_2 AC 90 ms 21332 KB
rand_0 AC 89 ms 19156 KB
rand_1 AC 88 ms 21588 KB
rand_2 AC 90 ms 17748 KB
rand_3 AC 89 ms 19668 KB
rand_4 AC 88 ms 20052 KB
rand_5 AC 88 ms 18772 KB
rand_6 AC 88 ms 21716 KB
rand_7 AC 89 ms 21972 KB
rand_8 AC 88 ms 20564 KB