004-009-003

Accessing Multidimensional Array Elements: Seating Chart

Easy

Problem Description

Accessing Multidimensional Array Elements: Seating Chart

Learning Objective: Access specific elements in 2D array

Retrieve the name of a person sitting at a specific seat from a seating chart. Access elements by specifying row and column numbers.

Input

Line 1: Number of rows r (1-3) and columns c (1-3)
Following lines: Names for each row (space-separated)
Last line: Row number and column number to access (0-indexed)

Output

Seat[row][col]: [name]
```java

## Example

Input:
```java
2 3
Taro Hanako Yuki
Ken Mika Ryo
1 2
```java
Output:
```java
Seat[1][2]: Ryo

Test Cases

※ Output examples follow programming industry standards

Input:
2 3
Taro Hanako Yuki
Ken Mika Ryo
1 2
Expected Output:
Seat[1][2]: Ryo
Input:
2 2
A B
C D
0 0
Expected Output:
Seat[0][0]: A
Input:
3 2
Alice Bob
Carol Dan
Eve Frank
2 1
Expected Output:
Seat[2][1]: Frank
❌ Some tests failed
❌ エラー発生

Your Solution

Current Mode: My Code
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Write your code here

sc.close();
}
}
0 B / 5 MB

You have 9 free executions remaining