ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1880. Psych Up's Eigenvalues

5
13 20 22 43 146
4
13 22 43 146
5
13 43 67 89 146

1 step) you compare first and second sequence, there are such equal digits as:
13, 22, 43, 146 ( are in both sequence ) *
2 step). you must compare third sequence with sequence, what you got from first step
     13, 22, 43, 146  *
      compare with
     13 43 67 89 146.
there are such equal digits as:
13, 43, 146 ( in both sequence )
3) after step 1-2 you have 13, 43, 146 answer: 3 ( numbers in the three sequences )