⌘K
Flycodx

Parse Solar Panel Efficiency Rating Code

Parse Solar Panel Efficiency Rating Code

EasyStrings0% accepted

Arjun monitors solar panels across Pune. Each panel has an efficiency code like 'P95-E18-S45' where P indicates panel efficiency percentage (95%), E is efficiency rating (18), and S is overall score (45). Extract the three numeric values for analysis.

Approach

Given a solar panel code string with format 'PXX-EYY-SZZ', extract the three numeric values from each section.

Input

P95-E18-S45

Output

95,18,45
solution.py
Loading editor...
Test 1
Test 2
Test 3

Press Run to test your custom input, or Submit to judge against all test cases.

Sign in to continue

Create a free account to run code, submit solutions and track progress.

  • Free forever — no credit card
  • 10+ languages with live execution
  • Points, streaks & leaderboards
Auto Save OnLn 1, Col 1Spaces: 4UTF-8LFPython 3