String length
Practice
3.3 (943 votes)
Easy
Problem
54% Success 9373 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code
Given a string, find the length of string.
Input Format:
First line contains single integer t, the number of test-cases. Each of next t lines contains a string of lower case alphabets.
Output Format:
Output t lines, each containing the single integer, length of corresponding string.
Constraints:
1 ≤ t ≤ 100
1 ≤ length of string ≤ 100
Sample Input
2 hello heckerearth
Sample Output
5 11
Code Editor
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Submissions
Please login to view your submissions
Similar Problems
Points:20
3 votes
Tags:
stringEasy
Points:20
Tags:
Easy
Points:30
95 votes
Tags:
ApprovedData StructuresEuler's totient functionFenwick TreeMathMediumNumber TheorySegment Trees
Editorial
Login to unlock the editorial
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor