Submission #2703335
Source Code Expand
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); char[] n = sc.nextLine().toCharArray(); int i = sc.nextInt(); System.out.println(n[i-1]); } public static void printArray(int[] array){ for(int i=0; i<array.length; i++){ if(i == array.length){ System.out.println(array[i]); } else { System.out.print(String.format("%d ", array[i])); } } } }
Submission Info
Submission Time | |
---|---|
Task | A - 添字 |
User | tottiiiiiii |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 564 Byte |
Status | AC |
Exec Time | 96 ms |
Memory | 21076 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt |
All | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | AC | 96 ms | 20820 KB |
0_01.txt | AC | 93 ms | 19412 KB |
0_02.txt | AC | 92 ms | 18772 KB |
0_03.txt | AC | 93 ms | 19028 KB |
1_00.txt | AC | 93 ms | 18640 KB |
1_01.txt | AC | 94 ms | 21076 KB |
1_02.txt | AC | 93 ms | 19796 KB |
1_03.txt | AC | 94 ms | 18900 KB |