Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: 曹北健
- Result: AC Submission_id: 4281659
- Created at: Thu Apr 07 2022 19:18:52 GMT+0800 (China Standard Time)
- Problem_id: 5510 Time: 66 Memory: 8532
- */
- import math
- from operator import contains
- if __name__=='__main__':
- d={}
- x=str.split(input())
- for i in x:
- try:
- d[i]+=1
- except:
- d[i]=1
- pass
- x=str.split(input())
- for i in x:
- try:
- d[i]+=1
- except:
- d[i]=1
- pass
- x=str.split(input())
- for i in x:
- try:
- d[i]+=1
- except:
- d[i]=1
- pass
- t=0
- for k in d.keys():
- if(d[k]==3):
- t+=1
- print(t)
Advertisement
Add Comment
Please, Sign In to add comment