Submission #1077262
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 | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 634 Byte |
Status | AC |
Exec Time | 249 ms |
Memory | 22280 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample-01.txt, sample-02.txt, sample-03.txt |
All | 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 | AC | 226 ms | 22156 KB |
sample-02.txt | AC | 231 ms | 22124 KB |
sample-03.txt | AC | 234 ms | 22192 KB |
test-01.txt | AC | 233 ms | 22112 KB |
test-02.txt | AC | 240 ms | 22196 KB |
test-03.txt | AC | 232 ms | 22196 KB |
test-04.txt | AC | 231 ms | 22176 KB |
test-05.txt | AC | 231 ms | 22104 KB |
test-06.txt | AC | 233 ms | 22180 KB |
test-07.txt | AC | 228 ms | 22148 KB |
test-08.txt | AC | 246 ms | 22120 KB |
test-09.txt | AC | 229 ms | 22148 KB |
test-10.txt | AC | 249 ms | 22180 KB |
test-11.txt | AC | 229 ms | 22164 KB |
test-12.txt | AC | 229 ms | 22212 KB |
test-13.txt | AC | 230 ms | 22140 KB |
test-14.txt | AC | 227 ms | 22132 KB |
test-15.txt | AC | 236 ms | 22104 KB |
test-16.txt | AC | 229 ms | 22176 KB |
test-17.txt | AC | 232 ms | 22212 KB |
test-18.txt | AC | 225 ms | 22172 KB |
test-19.txt | AC | 226 ms | 22184 KB |
test-20.txt | AC | 235 ms | 22116 KB |
test-21.txt | AC | 234 ms | 22156 KB |
test-22.txt | AC | 230 ms | 22116 KB |
test-23.txt | AC | 243 ms | 22220 KB |
test-24.txt | AC | 231 ms | 22144 KB |
test-25.txt | AC | 237 ms | 22104 KB |
test-26.txt | AC | 231 ms | 22280 KB |
test-27.txt | AC | 231 ms | 22140 KB |
test-28.txt | AC | 245 ms | 22188 KB |
test-29.txt | AC | 232 ms | 22172 KB |
test-30.txt | AC | 233 ms | 22132 KB |