⌘K
Flycodx

ISRO Satellite Mission Code Validator

ISRO Satellite Mission Code Validator

EasyStrings0% accepted

ISRO's satellite tracking system uses mission codes to identify and organize launches. A mission code has format 'SAT_YYMMDD_ALTITUDE_INCLINATION' where YYMMDD represents the launch date. The system must validate that the date component is a valid date (years 2000-2099).

Approach

Given a mission code string in format 'SAT_YYMMDD_ALTITUDE_INCLINATION', validate that the YYMMDD portion represents a valid date. Return 'Valid' if the date is valid, 'Invalid' otherwise.

Input

SAT_250315_850_51

Output

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