PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: CodeChef Admin
Testers: Takuki Kurokawa, Utkarsh Gupta
Editorialist: Nishank Suresh
DIFFICULTY:
445
PREREQUISITES:
None
PROBLEM:
CodeChef’s AI Analysis feature for code works on submissions with at most 1000 characters.
Given the number of characters in a submission C, will the feature work on it?
EXPLANATION
A simple application of if
conditions: the answer is “Yes” if C \leq 1000, and “No” otherwise.
TIME COMPLEXITY:
\mathcal{O}(1) per test case.
CODE:
Editorialist's code (Python)
print('yes' if int(input()) <= 1000 else 'no')