Submission #1383265
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); String a = sc.next(); String[] s = a.split(""); int b = sc.nextInt(); if (b == 1) { System.out.println(s[0] + s[0]); } else if (b == 2) { System.out.println(s[0] + s[1]); } else if (b == 3) { System.out.println(s[0] + s[2]); } else if (b == 4) { System.out.println(s[0] + s[3]); } else if (b == 5) { System.out.println(s[0] + s[4]); } else if (b == 6) { System.out.println(s[1] + s[0]); } else if (b == 7) { System.out.println(s[1] + s[1]); } else if (b == 8) { System.out.println(s[1] + s[2]); } else if (b == 9) { System.out.println(s[1] + s[3]); } else if (b == 10) { System.out.println(s[1] + s[4]); } else if (b == 11) { System.out.println(s[2] + s[0]); } else if (b == 12) { System.out.println(s[2] + s[1]); } else if (b == 13) { System.out.println(s[2] + s[2]); } else if (b == 14) { System.out.println(s[2] + s[3]); } else if (b == 15) { System.out.println(s[2] + s[4]); } else if (b == 16) { System.out.println(s[3] + s[0]); } else if (b == 17) { System.out.println(s[3] + s[1]); } else if (b == 18) { System.out.println(s[3] + s[2]); } else if (b == 19) { System.out.println(s[3] + s[3]); } else if (b == 20) { System.out.println(s[3] + s[4]); } else if (b == 21) { System.out.println(s[4] + s[0]); } else if (b == 22) { System.out.println(s[4] + s[1]); } else if (b == 23) { System.out.println(s[4] + s[2]); } else if (b == 24) { System.out.println(s[4] + s[3]); } else if (b == 25) { System.out.println(s[4] + s[4]); } } }
Submission Info
Submission Time | |
---|---|
Task | A - 25個の文字列 |
User | unirita148 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 1825 Byte |
Status | AC |
Exec Time | 95 ms |
Memory | 23764 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 | 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 | AC | 92 ms | 19792 KB |
sample-02.txt | AC | 92 ms | 20688 KB |
sample-03.txt | AC | 93 ms | 21204 KB |
test-01.txt | AC | 93 ms | 18772 KB |
test-02.txt | AC | 92 ms | 18640 KB |
test-03.txt | AC | 94 ms | 18900 KB |
test-04.txt | AC | 92 ms | 21460 KB |
test-05.txt | AC | 93 ms | 23124 KB |
test-06.txt | AC | 93 ms | 18772 KB |
test-07.txt | AC | 92 ms | 20564 KB |
test-08.txt | AC | 92 ms | 19156 KB |
test-09.txt | AC | 91 ms | 21972 KB |
test-10.txt | AC | 93 ms | 21588 KB |
test-11.txt | AC | 91 ms | 19412 KB |
test-12.txt | AC | 91 ms | 23764 KB |
test-13.txt | AC | 94 ms | 23252 KB |
test-14.txt | AC | 92 ms | 18772 KB |
test-15.txt | AC | 91 ms | 19028 KB |
test-16.txt | AC | 93 ms | 20948 KB |
test-17.txt | AC | 92 ms | 19028 KB |
test-18.txt | AC | 92 ms | 19796 KB |
test-19.txt | AC | 92 ms | 19796 KB |
test-20.txt | AC | 92 ms | 19028 KB |
test-21.txt | AC | 92 ms | 21844 KB |
test-22.txt | AC | 92 ms | 21844 KB |
test-23.txt | AC | 91 ms | 21716 KB |
test-24.txt | AC | 92 ms | 21844 KB |
test-25.txt | AC | 91 ms | 20684 KB |
test-26.txt | AC | 91 ms | 19924 KB |
test-27.txt | AC | 94 ms | 21460 KB |
test-28.txt | AC | 92 ms | 21844 KB |
test-29.txt | AC | 92 ms | 21332 KB |
test-30.txt | AC | 95 ms | 19920 KB |