004-006-001

Point History Copy

Easy

Problem Description

In this problem, you will create a program that reads point values from standard input, stores them in an array, iterates through using a for loop, copies each element one by one into a new array, and displays both the original and copied arrays to standard output.

Input format:
Line 1: number of point values n
Lines 2 to n+1: one integer per line

Given point values as input, create a copy of the array by iterating through and copying each element. Display both the original and copied arrays.

Test Cases

※ Output examples follow programming industry standards

Normal case
Input:
3
30
50
20
Expected Output:
Original:
30pt
50pt
20pt

Copied:
30pt
50pt
20pt
Normal case
Input:
1
100
Expected Output:
Original:
100pt

Copied:
100pt

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 10 free executions remaining