Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.133 s | 15 KBi |
#2 |
Correcto
|
0.138 s | 51 KBi |
#3 |
Correcto
|
0.145 s | 14 KBi |
#4 |
Correcto
|
0.159 s | 15 KBi |
#5 |
Correcto
|
0.141 s | 14 KBi |
#6 |
Correcto
|
0.131 s | 54 KBi |
#7 |
Correcto
|
0.141 s | 15 KBi |
#8 |
Correcto
|
0.11 s | 17 KBi |
#9 |
Correcto
|
0.105 s | 17 KBi |
#10 |
Correcto
|
0.162 s | 54 KBi |
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String nums = sc.nextLine(); sc.close(); int index = 0; for (int i = 0; i < nums.length(); i++) { if (nums.charAt(i) == ' ') { index = i; break; } } int a = Integer.parseInt(nums.substring(0, index)); int b = Integer.parseInt(nums.substring(index + 1, nums.length())); if (a > b) { System.out.println(">"); } if (b > a) { System.out.println("<"); } if (a == b) { System.out.println("="); } } }