B. Đếm từ trong câu


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 256M

Problem type

Đề bài: Nhập một câu, đếm số lần xuất hiện của từng từ (không phân biệt hoa thường).

Input: Một dòng chứa câu gồm nhiều từ

Output: Mỗi từ và số lần xuất hiện

Input:
Python la ngon ngu Python rat de hoc

Output:
python 2
la 1
ngon 1
ngu 1
rat 1
de 1
hoc 1

Comments

There are no comments at the moment.