Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class PipeServer
- {
- static void Main()
- {
- string J = Console.ReadLine();
- string S = Console.ReadLine();
- int count = 0;
- foreach (var j in J)
- {
- foreach (var s in S)
- if (j == s)
- {
- count++;
- }
- }
- Console.WriteLine(count);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement