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

Envío 1696

Problema 0x9d - ¿Está ordenado?

  • Autor: JulianMi12
  • Fecha: 2020-11-06 18:43:37 UTC (Hace 9 meses)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:9: error: class C0x9d is public, should be declared in a file named C0x9d.java
public class C0x9d {
       ^
1 error

                    
#2
Error de compilación
                      Main.java:9: error: class C0x9d is public, should be declared in a file named C0x9d.java
public class C0x9d {
       ^
1 error

                    
#3
Error de compilación
                      Main.java:9: error: class C0x9d is public, should be declared in a file named C0x9d.java
public class C0x9d {
       ^
1 error

                    
#4
Error de compilación
                      Main.java:9: error: class C0x9d is public, should be declared in a file named C0x9d.java
public class C0x9d {
       ^
1 error

                    
#5
Error de compilación
                      Main.java:9: error: class C0x9d is public, should be declared in a file named C0x9d.java
public class C0x9d {
       ^
1 error

                    
#6
Error de compilación
                      Main.java:9: error: class C0x9d is public, should be declared in a file named C0x9d.java
public class C0x9d {
       ^
1 error

                    
#7
Error de compilación
                      Main.java:9: error: class C0x9d is public, should be declared in a file named C0x9d.java
public class C0x9d {
       ^
1 error

                    
#8
Error de compilación
                      Main.java:9: error: class C0x9d is public, should be declared in a file named C0x9d.java
public class C0x9d {
       ^
1 error

                    
#9
Error de compilación
                      Main.java:9: error: class C0x9d is public, should be declared in a file named C0x9d.java
public class C0x9d {
       ^
1 error

                    
#10
Error de compilación
                      Main.java:9: error: class C0x9d is public, should be declared in a file named C0x9d.java
public class C0x9d {
       ^
1 error

                    
#11
Error de compilación
                      Main.java:9: error: class C0x9d is public, should be declared in a file named C0x9d.java
public class C0x9d {
       ^
1 error

                    
#12
Error de compilación
                      Main.java:9: error: class C0x9d is public, should be declared in a file named C0x9d.java
public class C0x9d {
       ^
1 error

                    
Puntos totales: 0 / 100

Código

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

/**
 *
 * @author Julian_Miranda
 */
public class C0x9d {
    
    static BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
    
    public static void main(String[] args) throws IOException {
        int n = Integer.parseInt(bf.readLine());
        String[] a = bf.readLine().split(" ");
        
        if (a[0].equals("1")) {
            System.out.println("Ordenado");
        }else{
            System.out.println("Desordenado");
        }
    }
}