Submission #1077261


Source Code Expand

import java.util.*;
import java.io.*;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String s=br.readLine();
        int n=Integer.parseInt(br.readLine());
        char[] c=s.toCharArray();
        Arrays.parallelSort(c);
        int count=1;
        for(int i=0;i<5;i++){
            for(int j=0;j<5;j++){
                if(count==n){
                    System.out.println(c[i]+""+c[j]);
                    System.exit(0);
                }count++;
            }
        }
    }
}

Submission Info

Submission Time
Task A - 25個の文字列
User untan
Language Java (OpenJDK 1.7.0)
Score 0
Code Size 634 Byte
Status CE

Compile Error

./Main.java:11: error: cannot find symbol
        Arrays.parallelSort(c);
              ^
  symbol:   method parallelSort(char[])
  location: class Arrays
1 error