🧠 Programmer's Picnic — JavaScript Editor

Editor Saved Shortcuts: CtrlEnter Run
Mode Write any JS. Use console.log().
Problem

Input:
Output:

Custom Input (Practice Mode)

This text is available to your program as the variable input. You can parse it yourself (split lines, JSON.parse, Number, etc.).

Idle

Judge

In Judge Mode, define function solve(input){...} and return the final value. Then click 🏁 Run Tests.