⌘K
Flycodx

Temperature Log String Processor

Temperature Log String Processor

MediumStrings100% accepted

Arjun manages Delhi cold chain logistics. Temperature records like '2024-05-01T08:30:00Z,-5.2C,GOOD' must be parsed and validated to ensure food safety during delivery.

Approach

Parse temperature log 'DATE-TIME-TEMP-STATUS' validating ISO timestamp, temperature range -20 to 0°C, and status (GOOD/WARNING/CRITICAL).

Input

2024-05-01T08:30:00Z,-5.2C,GOOD

Output

May-01,08:30AM,-5.2,VALID
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