DOJ logoDOJ
Problems
Recently added problemsSaved problems
CategoriesDLCContestsGroupsTeamsBoard
Ranking
Solved Problem RankingStreak rankingDOJ Power ranking
Status
Call for TasksLoginRegister
DOJ logoDOJ

Community online judge with OI-style subtask scoring, Elo ratings, and Discord-backed certification.

Problems
ProblemsCategories
Community
ContestsRankingBoardNoticesHost an external contestGuide
Account
LoginRegisterJudge Status
Policy
Terms of ServiceDLC RulesPrivacyAPI documentationLanguage runtimesContest rank rewardsRating and performance
© 2026 DOJ
All rights reserved
Editorial

Python Support

Back to problem

Editorial

Let RRR be the release year of Python 3.X.0.

By the definition in the statement,

R=X+2011.R = X + 2011.R=X+2011.

The end-of-support year is 5 years after the release year, so it is

R+5=X+2016.R+5 = X+2016.R+5=X+2016.

Therefore, print Support if R≤Y≤R+5R \le Y \le R+5R≤Y≤R+5, and print End of Life otherwise.

The time complexity is O(1)O(1)O(1).