Write a nonnegative integer n in reverse order.
One nonnegative 64-bit integer.
Print the number in reverse order.
🕑 Time limit 1 second
💾 Memory limit 128 MiB
1234
4321
100
001
Count the number of digits a in number n.
The first line contains one 32-bit integer number n. Number n can be negative. The second line contains a single digit a.
Print the number of digits a in number n.
🕑 Time limit 1 second
💾 Memory limit 128 MiB
25557
5
3
100
0
2
Find the sum of the first and the last digit of an integer.
One 32-bit number that consists of at least 2 digits. The number can be positive or negative.
Print the sum of the first and the last digit of an integer.
🕑 Time limit 1 second
💾 Memory limit 128 MiB
2345
7
Given a string of Latin letters and spaces. Delete in it all characters with indices from n to m inclusive. Indexation starts from 0.
First line contains text consisting of Latin letters and spaces. Second line contains two integers n and m (n ≤ m).
Print the updated string.
🕑 Time limit 1 second
💾 Memory limit 128 MiB
abrakadabra
3 6
abrabra
This is my lovely beautiful house
7 16
This is beautiful house
Given text - sequence of words. Find the length of each word.
Text contains sequence of words. The length of each word is no more than 20.
For each word print in one line its length.
🕑 Time limit 1 second
💾 Memory limit 128 MiB
Programming Principles 1
11 10 1
I like C
very
much
1 4 1 4 4