Submission #3010617


Source Code Expand

import java.util.Scanner;

public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		    String s = scanner.nextLine();
		    int i = scanner.nextInt();
		    
		    System.out.println(s.substring(i-1, i));
		    
		    scanner.close(); }
		  }

Submission Info

Submission Time
Task A - 添字
User silviase
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 322 Byte
Status AC
Exec Time 94 ms
Memory 21844 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 4
AC × 8
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 93 ms 20308 KB
0_01.txt AC 92 ms 21844 KB
0_02.txt AC 94 ms 21588 KB
0_03.txt AC 92 ms 21204 KB
1_00.txt AC 93 ms 18772 KB
1_01.txt AC 92 ms 18516 KB
1_02.txt AC 93 ms 19284 KB
1_03.txt AC 93 ms 19668 KB