wojiaocbj

c1-d

Apr 7th, 2022
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.70 KB | None | 0 0
  1. /*
  2.  Author: 曹北健
  3.  Result: AC Submission_id: 4281659
  4.  Created at: Thu Apr 07 2022 19:18:52 GMT+0800 (China Standard Time)
  5.  Problem_id: 5510   Time: 66    Memory: 8532
  6. */
  7.  
  8. import math
  9. from operator import contains
  10. if __name__=='__main__':
  11.     d={}
  12.     x=str.split(input())
  13.     for i in x:
  14.         try:
  15.             d[i]+=1
  16.         except:
  17.             d[i]=1
  18.     pass
  19.     x=str.split(input())
  20.     for i in x:
  21.         try:
  22.             d[i]+=1
  23.         except:
  24.             d[i]=1
  25.     pass
  26.     x=str.split(input())
  27.     for i in x:
  28.         try:
  29.             d[i]+=1
  30.         except:
  31.             d[i]=1
  32.     pass
  33.     t=0
  34.     for k in d.keys():
  35.         if(d[k]==3):
  36.             t+=1
  37.     print(t)
Advertisement
Add Comment
Please, Sign In to add comment