Submission #3016763
Source Code Expand
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); String s = scanner.next(); String[] ch = new String[s.length()]; for( int i = 0; i < s.length(); i++ ) { ch[i] = s.substring(i, i+1); } Arrays.sort(ch); int N = scanner.nextInt(); System.out.print(ch[ (N-1)/5 ] + ch[ (N-1)%5 ]); scanner.close(); } }
Submission Info
Submission Time | |
---|---|
Task | A - 25個の文字列 |
User | silviase |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 522 Byte |
Status | WA |
Exec Time | 98 ms |
Memory | 23764 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample-01.txt, sample-02.txt, sample-03.txt |
All | sample-01.txt, sample-02.txt, sample-03.txt, test-01.txt, test-02.txt, test-03.txt, test-04.txt, test-05.txt, test-06.txt, test-07.txt, test-08.txt, test-09.txt, test-10.txt, test-11.txt, test-12.txt, test-13.txt, test-14.txt, test-15.txt, test-16.txt, test-17.txt, test-18.txt, test-19.txt, test-20.txt, test-21.txt, test-22.txt, test-23.txt, test-24.txt, test-25.txt, test-26.txt, test-27.txt, test-28.txt, test-29.txt, test-30.txt, sample-01.txt, sample-02.txt, sample-03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample-01.txt | WA | 96 ms | 21588 KB |
sample-02.txt | WA | 94 ms | 22996 KB |
sample-03.txt | WA | 96 ms | 21716 KB |
test-01.txt | WA | 95 ms | 18644 KB |
test-02.txt | WA | 97 ms | 21972 KB |
test-03.txt | WA | 97 ms | 21716 KB |
test-04.txt | WA | 95 ms | 18644 KB |
test-05.txt | WA | 96 ms | 19412 KB |
test-06.txt | WA | 96 ms | 19668 KB |
test-07.txt | WA | 96 ms | 18644 KB |
test-08.txt | WA | 95 ms | 19412 KB |
test-09.txt | WA | 95 ms | 23764 KB |
test-10.txt | WA | 95 ms | 19924 KB |
test-11.txt | WA | 98 ms | 19924 KB |
test-12.txt | WA | 97 ms | 21204 KB |
test-13.txt | WA | 97 ms | 21716 KB |
test-14.txt | WA | 98 ms | 21588 KB |
test-15.txt | WA | 94 ms | 19796 KB |
test-16.txt | WA | 96 ms | 21716 KB |
test-17.txt | WA | 95 ms | 21844 KB |
test-18.txt | WA | 94 ms | 18644 KB |
test-19.txt | WA | 97 ms | 19668 KB |
test-20.txt | WA | 97 ms | 19284 KB |
test-21.txt | WA | 96 ms | 21716 KB |
test-22.txt | WA | 96 ms | 18644 KB |
test-23.txt | WA | 95 ms | 21972 KB |
test-24.txt | WA | 95 ms | 21844 KB |
test-25.txt | WA | 96 ms | 23636 KB |
test-26.txt | WA | 95 ms | 21204 KB |
test-27.txt | WA | 93 ms | 20688 KB |
test-28.txt | WA | 95 ms | 21076 KB |
test-29.txt | WA | 96 ms | 21588 KB |
test-30.txt | WA | 93 ms | 19796 KB |