█████████ ████ ███░░░░░███ ░░███ ███ ░░░ ██████ ███████ ██████ ██████ ░███ ███░░███ ███░░███ ███░░███ ███░░███ ░███ ░███ ░███░███ ░███ ░███████ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░ ░███ ░███ ░░█████████ ░░██████ ░░████████░░██████ ░░██████ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░

Envío 2473

Problema 0x60 - ¿Mayor, menor o igual?

  • Autor: 7yrionLannister
  • Fecha: 2020-12-21 17:54:48 UTC (Hace casi 4 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.Scanner;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.Scanner;
           ^
           ;
main.c:2:1: error: unknown type name 'public'
public class Main {
^
main.c:2:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
#2
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.Scanner;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.Scanner;
           ^
           ;
main.c:2:1: error: unknown type name 'public'
public class Main {
^
main.c:2:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
#3
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.Scanner;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.Scanner;
           ^
           ;
main.c:2:1: error: unknown type name 'public'
public class Main {
^
main.c:2:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
#4
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.Scanner;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.Scanner;
           ^
           ;
main.c:2:1: error: unknown type name 'public'
public class Main {
^
main.c:2:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
#5
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.Scanner;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.Scanner;
           ^
           ;
main.c:2:1: error: unknown type name 'public'
public class Main {
^
main.c:2:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
#6
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.Scanner;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.Scanner;
           ^
           ;
main.c:2:1: error: unknown type name 'public'
public class Main {
^
main.c:2:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
#7
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.Scanner;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.Scanner;
           ^
           ;
main.c:2:1: error: unknown type name 'public'
public class Main {
^
main.c:2:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
#8
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.Scanner;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.Scanner;
           ^
           ;
main.c:2:1: error: unknown type name 'public'
public class Main {
^
main.c:2:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
#9
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.Scanner;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.Scanner;
           ^
           ;
main.c:2:1: error: unknown type name 'public'
public class Main {
^
main.c:2:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
#10
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.Scanner;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.Scanner;
           ^
           ;
main.c:2:1: error: unknown type name 'public'
public class Main {
^
main.c:2:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
Puntos totales: 0 / 100

Código

import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
if(a == b) {
System.out.println("=");
} else if(a < b) {
System.out.println("<");
} else {
System.out.println(">");
}
}
}