Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- Dict = {}
- line = input().split()
- for x in line:
- if x in Dict:
- Dict[x] = Dict[x]+1
- print(str(Dict[x]), end=" ")
- else:
- Dict[x] = 0
- print(str(0), end =" ")
- if __name__ == '__main__':
- main()
Add Comment
Please, Sign In to add comment