004-009-002

Multidimensional Array Element Access: Points Retrieval

Easy

Problem Description

Multidimensional Array Element Access: Points Retrieval

Learning Objective: Extract numeric elements from 2D array

Retrieve points for specific store on specific day from weekly points earning table. Learn how to extract points for specified day and store from point data stored in 2D array. Understand that numeric 2D arrays also use same array[row][column] access format.

Input

Line 1: Number of days n (1-3)
Following lines: Points for n days (3 stores per day: Store A Store B Store C)
Line n+2: Day to retrieve (1-n)
Line n+3: Store index to retrieve (0:Store A 1:Store B 2:Store C)

Output

=== Points Retrieval ===
Day [day]: Store [store name]
[points]pt
```java

## Examples

### Example 1: Get points for Store A on day 1
Input:
```java
2
10 20 30
15 25 35
1
0
```java
Output:
```java
=== Points Retrieval ===
Day 1: Store A
10pt

Test Cases

※ Output examples follow programming industry standards

Input:
2
10 20 30
15 25 35
1
0
Expected Output:
=== Points Retrieval ===
Day 1: Store A
10pt
Input:
2
10 20 30
15 25 35
2
1
Expected Output:
=== Points Retrieval ===
Day 2: Store B
25pt
Input:
3
10 10 10
20 20 20
30 30 30
3
2
Expected Output:
=== Points Retrieval ===
Day 3: Store C
30pt
❌ 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