PRF192_-_SP_2025_-_Block_5_-_PE_3823.webp
Scar89

PRF192_-_SP_2025_-_Block_5_-_PE_3823.webp

  • Media owner Scar89
  • Ngày thêm
Kizspy.me
Input

The first line contains a string with any character
• The second line contains the character to be searched
Constraint

The maximum length of the string is 100 characters.
Output
Please print all the indices of the specified character within the given string during the search
process.
If not found, prints out -1.
Sample
Sample 1
Input
Output
love Prf192. love programming
0 15
Sample 2
Summer Summer
239 10
m
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRF192
Thêm bởi
Scar89
Ngày thêm
Lượt xem
1,810
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom