|
|
back to boardanswer c# Posted by >OWL< 17 Jan 2016 15:12 using System; class Program { static void Main() { int[] n = new int[3]; string[][] val = new string[3][]; int count = 0; for(int i = 0; i < 3; i++) { n[i] = int.Parse(Console.ReadLine()); val[i] = Console.ReadLine().Split(' '); } for(int i = 0; i < n[0]; i++) { for(int k = 0; k < n[1]; k++) { if(val[0][i] == val[1][k]) { for(int j = 0; j < n[2]; j++) { if(val[0][i] == val[2][j]) { count++; break; } } } } } Console.WriteLine(count); } } |
|
|