Scale
Time limit1sMemory limit1024 MB
For each line of space-separated integers, output a new list where every value is multiplied by its neighboring values.
- Level
Easy2 of 10
- Topics
- Array, Implementation
- Solved
- No attempts yet
Problem
Write a program that takes in a list of integers and produces a new list of scaled integer values. The value of each will be the original value multiplied by its neighbors.
Input
There will be an unknown number of inputs, each on its own line. Each input will contain an unknown number of values separated by spaces.
Output
Display the result of each input on its own line, with each value separated by a single space.