#PCBSAU0000037. Chuỗi rỗng và chuỗi có khoảng trắng (Empty and Whitespace Strings)
Chuỗi rỗng và chuỗi có khoảng trắng (Empty and Whitespace Strings)
Empty and Whitespace Strings
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given a possibly empty string , print its length and Boolean truth value. An empty string is False; even a single-space string is True.
Input
One line containing the entire string , possibly empty.
Output
Line 1 contains len(s); line 2 contains Python-style True or False.
Subtask
- Subtask 1 — 100 points: Unicode code points; no internal line break.
Example
Input
Output
1
True
Explanation
Input contains exactly one space, giving length 1 and truth value True.