|
|
От: |
nikov
|
http://www.linkedin.com/in/nikov |
| Дата: | 30.06.10 14:13 | ||
| Оценка: | |||
using System.Linq;
public class C
{
public static bool Foo(params int[] arr)
{
return
arr != null &&
arr.Distinct().Count() == 3 &&
arr.All(x => x * x - 12 * x + 35 == 0);
}
}